03-16-2021 12:35 PM - edited 03-16-2021 01:32 PM
Hello everyone,
i configured eBGP session between IOS XRV and VMX Routers, but still the BGP state on ACTIVE. can someone help me please to solve this problem.
Configurations in IOS XRV Router:
!
interface Loopback0
ipv4 address 10.100.100.3 255.255.255.255
!
interface MgmtEth0/RP0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
ipv4 address 10.100.21.2 255.255.255.0
!
interface GigabitEthernet0/0/0/1
ipv4 address 10.100.20.2 255.255.255.0
!
interface GigabitEthernet0/0/0/2
ipv4 address 10.100.25.2 255.255.255.0
!
interface GigabitEthernet0/0/0/3
ipv4 address 10.100.26.1 255.255.255.0
!
interface GigabitEthernet0/0/0/4
ipv4 address 10.100.27.1 255.255.255.0
!
interface GigabitEthernet0/0/0/5
ipv4 address 10.100.25.1 255.255.255.0
router bgp 64522
bgp router-id 10.100.100.3
address-family ipv4 unicast
network 10.100.100.3/32
!
neighbor 10.100.20.1
remote-as 64533
update-source Loopback0
!
neighbor 10.100.21.1
remote-as 64533
update-source Loopback0
!
!
end
-----------------
RP/0/RP0/CPU0:cisco1#show bgp summary
Tue Mar 16 19:29:02.536 UTC
BGP router identifier 10.100.100.3, local AS number 64522
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0xe0000000 RD version: 3
BGP main routing table version 3
BGP NSR Initial initsync version 3 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs
BGP is operating in STANDALONE mode.
Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 3 3 3 3 3 0
RP/0/RP0/CPU0:cisco1#show bgp table
Tue Mar 16 19:29:49.367 UTC
Neighbor VRF Spk AS TblVer InQ OutQ St/PfxRcd
-----------------------------------------
Configurations in VMX Router:
}
lo0 {
unit 0 {
family inet {
address 10.100.100.1/32;
}
}
}
}
routing-options {
autonomous-system 64533;
root@VMX1# run show configuration protocols bgp
group external-peers {
type external;
peer-as 64522;
neighbor 10.100.20.2;
neighbor 10.100.21.2;
}
group internal-bgp {
type internal;
local-address 10.100.100.1;
neighbor 10.100.100.2;
}
root@VMX1# run show bgp summary
Threading mode: BGP I/O
Groups: 2 Peers: 3 Down peers: 3
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.100.20.2 64522 0 0 0 0 4:23:33 Active
10.100.21.2 64522 0 0 0 0 4:23:33 Active
10.100.100.2 64533 0 0 0 0 1:01:30 Active
Thanks,
Solved! Go to Solution.
03-16-2021 01:13 PM - edited 03-16-2021 01:42 PM
Hi Saskiaaa,
There is a couple of things missing.
1. Since you want to establish the session to the directly connected IP address of the neighbor, you need to remove the "update-source Loopback0" from both neighbors on the XRv side.
2. You need to enable at least one address family on the XRv side and Juniper side as well.
XRv side:
neighbor 10.100.20.1
address-family ipv4 unicast
neighbor 10.100.21.1
address-family ipv4 unicast
Juniper side:
group external-peers {
type external;
peer-as 64522;
neighbor 10.100.20.2;
neighbor 10.100.21.2;
family inet;
}
3. You need an ingress route policy by default in XR, but if this is a lab exercice you could disable the default behavior with the following configuration.
router bgp 64522
bgp unsafe-ebgp-policy
Regards,
03-16-2021 02:47 PM
If you want to export the loopback interface IP address from JUNOS to XR or vice versa, you would configure something like this:
XR:
router bgp 64522
address-family ipv4 uni
network 10.100.100.3/32
JUNOS:
set protocols bgp group external-peers export loopback
set policy-options policy-statement loopback term 1 from protocol direct
set policy-options policy-statement loopback term 1 from interface lo0.0
set policy-options policy-statement loopback term 1 then accept
Regards,
03-16-2021 01:13 PM - edited 03-16-2021 01:42 PM
Hi Saskiaaa,
There is a couple of things missing.
1. Since you want to establish the session to the directly connected IP address of the neighbor, you need to remove the "update-source Loopback0" from both neighbors on the XRv side.
2. You need to enable at least one address family on the XRv side and Juniper side as well.
XRv side:
neighbor 10.100.20.1
address-family ipv4 unicast
neighbor 10.100.21.1
address-family ipv4 unicast
Juniper side:
group external-peers {
type external;
peer-as 64522;
neighbor 10.100.20.2;
neighbor 10.100.21.2;
family inet;
}
3. You need an ingress route policy by default in XR, but if this is a lab exercice you could disable the default behavior with the following configuration.
router bgp 64522
bgp unsafe-ebgp-policy
Regards,
03-16-2021 01:38 PM
Hi Harold,
i removed and nothing change.
Regards,
03-16-2021 01:42 PM
I edited my original post to include a few more things.
03-16-2021 02:22 PM
Thank you mr Harold, its look better now. did you know how i can advertise the connected networks ( for example loopback ) on VMX side ?
[edit]
root@VMX1# run show bgp summary
Threading mode: BGP I/O
Groups: 2 Peers: 3 Down peers: 1
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
2 1 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.100.20.2 64522 11 8 0 0 3:42 Establ
inet.0: 1/1/1/0
10.100.21.2 64522 7 4 0 0 1:40 Establ
inet.0: 0/1/1/0
10.100.100.2 64533 0 0 0 0 1:45:23 Active
--------
Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 7 7 7 7 7 0
Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
10.100.20.1 0 64533 6 8 7 0 0 00:02:10 0
10.100.21.1 0 64533 2 4 7 0 0 00:00:08 0
Regards,
03-16-2021 02:47 PM
If you want to export the loopback interface IP address from JUNOS to XR or vice versa, you would configure something like this:
XR:
router bgp 64522
address-family ipv4 uni
network 10.100.100.3/32
JUNOS:
set protocols bgp group external-peers export loopback
set policy-options policy-statement loopback term 1 from protocol direct
set policy-options policy-statement loopback term 1 from interface lo0.0
set policy-options policy-statement loopback term 1 then accept
Regards,
03-17-2021 04:12 PM - edited 03-18-2021 01:43 AM
thank you very much!
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