标签:简化 image img 查看 技术 tab dev gen kernel
route -n
[root@cobbler_vm ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.101.1 0.0.0.0 UG 0 0 0 ens33
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 ens33
192.168.101.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
route
添加路由:
route [-v] [-A family |-4|-6] add [-net|-host] target [netmask Nm] [gw Gw] [metric N] [mss M] [window W] [irtt I] [reject] [mod] [dyn] [reinstate] [[dev] If]
删除路由:
route [-v] [-A family |-4|-6] del [-net|-host] target [gw Gw] [netmask Nm] [metric N] [[dev] If]
简化版
route [add|del] [-net|-host] target [netmask Nm] [gw Gw] [[dev] If]
标签:简化 image img 查看 技术 tab dev gen kernel
原文地址:https://www.cnblogs.com/wholj/p/10286673.html