cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
755
Views
0
Helpful
2
Replies

bgp ACL and LocPrf question

cisco steps
Level 1
Level 1

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

R1-R2-R3-R4

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

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

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

R1 (Config)# access list 18 permit 172.12.34 0.0.0.255

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

Thanks

2 Replies 2

Istvan_Rabai
Level 7
Level 7

Hi Ocporburst,

A 0 is missing from your ACL. Corrected:

access list 18 permit 172.12.34.0 0.0.0.255

This config sets the local preference of the 172.12.34.0 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.

Thanks:

Istvan

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card