cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1155
Views
5
Helpful
2
Replies

BGP Inbound Route-map

kfarrington
Level 3
Level 3

I have the following config with one eBGP peer and no iBGP peer.

Single2#sh ip bgp summ

BGP router identifier 192.168.20.2, local AS number 20

BGP table version is 241, main routing table version 241

29 network entries using 2929 bytes of memory

31 path entries using 1488 bytes of memory

12 BGP path attribute entries using 720 bytes of memory

6 BGP AS-PATH entries using 144 bytes of memory

3 BGP community entries using 72 bytes of memory

21 BGP route-map cache entries using 420 bytes of memory

0 BGP filter-list cache entries using 0 bytes of memory

BGP using 5773 total bytes of memory

1 received paths for inbound soft reconfiguration

BGP activity 135/106 prefixes, 201/170 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

192.168.1.14 4 19855 754166 754058 241 0 0 02:39:35 27

192.168.20.1 4 20 0 0 0 0 0 never Active

Single2#

router bgp 20

neighbor MPLS-CORE route-map OVERLAP in

!

no route-map OVERLAP

Route-map OVERLAP permit 10

match community 52 exact-match

set local-pref 500

Route-map OVERLAP permit 20

match community 53 exact-match

set local-pref 400

Route-map OVERLAP permit 30

match community 54 exact-match

set local-pref 300

Route-map OVERLAP permit 40

match ip address prefix-list DEFAULT

match community 51 exact-match

set local-pref 200

Route-map OVERLAP permit 50

match ip address prefix-list DEFAULT

match community 50 exact-match

set local-pref 100

Route-map OVERLAP permit 60

!

ip prefix-list DEFAULT permit 0.0.0.0/0

!

ip community-list 50 permit 65212:9350

ip community-list 51 permit 10:1

ip community-list 52 permit 65020:9352

ip community-list 53 permit 65070:9353

ip community-list 54 permit 64920:9354

!

end

When I match a route in the permit 40 line, the prefix gets a local-pref of 200.

When I do a "show ip bgp 0.0.0.0", I see the entry from the rib-in and the loc-rib.

This shows a two available paths FROM THE SAME NEIGHBOR??

Is this normal?

Single2#sh ip bgp 0.0.0.0

BGP routing table entry for 0.0.0.0/0, version 123

Paths: (2 available, best #1, table Default-IP-Routing-Table)

Flag: 0x820

Not advertised to any peer

19855 10

192.168.1.14 from 192.168.1.14 (192.168.0.1)

Origin IGP, metric 1000, localpref 200, valid, external, best

Community: 10:1

19855 10, (received-only)

192.168.1.14 from 192.168.1.14 (192.168.0.1)

Origin IGP, metric 1000, localpref 100, valid, external

Community: 10:1

Single2#

Without applying an inbound route-map to set an attribute, or if I change the community-list to not match ie

ip community-list 51 permit 11:1

I get just the one entry (loc-rib and rib-in are the same)

Single2#sh ip bgp 0.0.0.0

BGP routing table entry for 0.0.0.0/0, version 27

Paths: (1 available, best #1, table Default-IP-Routing-Table)

Not advertised to any peer

19855 10, (received & used)

192.168.1.14 from 192.168.1.14 (192.168.0.1)

Origin IGP, metric 1000, localpref 100, valid, external, best

Community: 10:1

Single2#

Has anyone seen this behavious before?

Kindest regards,

ken

1 Accepted Solution

Accepted Solutions

Harold Ritter
Level 12
Level 12

This is normal behavior and is due to inbound soft reconfiguration. The received-only is the path as received from the peer.

As you can see the local-preference on the received-only entry is untouched.

The reason you don't see two entries when removing the route-map is that the received entry is used as such by BGP (not modified).

Hope this helps,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

2 Replies 2

Harold Ritter
Level 12
Level 12

This is normal behavior and is due to inbound soft reconfiguration. The received-only is the path as received from the peer.

As you can see the local-preference on the received-only entry is untouched.

The reason you don't see two entries when removing the route-map is that the received entry is used as such by BGP (not modified).

Hope this helps,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Many thx for that. great

kindest regards,

Ken

Review Cisco Networking for a $25 gift card