分类: 嵌入式
2016-07-20 14:33:49
linux添加路由
route add -net 10.8.48.0 netmask 255.255.255.0 gw 192.168.7.1
route add -net 10.8.48.0 netmask 255.255.255.0 gw 10.8.48.3
route del -net 10.8.48.0 netmask 255.255.255.0 gw 192.168.7.1
route add -net 10.8.60.0 netmask 255.255.255.0 gw 10.8.48.3
route add -net 192.168.7.0 netmask 255.255.255.0 gw 10.8.48.13
route del -net 192.168.7.0 netmask 255.255.255.0
设备cli添加路由
staticroute 10.8.48.0 255.255.252.0 193.168.7.1
staticroute 10.8.48.0 255.255.252.0 192.168.11.1
staticroute 10.8.48.0 255.255.252.0 192.168.7.1
查看路由:show dcnstaticroute
pc电脑添加路由
route add 192.168.7.0 mask 255.255.255.0 10.8.48.13 -p
route add 193.168.7.0 mask 255.255.252.0 10.8.48.13 -p
route add 192.168.11.0 mask 255.255.252.0 10.8.48.140 -p
route add 192.168.7.0 mask 255.255.255.0 10.8.48.144 -p
route add 10.8.49.0 mask 255.255.252.0 10.8.48.3 -p
route add 172.0.0.0 mask 255.0.0.0 122.122.122.16 -p
:ifconfig eth0 192.168.7.55
:route add -net 10.8.48.0 netmask 255.255.255.0 gw 192.168.7.11
route add -net 10.8.48.0 netmask 255.255.255.0 gw 192.168.7.1