Information Technology Reference
In-Depth Information
Example 7-14 shows the configuration of Router10.
Example 7-14 Configuration of Router10
hostname router10
!
interface Ethernet0
ip address 172.16.2.1 255.255.255.0
!
interface Serial0
ip address 172.16.4.2 255.255.255.252
!router rip
version 2
network 172.16.0.0
Example 7-15 shows the output of the show ip route command on Router10. Networks
172.16.1.0/24 and 172.16.3.0/28 are learned from Router9 through Serial 0.
Also notice the numbers in brackets: [120/2]. The first number is the administrative distance of
RIP (120) and the second number is number of hops to reach the destination (2).
Example 7-15 Output for show ip route on Router10
router10#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
172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
C 172.16.4.0/30 is directly connected, Serial0
R 172.16.1.0/24 [120/1] via 172.16.4.1, 00:00:08, Serial0
C 172.16.2.0/24 is directly connected, Ethernet0
R 172.16.3.0/28 [120/2] via 172.16.4.1, 00:00:08, Serial0
You can verify RIP operation with the debug ip rip command. Example 7-16 shows an
approximately one-minute sample from Router10. Router10 receives routing updates
approximately every 30 seconds: at 23:43, 24:11, and 24:37. Router10 also sends its routing
table every 30 seconds: at 23:50 and 24:20.
Search WWH ::




Custom Search