06-27-2023 03:00 AM
Hello everyone, I'm having a problem dealing with the following error while configuring BGP on 2 VRFs (Regular BGP, not MP-BGP).
Please refer to the picture below.
and this is my bgp configuration:
!
router bgp 65000
no synchronization
no bgp log-neighbor-changes
no auto-summary
!
address-family ipv4 vrf blue
no synchronization
bgp router-id 192.168.1.12
neighbor 192.168.1.13 remote-as 65001
neighbor 192.168.1.13 local-as 65002
neighbor 192.168.1.13 activate
exit-address-family
!
I hope someone can help me with this issue. Thank you!
06-27-2023 03:16 AM
in vrf red you use id 192.168.1.13 <<-
which then use in vrf blue,
check the idea, it best to config LO in each VRF and use it IP as bgp route-id
06-27-2023 06:55 AM
hello @Cisco Enthusiast,
on your router bgp 65000 instance:
it should be neighbor 192.168.1.13 local-as 65000 instead of neighbor 192.168.1.13 local-as 65002 ?
06-27-2023 07:08 AM
Hello,
The error shows you what the issue is:
myrouter (config-router-af) # neighbor 192.168.1.12 remote-as 65002 & Cannot configure the local system as neighbor
192.168.1.12 must be a local ip on that system.
A neighbor must be an IP not on the local system.
-David
06-27-2023 08:50 AM
Hi @Cisco Enthusiast ,
On another note, if you want vrf blue to see vrf red as 65001 and vrf red to see vrf blue as 65002, you should configure the following:
router bgp 65000
address-family ipv4 vrf blue
neighbor 192.168.1.13 local-as 65002 no-prepend replace-as
address-family ipv4 vrf red
neighbor 192.168.1.12 local-as 65001 no-prepend replace-as
Regards,
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