You are on page 1of 8

Filtering Routing Updates with a Distribute List Lab

Topology

Lab Purpose:
1Master route distribute-list filtering configuration.
Lab Steps:
1Finish basic IP configuration.
2Enable OSPF and RIPV2 on relevant routers, and disable RIPV2 auto summary.
3Redistribute between RIP and OSPF on R2.
4Check routing table on R1 and R3.
R1#show ip route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 5 subnets
C 172.16.255.0 is directly connected, Serial1/1
C 172.16.0.0 is directly connected, Loopback0
C 172.16.1.0 is directly connected, Loopback0
C 172.16.2.0 is directly connected, Loopback0

C 172.16.3.0 is directly connected, Loopback0


O E2 192.168.255.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
O E2 192.168.0.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
O E2 192.168.1.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
O E2 192.168.2.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
O E2 192.168.3.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
R3#show ip route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 5 subnets
R 172.16.255.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
R 172.16.0.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
R 172.16.1.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
R 172.16.2.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
R 172.16.3.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
C 192.168.255.0/24 is directly connected, Serial1/0
C 192.168.0.0/24 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, Loopback0
C 192.168.2.0/24 is directly connected, Loopback0
C 192.168.3.0/24 is directly connected, Loopback0
5According to the topology config OSPF route filtering configuration on R2.
R2(config)#access-list 1 deny 172.16.0.0 0.0.0.255
R2(config)#access-list 1 deny 172.16.1.0 0.0.0.255
R2(config)#access-list 1 permit any

R2(config)#router rip
R2(config-router)#distribute-list 1 out ospf 1
R2(config-router)#exit
R2(config)#
6Check routing table on R3.
R3#show ip route
Gateway of last resort is not set
R 172.16.255.0 [120/10] via 192.168.255.2, 00:00:02, Serial1/0
R 172.16.2.0 [120/10] via 192.168.255.2, 00:00:02, Serial1/0
R 172.16.3.0 [120/10] via 192.168.255.2, 00:00:02, Serial1/0
C 192.168.255.0/24 is directly connected, Serial1/0
C 192.168.0.0/24 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, Loopback0
C 192.168.2.0/24 is directly connected, Loopback0
C 192.168.3.0/24 is directly connected, Loopback0
7According to the topology config RIP route filtering configuration on R2.
R2(config)#access-list 2 deny 192.168.2.0 0.0.0.255
R2(config)#access-list 2 deny 192.168.3.0 0.0.0.255
R2(config)#access-list 2 permit any
R2(config)#router ospf 1
R2(config-router)#distribute-list 2 out rip
R2(config-router)#exit
8Check routing table on R1.

R1#show ip route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 5 subnets
C 172.16.255.0 is directly connected, Serial1/1
C 172.16.0.0 is directly connected, Loopback0
C 172.16.1.0 is directly connected, Loopback0
C 172.16.2.0 is directly connected, Loopback0
C 172.16.3.0 is directly connected, Loopback0
O E2 192.168.255.0/24 [110/200] via 172.16.255.2, 00:19:20, Serial1/1
O E2 192.168.0.0/24 [110/200] via 172.16.255.2, 00:19:20, Serial1/1
O E2 192.168.1.0/24 [110/200] via 172.16.255.2, 00:19:20, Serial1/1

Filtering Routing Updates with a Route Map Lab


Topology

Lab Purpose:
1Master basic Route-map filtering configuration.
Lab Steps:
1Finish basic IP configuration.
2Enable OSPF and RIPV2 on relevant routers, and disable RIPV2 auto summary.
3Redistribute between RIP and OSPF on R2.
4Check routing table on R1 and R3.
R1#show ip route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 5 subnets
C 172.16.255.0 is directly connected, Serial1/1
C 172.16.0.0 is directly connected, Loopback0
C 172.16.1.0 is directly connected, Loopback0
C 172.16.2.0 is directly connected, Loopback0

C 172.16.3.0 is directly connected, Loopback0


O E2 192.168.255.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
O E2 192.168.0.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
O E2 192.168.1.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
O E2 192.168.2.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
O E2 192.168.3.0/24 [110/200] via 172.16.255.2, 00:00:15, Serial1/1
R3#show ip route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 5 subnets
R 172.16.255.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
R 172.16.0.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
R 172.16.1.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
R 172.16.2.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
R 172.16.3.0 [120/10] via 192.168.255.2, 00:00:01, Serial1/0
C 192.168.255.0/24 is directly connected, Serial1/0
C 192.168.0.0/24 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, Loopback0
C 192.168.2.0/24 is directly connected, Loopback0
C 192.168.3.0/24 is directly connected, Loopback0
5According to the topology config route-map based OSPF route filtering configuration on R2.
R2(config)#access-list 1 deny 172.16.0.0 0.0.0.255
R2(config)#access-list 1 deny 172.16.1.0 0.0.0.255
R2(config)#access-list 1 permit any

R2(config)#
R2(config)#route-map ospf_to_rip permit 10
R2(config-route-map)#match ip address 1
R2(config-route-map)#exit
R2(config)#router rip
R2(config-router)#redistribute ospf 1 metric 10 route-map ospf_to_rip
R2(config-router)#exit
R2(config)#exit
6Check routing table on R3.
R3#show ip route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 3 subnets
R 172.16.255.0 [120/10] via 192.168.255.2, 00:00:05, Serial1/0
R 172.16.2.0 [120/10] via 192.168.255.2, 00:00:05, Serial1/0
R 172.16.3.0 [120/10] via 192.168.255.2, 00:00:05, Serial1/0
C 192.168.255.0/24 is directly connected, Serial1/0
C 192.168.0.0/24 is directly connected, Loopback0
C 192.168.1.0/24 is directly connected, Loopback0
C 192.168.2.0/24 is directly connected, Loopback0
C 192.168.3.0/24 is directly connected, Loopback0
7According to the topology config route-map based RIP route filtering configuration on R2.
R2(config)#access-list 2 permit 192.168.2.0 0.0.0.255
R2(config)#access-list 2 permit 192.168.3.0 0.0.0.255

R2(config)#
R2(config)#route-map rip_to_ospf deny 10
R2(config-route-map)#match ip address 2
R2(config-route-map)#exit
R2(config)#route-map rip_to_ospf permit 20
R2(config-route-map)#exit
R2(config)#
R2(config)#router ospf 1
R2(config-router)#redistribute rip metric 200 subnets route-map rip_to_ospf
R2(config-router)#exit
R2(config)#exit
8Check routing table on R1.
R1#show ip route
Gateway of last resort is not set
172.16.0.0/30 is subnetted, 5 subnets
C 172.16.255.0 is directly connected, Serial1/1
C 172.16.0.0 is directly connected, Loopback0
C 172.16.1.0 is directly connected, Loopback0
C 172.16.2.0 is directly connected, Loopback0
C 172.16.3.0 is directly connected, Loopback0
O E2 192.168.255.0/24 [110/200] via 172.16.255.2, 00:19:20, Serial1/1
O E2 192.168.0.0/24 [110/200] via 172.16.255.2, 00:19:20, Serial1/1
O E2 192.168.1.0/24 [110/200] via 172.16.255.2, 00:19:20, Serial1/1

You might also like