无法删除AIX中的路由

很奇怪,用netstat -rn 可以看到,但在 smit route 中就是无法删除,提示:

Before command completion, additional instructions may appear below.

Method error (/usr/lib/methods/chginet):
        0514-009 Cannot delete an object from the device
                 configuration database.
0821-216 chginet: Cannot delete route (host,192.168.172.68,192.168.11.2) from CuAt.

 

找到答案:

from: http://linyy37.itpub.net/post/5284/62475

突然明白,为什么删除路由时,有时用smit rmroute 可以成功有时切不成功。

前几天在客户处,刚好客户要册除在AIX系统中的几条静态路由,很奇怪,用smit rmroute册除不了,最后用route delete -net *.*.*.* *.*.*.* 给删除了。

当时没有多想,今天做实验时仔细看错误提示时才发现问题所在“0821-216 chginet: Cannot delete route (net,192.168.0.0,192.168.1.46) from CuAt.”

由于之前的路由是通过route add -net 添加的,没有存放在ODM库是,因此无法通过smit rmroute来进行删除。而只能通过route delete 命令来删除。只有通过smit route 添加的路由才能通过,smit rmroute来册除。因为smit route添加的路由是存放在ODM库中的。豁然开朗呀!

To establish a route so that a computer on one network can send a message to a computer on a different network, enter:
route add 192.100.201.7 192.100.13.7
The 192.100.201.7 address is that of the receiving computer (the Destination parameter). The 192.100.13.7 address is that of the routing computer (the Gateway parameter).
To establish a route so you can send a message to any user on a specific network, enter:
route add -net 192.100.201.0 192.100.13.7
The 192.100.201.0 address is that of the receiving network (the Destination parameter). The 192.100.13.7 address is that of the routing network (the Gateway parameter).
To establish a default gateway, enter:
route add 0 192.100.13.7
The value 0 or the default keyword for the Destination parameter means that any packets sent to destinations not previously defined and not on a directly connected network go through the default gateway. The 192.100.13.7 address is that of the gateway chosen to be the default.
To clear the host gateway table, enter:
route -f

 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值