show_gateway_address
This is an old revision of the document!
Show Gateway Address
2016
To show the gateway address in Linux, we can use the route - nee command.
route -nee Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface MSS Window irtt 192.168.27.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0 0 0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth2 0 0 0 169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth3 0 0 0 169.254.0.0 0.0.0.0 255.255.0.0 U 1004 0 0 eth4 0 0 0 169.254.0.0 0.0.0.0 255.255.0.0 U 1005 0 0 eth5 0 0 0 169.254.0.0 0.0.0.0 255.255.0.0 U 1006 0 0 eth0 0 0 0 169.254.0.0 0.0.0.0 255.255.0.0 U 1007 0 0 eth1 0 0 0 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth2 0 0 0 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth3 0 0 0 11.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth4 0 0 0 11.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth5 0 0 0 0.0.0.0 192.168.27.254 0.0.0.0 UG 0 0 0 eth0 0 0 0
On a Raspberry Pi:
route -nee Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface MSS Window irtt 0.0.0.0 192.168.1.1 0.0.0.0 UG 202 0 0 eth0 0 0 0 192.168.1.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0 0 0 0
show_gateway_address.1484252262.txt.gz · Last modified: 2023/03/09 22:35 (external edit)