11-10-2019 07:55 AM
Hi,
Trying to configure BGP, with default vrf and specific other vrf in single BGP statement. I did try to configure, but only the one with default vrf is getting shown in show ip bgp summary. Please see the below config. Experts, pls advice the correction required, if am doing anything wrong.
interface Ethernet1/5.3333
encapsulation dot1q 3333
vrf member VRF-TEST-DMZ
ip address 10.101.0.22/30
no shutdown
feature bgp
router bgp 65512
log-neighbor-changes
address-family ipv4 unicast
network 10.20.32.0/21
neighbor 10.100.0.21 remote-as 31898
address-family ipv4 unicast
vrf VRF-TEST-DMZ
address-family ipv4 unicast
network 10.20.4.0/24
neighbor 10.101.0.21 remote-as 31898
address-family ipv4 unicast
default-originate
DECO-N77K01-PROD# show ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.100.0.21 4 31898 2751 2601 8 0 0 1d19h 2
Thanks in advance
Sreeraj
11-10-2019 08:57 AM
Hello
did you define VRF either vrf definition or ip vrf forwarding ?
and what is your topology
using sub interface is correct
where did you use
router bgp <AS> address-family ipv4 vrf <nameyour vrf> neighbor....................activate
neighbor .....................remote-as.......
without this you activated it in Global routing table
i think you forget to add VRF keyword behind address-family ipv4
11-10-2019 08:46 PM
Thanks for the quick response. I got it figured out, the configuration was correct.
But, I had to check the BGP status using show ip bgp summary vrf <vrf name>
which showed the BGP peering.
Thanks
11-12-2019 09:07 AM - edited 11-12-2019 09:11 AM
any ---> Show commands when comes in place when you have configured correct configuration otherwise NOT!
regards
and also i did not say your config was right or wrong
if right you why use VRF ...use Gloabl Routing Table instead of....VRF
anyway
good news it worked
11-11-2019 01:29 AM
11-12-2019 09:05 AM
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