THE WAY TO DO IT  

Friday, November 14, 2008

this is how we do it

CODE
r1(config)#

r1(config)#ip route 192.168.48.0 255.255.252.0 null0
r1(config)#router rip
r1(config-router)#redistribute static
r1(config-router)#
as#3
[Resuming connection 3 to r5 ... ]


r2#sir
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

192.168.30.0/32 is subnetted, 1 subnets
O 192.168.30.1 [110/65] via 172.16.23.3, 00:17:58, Serial2/1
192.168.25.0/32 is subnetted, 1 subnets
O 192.168.25.1 [110/65] via 172.16.23.3, 00:17:58, Serial2/1
192.168.40.0/32 is subnetted, 1 subnets
O 192.168.40.1 [110/65] via 172.16.23.3, 00:17:58, Serial2/1
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial2/1
C 172.16.12.0/24 is directly connected, Serial2/0
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:05, Serial2/0
O 172.16.3.1/32 [110/65] via 172.16.23.3, 00:17:58, Serial2/1
C 172.16.2.0/24 is directly connected, Loopback0
192.168.20.0/32 is subnetted, 1 subnets
O 192.168.20.1 [110/65] via 172.16.23.3, 00:17:59, Serial2/1
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
192.168.35.0/32 is subnetted, 1 subnets
O 192.168.35.1 [110/65] via 172.16.23.3, 00:17:59, Serial2/1
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
192.168.48.0/24 is subnetted, 1 subnets
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:10, Serial2/0 -------------------- ***********
r2#


we see no use for this as more specific routes are obviously preffered over /22 mask ... so lets use distribute list to accomplish it

Design by Blogger Buster | Distributed by Blogging Tips