Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Why are BGP network statements not under a VRF?

Hello,

We run BGP over our WAN and we group our BGP neighborships into VRFs. But I was looking at the BGP network statements and I noticed that those are not defined under a specific VRF, but rather under the ipv4 address family. But if a network belongs to a specific VRF, shouldn't the BGP network statement be defined under that VRF?

Here's an example of how we have it configured:

router bgp 12345

address-family ipv4

  network 10.10.10.0 mask 255.255.255.0

...

address-family ipv4 vrf Customer_A

  neighbor 10.10.10.2 description *** CE router for Customer_A ***

So if the 10.10.10.0 network belongs to Customer_A, and Customer_A is in their own VRF, why would our network statement be in the VRF section? Why is it instead in the ipv4 section?

Any feedback is appreciated...thanks.

1 REPLY

Why are BGP network statements not under a VRF?

First you have a network statement for 10.0.0.0/24 in the global BGP RIB. Then you have a neighbor statement for 10.10.10.2 but I need to see the full config to see if it's iBGP or eBGP. It's possible that this 10.10.10.0/24 network is connected in VRF A or somebody made a typo when they put the network statement.

Daniel Dib
CCIE #37149

Daniel Dib CCIE #37149 Please rate helpful posts.
145
Views
0
Helpful
1
Replies
CreatePlease to create content