一:如何查看Linux的默认网关

1.如果固定IP上网,cat /etc/sysconfig/network里面gateway项

2.如果是dhcp上网,使用route命令,default那一行就是网关了 [root@hello ~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.1.1.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.1.1.1 0.0.0.0 UG 0 0 0 eth0

3.也可以用netstat命令查看