[求助] 怎么用命令方式删除一条指定的记录?
ip route> pri detailFlags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf
0 ADC dst-address=10.0.1.0/24 pref-src=10.0.1.1 interface=wlan scope=200 target-scope=0
1 ADC dst-address=121.13.199.1/32 pref-src=121.13.199.179 interface=pppoe scope=10 target-scope=0
2 ADC dst-address=121.13.200.16/28 pref-src=121.13.200.18 interface=bridge scope=10 target-scope=0
3 ADC dst-address=192.168.0.0/24 pref-src=192.168.0.1 interface=lan scope=10 target-scope=0
4 A S dst-address=0.0.0.0/0 gateway=121.13.200.17 interface=bridge gateway-state=reachable scope=255 target-scope=10
5 A S dst-address=0.0.0.0/0 gateway=121.13.199.1 interface=pppoe gateway-state=reachable distance=1 scope=255 target-scope=10 routing-mark=rout_adsl
6Ddst-address=0.0.0.0/0 gateway=121.13.199.1 interface=pppoe gateway-state=reachable distance=1 scope=30 target-scope=10
现在要删除红色的这条记录,用命令方式要怎么写?
如果是修改这条记录gateway=121.12.199.200,要用什么命令?
每条记录前面的序号能否写入一个变量中?
[ 本帖最后由 hj-cdx 于 2008-2-2 00:55 编辑 ]
页:
[1]