PREFIX LIST WITH BGP
Friday, November 14, 2008
this is how you execute the prefix list command
the requirement was that sanjose2 should not send updates or network info about 199 network
CODE
sanjose2(config)#ip prefix-list rakesh1 deny 199.9.9.0/24
sanjose2(config)#ip prefix-list rakesh1 permit 0.0.0.0/32
sanjose2(config)#end
sanjose2#
as#1
---------------------------------------------------------------
sanjose2(config-router)#nei 192.168.1.5 pre
sanjose2(config-router)#nei 192.168.1.5 prefix-list ?
WORD Name of a prefix list
sanjose2(config-router)#nei 192.168.1.5 prefix-list rakesh1 ?
in Filter incoming updates
out Filter outgoing updates
sanjose2(config-router)#nei 192.168.1.5 prefix-list rakesh1 out
sanjose2(config-router)#
as#2
[Resuming connection 2 to r2 ... ]
sanjose1#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
R 200.100.50.0/24 [120/1] via 192.168.1.6, 00:00:01, Serial2/0
172.24.0.0/24 is subnetted, 1 subnets
R 172.24.1.0 [120/1] via 192.168.1.6, 00:00:01, Serial2/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, Serial2/0
sanjose1#
-------------------------------------
sanjose2#show ip pre
sanjose2#show ip prefix-list
ip prefix-list rakesh1: 2 entries
seq 5 deny 199.9.9.0/24
seq 10 permit 0.0.0.0/32
sanjose2#
sanjose2(config)#ip prefix-list rakesh1 permit 0.0.0.0/32
sanjose2(config)#end
sanjose2#
as#1
---------------------------------------------------------------
sanjose2(config-router)#nei 192.168.1.5 pre
sanjose2(config-router)#nei 192.168.1.5 prefix-list ?
WORD Name of a prefix list
sanjose2(config-router)#nei 192.168.1.5 prefix-list rakesh1 ?
in Filter incoming updates
out Filter outgoing updates
sanjose2(config-router)#nei 192.168.1.5 prefix-list rakesh1 out
sanjose2(config-router)#
as#2
[Resuming connection 2 to r2 ... ]
sanjose1#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
R 200.100.50.0/24 [120/1] via 192.168.1.6, 00:00:01, Serial2/0
172.24.0.0/24 is subnetted, 1 subnets
R 172.24.1.0 [120/1] via 192.168.1.6, 00:00:01, Serial2/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, Serial2/0
sanjose1#
-------------------------------------
sanjose2#show ip pre
sanjose2#show ip prefix-list
ip prefix-list rakesh1: 2 entries
seq 5 deny 199.9.9.0/24
seq 10 permit 0.0.0.0/32
sanjose2#
*in the lab guide the config is given wrong if any one following it please observe while doing the lab
completed and really went out the guilty feeling now ...
done with bgp from lab guide ... ciao with redisribution
regards
raaki