- Forums
- Linux Hosting
- How To Display The Default Gateway In Linux
if you read my last post, i showed you how you setup the default gateway ip address in your linux server, how about if you only want to see it, well, just send this command to show you what the default gateway is  [1373], Last Updated: Mon Jun 24, 2024 
 
 Hostman
 Sun Mar 21, 2010 
 0 Comments
 1095 Visits
if you read my last post, i showed you how you setup the default gateway ip address in your linux server, how about if you only want to see it, well, just send this command to show you what the default gateway is:
# route -n
the outpu might look like this:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
210.83.41.94    0.0.0.0         255.255.255.224 U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         208.86.44.97    0.0.0.0         UG    0      0        0 eth0
 this command will also show you the routing table