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         0.0.0.0         UG    300    0        0 bond0
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
192.168.0.0     0.0.0.0         255.255.254.0   U     300    0        0 bond0