找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1514|回复: 0

[其它] [求助] 怎么用命令方式删除一条指定的记录?

[复制链接]
发表于 2008-2-2 00:37:45 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
[admin@ProPac] ip route> pri detail
Flags: 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

6  D  dst-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 编辑 ]
routeros
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-1 08:35 , Processed in 0.073970 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表