December 05, 2013

Lab 02: RIP Outbound Route Filtering via Distribute-list

Let's configure RIPv2 on R1, R2 and R4.

R2#show ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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

     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     4.0.0.0/32 is subnetted, 1 subnets
R       4.4.4.4 [120/2] via 12.0.0.1, 00:00:25, Serial0/0
     12.0.0.0/30 is subnetted, 1 subnets
C       12.0.0.0 is directly connected, Serial0/0
     14.0.0.0/30 is subnetted, 1 subnets
R       14.0.0.0 [120/1] via 12.0.0.1, 00:00:25, Serial0/0

Distriute-list configuration on R1:

access-list 10 deny   4.4.4.4
access-list 10 permit any

router rip
 version 2
 network 12.0.0.0
 network 14.0.0.0
 distribute-list 10 out
 no auto-summary

After flush timer expires (240 seconds), network 4.4.4.4/32 is deleted from R2's routing table.

R2#show ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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

     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     12.0.0.0/30 is subnetted, 1 subnets
C       12.0.0.0 is directly connected, Serial0/0
     14.0.0.0/30 is subnetted, 1 subnets
R       14.0.0.0 [120/1] via 12.0.0.1, 00:00:02, Serial0/0

# DOWNLOAD LAB 02 GNS3 FILE