IMLEMENTING DISTRIBUTE LIST  

Friday, November 14, 2008


implementing disribute lists

CODE
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:26, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
r2#
as#1
[Resuming connection 1 to r1 ... ]

r1#config t
Enter configuration commands, one per line. End with CNTL/Z.
r1(config)#ip prefix-list ?
WORD Name of a prefix list
sequence-number Include/exclude sequence numbers in NVGEN

r1(config)#ip prefix-list rakesh ?
deny Specify packets to reject
description Prefix-list specific description
permit Specify packets to forward
seq sequence number of an entry

r1(config)#ip prefix-list rakesh permit ?
A.B.C.D IP prefix /, e.g., 35.0.0.0/8

r1(config)#ip prefix-list rakesh permit 192.168.48.0/22
r1(config)#ip prefix-list rakesh deny 192.168.48.0/22 ?
ge Minimum prefix length to be matched
le Maximum prefix length to be matched


r1(config)#ip prefix-list rakesh deny 192.168.48.0/22 le ?
<1-32> Maximum prefix length

r1(config)#ip prefix-list rakesh deny 192.168.48.0/22 le 24
r1(config)#ip prefix-list rakesh permit 0.0.0.0/0 le 32
r1(config)#router rip
r1(config-router)#distribute-list ?
<1-199> IP access list number
<1300-2699> IP expanded access list number
WORD Access-list name
gateway Filtering incoming updates based on gateway
prefix Filter prefixes in routing updates

r1(config-router)#distribute-list prefix ?
WORD Name of an IP prefix-list

r1(config-router)#distribute-list prefix rakesh ?
gateway Filtering incoming updates based on gateway
in Filter incoming routing updates
out Filter outgoing routing updates

r1(config-router)#distribute-list prefix rakesh out serial 2/0
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:28:44, Serial2/1
192.168.25.0/32 is subnetted, 1 subnets
O 192.168.25.1 [110/65] via 172.16.23.3, 00:28:44, Serial2/1
192.168.40.0/32 is subnetted, 1 subnets
O 192.168.40.1 [110/65] via 172.16.23.3, 00:28:44, 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:10, Serial2/0
O 172.16.3.1/32 [110/65] via 172.16.23.3, 00:28:44, 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:28:45, Serial2/1
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:37, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:37, Serial2/0
192.168.35.0/32 is subnetted, 1 subnets
O 192.168.35.1 [110/65] via 172.16.23.3, 00:28:45, Serial2/1
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:37, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:11, 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:37, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:11, 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:00, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:54, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:54, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:54, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:54, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:00, 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:09, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:01:03, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:01:03, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:01:03, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:09, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:01:03, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:09, 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:12, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:01:06, Serial2/0 *
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:01:06, Serial2/0 *
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:01:06, Serial2/0 * ----> their timers should be expired first
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:12, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:01:06, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:12, Serial2/0
r2#

Design by Blogger Buster | Distributed by Blogging Tips