Search This Blog

Thursday, November 22, 2018

Check your current default gateway.

You can check what your default gateway is set to by typing route and pressing  Enter

The address next to "default" shows your default gateway, and the interface it is assigned to is displayed on the right side of the table.

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         UG    300    0        0 bond0     U     0      0        0 docker0   U     300    0        0 bond0