如果在一台机器中添加了很多的逻辑路由器,我们在每次查看的时候都会加上参数:logical-system说明查看哪台设备的参数,例如:
直接查看是没有的
itaa-NMS> show route protocol ospf
inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
必须指明路由器
itaa-NMS> show route protocol ospf logical-system r1
inet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2.2.2.2/32 *[OSPF/10] 01:15:20, metric 1
> to 192.168.12.2 via em1.12
3.3.3.3/32 *[OSPF/10] 01:15:20, metric 1
> to 192.168.13.3 via em1.13
4.4.4.4/32 *[OSPF/10] 01:15:11, metric 2
to 192.168.12.2 via em1.12
> to 192.168.13.3 via em1.13
5.5.5.5/32 *[OSPF/10] 01:15:16, metric 2
> to 192.168.13.3 via em1.13
192.168.23.0/24 *[OSPF/10] 01:15:20, metric 2
to 192.168.12.2 via em1.12
> to 192.168.13.3 via em1.13
192.168.24.0/24 *[OSPF/10] 01:15:20, metric 2
> to 192.168.12.2 via em1.12
192.168.34.0/24 *[OSPF/10] 01:15:20, metric 2
> to 192.168.13.3 via em1.13
192.168.35.0/24 *[OSPF/10] 01:15:20, metric 2
> to 192.168.13.3 via em1.13
192.168.45.0/24 *[OSPF/10] 01:15:16, metric 3
to 192.168.12.2 via em1.12
> to 192.168.13.3 via em1.13
224.0.0.5/32 *[OSPF/10] 04:21:01, metric 1
MultiRecv
好麻烦啊,经常会忘记加参数,有没有一种更好的方法呢? 当然有,ITAA为大家介绍一条很有用的命令
itaa> set cli logical-system r1
Logical system: r1
itaa:r1>
此时cli输出直接切换到了路由器R1,再不需要后接参数,再试试同样的命令!
itaa:r1> show route protocol ospf
inet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2.2.2.2/32 *[OSPF/10] 01:15:45, metric 1
> to 192.168.12.2 via em1.12
3.3.3.3/32 *[OSPF/10] 01:15:45, metric 1
> to 192.168.13.3 via em1.13
4.4.4.4/32 *[OSPF/10] 01:15:36, metric 2
to 192.168.12.2 via em1.12
> to 192.168.13.3 via em1.13
5.5.5.5/32 *[OSPF/10] 01:15:41, metric 2
> to 192.168.13.3 via em1.13
192.168.23.0/24 *[OSPF/10] 01:15:45, metric 2
to 192.168.12.2 via em1.12
> to 192.168.13.3 via em1.13
192.168.24.0/24 *[OSPF/10] 01:15:45, metric 2
> to 192.168.12.2 via em1.12
192.168.34.0/24 *[OSPF/10] 01:15:45, metric 2
> to 192.168.13.3 via em1.13
192.168.35.0/24 *[OSPF/10] 01:15:45, metric 2
> to 192.168.13.3 via em1.13
192.168.45.0/24 *[OSPF/10] 01:15:41, metric 3
to 192.168.12.2 via em1.12
> to 192.168.13.3 via em1.13
224.0.0.5/32 *[OSPF/10] 04:21:26, metric 1
MultiRecv
OK!现在不需要麻烦的参数了,像操作单机一样,直接控制逻辑路由器R1!!
利用我上一篇文章讲的telnet的方法,这时候你可以开启很多telnet,登到各个逻辑路由器中来进行更有效率的配置!!
主路由器一个标签
再打开一个窗口,试试查看自己的接口! 其他路由器的接口消失不见了!!
把其他的设备也这样配置吧!!
恭喜您看完了这篇ITAA-NMS的学习技巧,您的实验效率已经突飞猛进啦,让我们忘掉逻辑路由器,专注在协议的学习中吧!
No comments:
Post a Comment