我无法找出正确的命令来删除其中的第三行ip route list
:
#ip route list
default via 172.31.16.1 dev eth0 metric 100
172.31.16.0/20 dev eth0 proto kernel scope link src 172.31.18.50
172.31.16.0/20 dev eth1 proto kernel scope link src 172.31.23.44 #REMOVE ME
172.32.23.0/24 dev eth1 proto kernel scope link src 172.32.23.44
答案1
执行该操作的命令是:
ip route del 172.31.16.0/20 dev eth1 proto kernel scope link src 172.31.23.44