1.route看不到default路由,只有到本网段的的
root@datasrv network-scripts\]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.81.0 0.0.0.0 255.255.255.0 U 100 0 0 p6p1 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
2.添加默认路由
root@datasrv network-scripts\]# ip route add default via 192.168.81.1
3.查看添加的默认路由
root@datasrv network-scripts\]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default gateway 0.0.0.0 UG 0 0 0 p6p1 192.168.81.0 0.0.0.0 255.255.255.0 U 100 0 0 p6p1 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0