04-14-2022 01:04 AM
Hello,
XR2
/ \
/ \
xrv1 XR4
\ /
\ /
XR3
I have set up 4 routers. And all 4 routers are in different ASs.Xrv4 is distributing 4.4.4.4. XRv1 is receiving the (4.4.4.4) from Xrv2 and Xrv3. On XRv1 I have configured 'maximum-paths eibgp 10' command. But still, xrv1 is picking only one best path. Am I missing any configuration?
xrv1
----------
int gi0/0/0/0
ip address 100.10.20.1 255.255.255.0
no sh
int gi0/0/0/1
ip address 100.10.30.1 255.255.255.0
no sh
int lo0
ip address 1.1.1.1 255.255.255.255
route-policy pass
pass
exit
router bgp 1
address-family ipv4 unicast
maximum-paths eibgp 10
exit
neighbor 100.10.20.2
remote-as 2
address-family ipv4 unicast
route-policy pass in
route-policy pass out
neighbor 100.10.30.3
remote-as 3
address-family ipv4 unicast
route-policy pass in
route-policy pass out
xrv2
------------------
int gi0/0/0/0
ip address 100.10.20.2 255.255.255.0
no sh
int gi0/0/0/1
ip address 100.20.30.2 255.255.255.0
no sh
int lo0
ip address 2.2.2.2 255.255.255.255
route-policy pass
pass
exit
router bgp 2
address-family ipv4 unicast
exit
neighbor 100.10.20.1
remote-as 1
address-family ipv4 unicast
route-policy pass in
route-policy pass out
neighbor 100.20.40.4
remote-as 4
address-family ipv4 unicast
route-policy pass in
route-policy pass out
xrv3
------------------
int gi0/0/0/0
ip address 100.30.40.3 255.255.255.0
no sh
int gi0/0/0/1
ip address 100.10.30.3 255.255.255.0
no sh
int lo0
ip address 3.3.3.3 255.255.255.255
route-policy pass
pass
exit
router bgp 3
address-family ipv4 unicast
exit
neighbor 100.10.30.1
remote-as 1
address-family ipv4 unicast
route-policy pass in
route-policy pass out
neighbor 100.30.40.4
remote-as 4
address-family ipv4 unicast
route-policy pass in
route-policy pass out
xrv4
--------------------------------
int gi0/0/0/0
ip address 100.30.40.4 255.255.255.0
no sh
int gi0/0/0/1
ip address 100.20.40.4 255.255.255.0
no sh
int lo0
ip address 4.4.4.4 255.255.255.255
router bgp 4
address-family ipv4 unicast
network 4.4.4.4/32
exit
neighbor 100.20.40.2
remote-as 2
address-family ipv4 unicast
route-policy pass in
route-policy pass out
neighbor 100.30.40.3
remote-as 3
address-family ipv4 unicast
route-policy pass in
route-policy pass out
04-14-2022 06:09 AM
Actually 'maximum-paths eibgp 10' is made to allow the router to stablish eBGP with router not directly connected.
04-14-2022 07:40 AM - edited 04-14-2022 07:41 AM
Max-paths eibgp used when
There are two identical path one ibgp and other bgp.
You need only
Max parhs 10
Since both path is 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