07-04-2023 08:18 AM
Hi Guys
I am configuring 2 routers that connect to provider A and one connects to provider B, we have our own AS number and PI block.
I want to force all traffic out of provider A.
The 2 routers will be IBGP neighbours and I also want to prevent any traffic potentially transiting us. IP addresses are made up.
Does the following config look OK, this is from router A which will be primary.
router bgp 123456 (ISP PE)
bgp router-id 44.44.44.44
bgp log-neighbor-changes
network 197.76.24.0
neighbor 81.55.55.55 remote-as 654321 (IBGP neighbour)
neighbor 81.55.55.55 soft-reconfiguration inbound
neighbor 192.168.1.1 remote-as 123456
neighbor 192.168.1.1 route-map SET-LOCAL-PREF out
neighbor 192.168.1.1 filter-list 1 out
neighbor 192.168.1.1 soft-reconfiguration inbound
neighbor 192.168.1.1 next-hop-self
ip prefix-list LOCAL-PREF seq 5 permit 0.0.0.0/0
route-map SET-LOCAL-PREF permit 10
match ip address prefix-list LOCAL-PREF
set local-preference 500
ip as-path access-list 1 permit ^$
The same config would be applied on router B except the local pref stuff.
Does this look OK?
07-07-2023 10:12 AM
Hi
what happens if you apply the local pref route map to the external neighbour inbound?
This should also set the LP to 500 on the routes received from the isp and pass it to the ibgp neighbour?
07-07-2023 10:16 AM
Not work'
LP attribute exchange only between ibgp not between ebgp.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide