主机添加网络路由

主机1:10.5.230.111
主机2:172.17.7.234
题:主机1与主机2之间ping不通,telnet不通,添加如下一条双向都能通。
在主机1添加:
route add -net 172.17.7.0/24 gw 10.5.230.1 metric 1
删除:
route del -net 172.17.7.0/24 gw 10.5.230.1 metric 1
上述命令是根据下述命令简写:
route add -net 172.17.7.0 gw 10.5.230.1 netmask 255.255.255.0 metric 1
route del -net 172.17.7.0 gw 10.5.230.1 netmask 255.255.255.0 metric 1

路由跟踪:
traceroute 172.17.7.234
在这里插入图片描述
traceroute 10.5.230.111 不通
图片: https://uploader.shimo.im/f/WR5c1gdXl0KI5iLh.png

举个栗子:
图片: https://uploader.shimo.im/f/SAXiiHohjt4jfDq5.png

https://blog.csdn.net/qq_21453783/article/details/108235399