Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

bgp ACL and LocPrf question

Can anyone please explain these commands to me? I am preparing for my BSCI exam and got stuck on this one learning BGP routing..

Here is the topology


(R2) to reach network it needs to use next hope (R4)

(R2) to reach network it needs to use next hope (R4)

Now we want (R2) to use (R3) as next hope to and keep (R2) to reach network trough (R4)

R1 (Config)# access list 18 permit 172.12.34

R1 (Config-router-map)#route-map PREFER _R3_FOR _172 permit 10

R1 (Config-router-map)#match ip address 18

R1 (Config-router-map)#set local-pref 200

R1 (Config-router-map)# route-map PREFER _R3_FOR _172 permit 20

R1 (Config-router-map)#set local-pref 100

I know we are trying to get the router to take a different route by creating ACL because that's what we preferred and changing local-pref to higer number will get the job done but something is not clear to me in the config and just needed some more explanation



Re: bgp ACL and LocPrf question

Hi Ocporburst,

A 0 is missing from your ACL. Corrected:

access list 18 permit

This config sets the local preference of the prefix to 200 on R1.

Currently I don't see how it will make R2 to use R3 as the next-hop for this prefix.

Can you please clarify if the topology you have drawn represents also the BGP neighbor relationships between the routers.

Also, please indicate, which neighbor relationship is eBGP and which one is iBGP.



Re: bgp ACL and LocPrf question

Can you post the complete BGP configuration, so we can better understand the network and BGP relationships in question?