06-22-2017 05:37 AM - edited 03-05-2019 08:44 AM
Hi,
We are unable to advertise the LAN subnets to the second VRF in E-BGP from Nexus5 towards ASR9K router. However we are able to receive routes on the second VRF. The arvertisement in first VRF is okay.
The setup is like this Nexus5 >>>>>>ASR9K with both having 2 vrf's and the AS number for the bgp neighbor is same at both ends.
Appreciate any help on this.
Thanks.
See logs below for reference.
N5K - VRF1
#################
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.207.62.33 4 64909 31490 25648 106851 0 0 01:00:11 6297 <<<<<<<<<<<<<<<<eBgp with ASR
10.207.62.42 4 65359 31770 31708 106851 0 0 00:09:51 16 <<<<<<<<<<<<<<<<<<<<<i-BGP with backup Nexus
DD5SW2001#
N5K - VRF2
##################
DD5SW2001# sh ip bgp vrf ACN:BROADCAST summary | b Ne
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.207.62.57 4 64909 25672 25603 116 0 0 2d02h 11 <<<<<<<<<<<<<<<<<eBgp with ASR
10.207.62.66 4 65359 25602 25622 116 0 0 00:10:48 0 <<<<<<<<<<<<<<< i-BGP with backup nexus
DD5SW2001#
Output for First VRF advertised routes
##################################
Peer 10.207.62.33 routes for address family IPv4 Unicast:
BGP table version is 106866, local router ID is 10.207.62.253
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup
Network Next Hop Metric LocPrf Weight Path
*>r10.207.62.0/27 0.0.0.0 0 100 32768 ?
*>r10.207.62.253/32 0.0.0.0 0 100 32768 ?
*>i10.207.62.254/32 10.207.62.42 0 115 0 ?
*>r10.207.63.0/25 0.0.0.0 0 100 32768 ?
*>r10.207.63.128/26 0.0.0.0 0 100 32768 ?
*>r10.225.96.0/22 0.0.0.0 0 100 32768 ?
*>r10.225.100.0/24 0.0.0.0 0 100 32768 ?
*>r10.225.101.0/25 0.0.0.0 0 100 32768 ?
*>r10.225.101.128/25 0.0.0.0 0 100 32768 ?
*>r10.225.102.0/26 0.0.0.0 0 100 32768 ?
*>r10.225.102.64/26 0.0.0.0 0 100 32768 ?
*>r10.225.102.128/26 0.0.0.0 0 100 32768 ?
*>r10.225.102.192/26 0.0.0.0 0 100 32768 ?
*>r10.225.103.0/26 0.0.0.0 0 100 32768 ?
*>r10.225.103.64/26 0.0.0.0 0 100 32768 ?
*>r10.225.103.128/25 0.0.0.0 0 100 32768 ?
*>r192.168.13.0/24 0.0.0.0 0 100 32768 ?
Output for second VRF Advertised routes - not a single route is being advertised.
##################################
Peer 10.207.62.57 routes for address family IPv4 Unicast:
BGP table version is 116, local router ID is 10.207.62.58
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup
Network Next Hop Metric LocPrf Weight Path
06-22-2017 06:44 AM
Hello,
can you post the configuration of the router ? What are the import/export route targets for the respective VRFs ?
06-22-2017 10:11 AM
Hello Georg,
Thanks for the response.....so basically the N5K is advertising the same subnets to neighbor in VRF A but NOT in VRF B. The configuration is 100% same in both VRFs.
Config from Router below
################################
VRF A
-----------------------------------
rd 8888:8888
bfd minimum-interval 300
bfd multiplier 3
timers bgp 10 30
address-family ipv4 unicast
redistribute connected
redistribute static
neighbor 10.207.62.34 ------------->N5K
remote-as 65359
address-family ipv4 unicast
send-community-ebgp
route-policy LP_120_IN in
route-policy PASS out
soft-reconfiguration inbound always
vrf B
-----------------------------------
rd 9999:9999
bfd minimum-interval 300
bfd multiplier 3
timers bgp 10 30
address-family ipv4 unicast
redistribute connected
redistribute static
neighbor 10.207.62.58 ------------->N5K
remote-as 65359
address-family ipv4 unicast
send-community-ebgp
route-policy LP_120_IN in
route-policy PASS out
soft-reconfiguration inbound always
Config from Switch
################################
VRF A
-----------------------------------
timers bgp 10 30
address-family ipv4 unicast
redistribute direct route-map Connected_LAN_Subnets
neighbor 10.207.62.33 remote-as 64909 --------> Router
address-family ipv4 unicast
send-community both
filter-list 10 out
route-map LP-120 in
route-map Connected_LAN_Subnets out
soft-reconfiguration inbound
vrf B
-----------------------------------
timers bgp 10 30
address-family ipv4 unicast
redistribute direct route-map Connected_LAN_Subnets
neighbor 10.207.62.57 remote-as 64909 --------> Router
address-family ipv4 unicast
send-community both
filter-list 10 out -----> access-list 10 permit "^$"
route-map LP-120 in
route-map Connected_LAN_Subnets out
soft-reconfiguration inbound
06-22-2017 11:25 AM
Hello,
try and add:
address-family ipv4 vrf A
to the BGP neighbor configuration in VRF A, and do the same for VRF B:
address-family ipv4 vrf B
06-22-2017 10:18 PM
Hi Georg,
It isn't accepting the command.
Logs:
#########################3
N5K1(config-router-vrf-neighbor)# address-family ipv4 unicast ?
<CR>
N5K1(config-router-vrf-neighbor)# address-family ipv
ipv4 ipv6
N5K1(config-router-vrf-neighbor)# address-family ipv4 ?
multicast Configure Multicast sub-address-family
unicast Configure Unicast sub-address-family
N5K1(config-router-vrf-neighbor)# address-family ipv4 unicast ?
<CR>
N5K1(config-router-vrf-neighbor)# address-family ipv4 vrf A
^
% Invalid command at '^' marker.
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