10-04-2018 03:16 PM - edited 03-05-2019 10:57 AM
Dear Sir,
I am beginner in BGP. I would like to know about the EBGP .
My Outbound traffic on CPE
All outbound traffic will go out thru primary line(12.1.3.1)
Inbound traffic on CPE
All inbound traffic will come in thru primary line (12.1.3.1) . How to configure.
i referenced below link but my scenario is a little different.i want to use EBGP . Which configuration part do i need to change and edit ?
http://showipbgp.com/bgp-configurations/40-cisco/71-3-1-1-cisco-dual-bgp-with-metric-redundancy.html
Solved! Go to Solution.
02-19-2020 09:52 PM
Hi,
I always local-preference and prepend as below.
router bgp 65000
bgp log-neighbor-changes
network 2.2.2.0 mask 255.255.255.0
neighbor 10.1.12.1 remote-as 1
neighbor 10.1.12.1 route-map PREPEND out <===Primary Link
neighbor 10.1.12.1 route-map failoverlink in <==== Secondarily link
neighbor 12.12.12.1 remote-as 1
route-map failoverlink permit 10
set local-preference 80
route-map PREPEND permit 10
set as-path prepend 65000 65000
10-04-2018 05:02 PM - edited 10-04-2018 10:15 PM
A route-map with weight to determine outbound traffic and as-prepends to determine inbound traffic. You can also use M.E.D. if eBGP peerings are same AS on far end.
You can have a secondary route-map for the backup link with N prepends and weight lower than default and leave the primary without a route-map. You would then have a failover route-map configured and ready to be applied. It would have more as-prepends than the backup and a lower weight.
Or you could have a primary route-map on the primary and a less desirable route-map on the backup with a failover route-map ready to be applied to the primary.
10-04-2018 05:20 PM
10-05-2018 12:10 PM
Yes, this would work over DMVPN the same way.
HUB and Spoke should use same network ID in NHRP. Tunnel IP should be same subnet.
Example failover:
route-map FAILOVER permit 10
set metric 15000 (higher than secondary)
set weight 50 (lower than secondary, cisco propriety)
set as-path prepend 12345 12345 12345 12345 12345 12345 12345 (more hops than secondary)
And you would apply this in BGP configs
10-07-2018 06:40 PM
10-09-2018 03:10 AM
02-19-2020 09:52 PM
Hi,
I always local-preference and prepend as below.
router bgp 65000
bgp log-neighbor-changes
network 2.2.2.0 mask 255.255.255.0
neighbor 10.1.12.1 remote-as 1
neighbor 10.1.12.1 route-map PREPEND out <===Primary Link
neighbor 10.1.12.1 route-map failoverlink in <==== Secondarily link
neighbor 12.12.12.1 remote-as 1
route-map failoverlink permit 10
set local-preference 80
route-map PREPEND permit 10
set as-path prepend 65000 65000
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