What the correct BGP configuration on Certkiller 3 and Certkiller 2 to have AS 65102 prefer the path to AS 65101 over the path to AS 65103?

Network topology exhibit

What the correct BGP configuration on Certkiller 3 and Certkiller 2 to have AS 65102 prefer the path to AS 65101 over the path to AS 65103?

Network topology exhibit

What the correct BGP configuration on Certkiller 3 and Certkiller 2 to have AS 65102 prefer the path to AS 65101 over the path to AS 65103?

A.
hostname Certkiller 3
!
router bgp 65102
neighbor 172.16.2.4 remote-as 65102
neighbor 10.2.2.1 remote-as 65101
bgp default local-preference 140
hostname Certkiller 2
!
router bgp 65102
neighbor 172.16.1.4 remote-as 65102
neighbor 10.1.1.5 remote-as 65103
bgp default local-preference 120

B.
hostname Certkiller 3
!
router bgp 65102
neighbor 172.16.2.4 remote-as 65102
neighbor 10.2.2.1 remote-as 65101
neighbor 10.2.2.1 local-preference 140
hostname Certkiller 2
!
router bgp 65102
neighbor 172.16.1.4 remote-as 65102
neighbor 10.1.1.5 remote-as 65103
neighbor 10.1.1.5 local-preference 120

Explanation:

Bgp default local-preference command can be used in BGP configuration mode to change that default value of local preference. The new default value only applies to locally originated routes and those received from external neighbors. Setting a valued lower than the default 100 will result in the router preferring internal paths to external (normally a router would prefer external routes). Setting a value higher than 100 will result in external paths being preferred to all internal paths (also those with a shorter AS path).
Reference: Configuring BGP on Cisco routers p.7-11



Leave a Reply 0

Your email address will not be published. Required fields are marked *