- 论坛徽章:
- 0
|
动态路由表不能删除的问题。
查看如有表如下:
# netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
0.0.0.2 10.1.124.130 U 1 5 eri0
192.168.0.0 192.168.1.110 U 1 0 hme0
.............. 省略
不知道为何会有0.0.0.2的路由,哪位能说明一下?
对于路由192.168.0.0
# route delete 192.168.0.0/24 192.168.1.110
delete net 192.168.0.0/24: gateway 192.168.1.110: not in table
// 猜着可能为其他的,使用route get 192.168.0.1查看,结果如下
# route get 192.168.0.1
route to: 192.168.0.1
destination: 192.168.0.0
mask: 192.168.1.110
interface: hme0
flags: <UP,DONE>
recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu expire
0 0 0 0 0 0 1500 0
# route delete 192.168.0.1/24 192.168.1.110
delete net 192.168.0.1/24: gateway 192.168.1.110: not in tabl
# route delete 192.168.0.1/32 192.168.1.110
delete host 192.168.0.1/32: gateway 192.168.1.110: not in table
哪位可以给出出注意,应该如何能删除掉192.168.0.0路由 |
|