CCIE实验笔记之-第4章 RIP 之二

www.net130.com     日期:2007-7-4    浏览次数:
作者:烦尘子    出处:http://ghostlover.2288.org/

mark: _Toc152678212">4.3         RIP的“big show” and “big D”

4.3.1         show ip protocols { summary }

该命令可以显示所有路由协议,详细的计时器和度量信息,及路由更新信息等。例4-6列出了该命令显示结果:

4-6 show ip protocols执行结果

R1#sho ip protocols

Routing Protocol is "rip"     <-路由协议类型

  Sending updates every 30 seconds, next due in 21 seconds

  Invalid after 180 seconds, hold down 180, flushed after 240   <-计时器信息

  Outgoing update filter list for all interfaces is not set

  Incoming update filter list for all interfaces is not set

  Redistributing: rip

  Default version control: send version 2, receive version 2

    Interface             Send  Recv  Triggered RIP  Key-chain

    FastEthernet0/0       2     2        <-Running Version        

    Loopback1             1 2   1 2                                

  Automatic network summarization is not in effect

  Maximum path: 4

  Routing for Networks:    <-RIP路由的网络

    128.1.0.0

    128.200.0.0

  Routing Information Sources:

    Gateway         Distance      Last Update

    128.200.1.2          120      00:00:01   <-RIP neighbor

  Distance: (default is 120)            <-Administrative Distance

 

4.3.2         show ip route

显示当前路由表及路由信息,来自哪个路由协议,及管理距离等,例4-7是执行该命令的信息:

4-7 执行show ip route的结果

R1#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

       * - candidate default, U - per-user static route, o - ODR

       P - periodic downloaded static route

 

Gateway of last resort is not set

 

     128.200.0.0/24 is subnetted, 3 subnets

C       128.200.11.0 is directly connected, Loopback1

R       128.200.12.0 [120/1] via 128.200.1.2, 00:00:30, FastEthernet0/0

C       128.200.1.0 is directly connected, FastEthernet0/0

     192.16.1.0/30 is subnetted, 1 subnets

R       192.16.1.0 [120/1] via 128.200.1.2, 00:00:30, FastEthernet0/0

R1#

最前面的“R”代表RIP路由协议。“[120/1]”这个字段里的“120是度量值,“1”是跳数。后面还有接收到该路由的接口。

4.3.3         debug ip rip [ event ]命令

可以显示RIP的所有活动,显示接收和发送的接口,更新信息的RIP版本及每条路由的度量等,例4-8执行debug ip rip 的结果。

4-8 debug ip rip 命令的显示信息

R1#debug ip rip

RIP protocol debugging is on

R1#

01:21:19: RIP: received v2 update from 128.200.1.2 on FastEthernet0/0

01:21:19:      128.200.12.0/24 via 0.0.0.0 in 1 hops

01:21:19:      192.16.1.0/30 via 0.0.0.0 in 1 hops

01:21:39: RIP: received v2 update from 128.200.1.2 on FastEthernet0/0

01:21:39:      128.200.12.0/24 via 0.0.0.0 in 1 hops

01:21:39:      192.16.1.0/30 via 0.0.0.0 in 1 hops

01:21:40: RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (128.200.1.1)

01:21:40: RIP: build update entries

01:21:40:       128.200.11.0/24 via 0.0.0.0, metric 1, tag 0

01:21:40: RIP: sending v1 update to 255.255.255.255 via Loopback1 (128.200.11.1)

01:21:40: RIP: build update entries

01:21:40:       subnet 128.200.1.0 metric 1

01:21:40:       subnet 128.200.12.0 metric 2

01:21:40:       network 192.16.1.0 metric 2

相关新闻
推荐文章