Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

MBGP to old BGP -- change family ipv4 to a VPNv4 rd?

Boy this BGP stuff can get pretty deep.

I've managed to solve enough issues to get a solution to a particularly contorted VRF-based peering with an older non-MBGP neighbor. I won't get into details because this is a pretty unique situation.

However even though I have a solution that will meet my immediate needs, it struck me that it would have been a much more elegant solution if I could just have told MBGP that a particular non-MBGP neighbor should have it's ipv4 family addresses prefixed with a particular VPNv4 family/rd before being put into the RIB.

As it is I have ipv4 family routes being imported into a VRF via a prefix list, and no real interest in having them in the GLOBAL ipv4 family table, not that it matters. Eventually if I have to support a second non-MBGP neighbor, though, things could get ugly, since prefix lists won't cut it at that point.

So did I miss an obvious command somewhere that would allow that -- something like translate-updates except with VRF in mind? I tried a route map but it won't let you "set vrf" on incoming updates...

3 REPLIES
Silver

Re: MBGP to old BGP -- change family ipv4 to a VPNv4 rd?

Hi

I maybe misunderstood things here.

My understanding of your description is, that you are peering with non-MBGP and want to get there prefixes into an vrf.

In that case, have your peering statements under the vrf-part not under the global config.

router bgp

neighbour < mbgp neighbours >

!

address-family ipv4 vrf < name >

neighbour remote-as

neighbour "whatever command you need"

/Mikael

New Member

Re: MBGP to old BGP -- change family ipv4 to a VPNv4 rd?

I did try that -- I didn't know whether it was supposed to do what I wanted it to at the time, but I did try it.

I found that the BGP session would not come up unless there was an activate statement under the ipv4 family, and in that case the routes were appearing in GLOBAL, not in the designated VRF.

I'll have to play with that some more then, and see if I can't coax it into working. Thanks!

New Member

Re: MBGP to old BGP -- change family ipv4 to a VPNv4 rd?

OK, the problem appears to have been that when you do this, the update-source has to be in the VRF in question. That and unfamiliarity with the behavior of the show commands.

I had been tricking out things to force communication between a lo0 in GLOBAL with the peer which was on a VRF interface, because the only way I could seem to get a BGP session up at all was with vanilla ipv4. That was interfering with the address-family ipv4 vrf stuff apparently.

So now it works swimmingly, without all those workarounds.

Thanks again!

140
Views
4
Helpful
3
Replies
CreatePlease to create content