background image
Configuration of RIP and IGRP 377
The passive-interface Command
The passive-interface command can be used to cause the router to listen for RIP/IGRP and
advertise about the connected subnet, but not to send RIP/IGRP updates on the interface. In
Example 6-2, a sample IGRP configuration causes the router to advertise about all connected
subnets, to listen on all interfaces for IGRP updates, and to advertise on all interfaces except
ethernet 1.
Notice that the four network commands match all five interfaces on the router (refer to
Figure 6-9). The passive-interface router subcommand causes the router to not send IGRP
updates on interface E1. Also, notice the 1 on the router igrp command--all other routers using
IGRP must use this same process-id, assuming that all routers want to exchange routing
information using IGRP.
Example 6-2
Sample IGRP Configuration and show ip route Output
interface ethernet 0
ip address 10.1.2.3 255.255.255.0
interface ethernet 1
ip address 172.16.1.1 255.255.255.0
interface tokenring 0
ip address 10.1.3.3 255.255.255.0
interface serial 0
ip address 199.1.1.1 255.255.255.0
interface serial 1
ip address 199.1.2.1 255.255.255.0
!
router igrp 1
network 10.0.0.0
network 199.1.1.0
network 199.1.2.0
network 172.16.0.0
passive-interface ethernet 1
Mayberry#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, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 3 subnets
C 10.1.2.0 is directly connected, TokenRing0
C 10.1.3.0 is directly connected, Ethernet0
I 10.1.4.0 [100/8539] via 10.1.2.14, 00:00:50, Ethernet0
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, Ethernet1
I 172.16.2.0 [100/6244] via 172.16.1.44, 00:00:20, Ethernet1
C 199.1.1.0/24 is directly connected, Serial0
C 199.1.2.0/24 is directly connected, Serial1
ch06.fm Page 377 Monday, March 20, 2000 5:11 PM