ip prefix-list in action

do ip-prefix lists with bgp and show output and matches with permit deny ge le

R0 (AS1 1.1.1.1/30) <——–> R1 (AS2 1.1.1.2/30)

R1(config-router)#do sh ip bgp summ
BGP router identifier 1.1.1.2, local AS number 2
BGP table version is 45, main routing table version 45
3 network entries using 360 bytes of memory
3 path entries using 156 bytes of memory
2/1 BGP path/bestpath attribute entries using 248 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 788 total bytes of memory
BGP activity 25/22 prefixes, 26/23 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.1         4     1      85      77       45    0    0 00:16:27        3
R1(config-router)#do sh ip bgp
BGP table version is 45, local router ID is 1.1.1.2
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*> 3.3.3.0/24       1.1.1.1                  0             0 1 ?
*> 4.4.0.0/16       1.1.1.1                  0             0 1 ?
*> 6.6.4.0/22       1.1.1.1                  0             0 1 ?
R1(config-router)#

R0(config-router)#do sh ip prefix-list detail
Prefix-list with the last deletion/insertion: BGPCONN
ip prefix-list BGPCONN:
count: 1, range entries: 1, sequences: 5 – 5, refcount: 3
seq 5 permit 0.0.0.0/0 ge 16 le 24 (hit count: 3, refcount: 1)
R0(config-router)#do sh 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

1.0.0.0/30 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, FastEthernet0/0
2.0.0.0/28 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback1
4.0.0.0/16 is subnetted, 1 subnets
C       4.4.0.0 is directly connected, Loopback2
C    5.0.0.0/8 is directly connected, Loopback100
6.0.0.0/22 is subnetted, 1 subnets
C       6.6.4.0 is directly connected, Loopback200

R0(config-router)#do sh run | s bgp
router bgp 1
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
redistribute connected
neighbor 1.1.1.2 remote-as 2
distribute-list prefix BGPCONN out
no auto-summary

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s