cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
458
Views
0
Helpful
5
Replies

injecting default from one PE to another PE for a vrf?

sding2006
Level 1
Level 1

We are using vrf-lite which means no MPLS switching, only VRFs. we have a hub PE where we had VRF internet and VRF intranet. we would like other PEs to have a default to this hub in the intranet VRF, so all the internet traffic will go through this hub PE for internet traffic.

What I did is: two VRFs -internet and intranet in the hub PE, mutual import the route-target of the other.

For CE directly connected to the hub PE, I use the OSP default-information originate alway to inject a default to CE.

For spoke PE, I would like it to have a default to hub PE in the vrf intranet. Currently I am using iBGP neighbor spokeIP default-originate in the hub PE for this purpose, is this the right way to do it?

For CE connected to spoke PE, I also use ospf default-information originate alway to inject a default from PE to CE.

5 Replies 5

swaroop.potdar
Level 7
Level 7

Yes it would be right to originate default form your Hub PE to spoke PE on the IPV4 VRF address family.

But what i cna gather form your explnation is there is also another PE which is spoke PE, in this case how will the traffic be switched without MPLS. And if you have VPNV4 peering between HUB and SPOKE PE you cannot call it VRF-lite.

HTH-Cheers,

Swaroop

Here is what I did in the lab

...........HUB

............/.\

VL199/....\VL198

........../......\

SPOKE1 SPOKE2

the HUB PE is having internet and intranet vrfs.

SPOKE1 and SPOKE2 is only having intranet vrf.

VL198 and VL199 are all with ip vrf forwarding intranet. then the ospf vrf intranet will have neighbor relationship among HUB and SPOKE[12], I then don't need the vpnv4 address-family.

You reminded me that this is not BGP/MPLS intended to do. I will also try not to put vl199 and vl198 in ip vrf forward intranet, and have vpnv4 address-family configured between both HUB and SPOKE PEs. Do I have to have MPLS switching to use vpnv4?

Thanks.

Looking at your topology makes things more clear. As per your topo and configuration(is of vrf on the HUB and SPOKE PE interconnect, you dont need label switching. It would be plain routed.

You can continue with the original plan of originating the default from the HUB PE. That should work.

HTH-Cheers,

Swaroop

Actually, in my case, the iBGP between HUB and SPOKE is not needed. ospf is sufficient.

default-information originate alway will inject a default from hub to spoke.

Since it would be plain routing within a given vrf you can use the protocol which you deem to be fit for your topology. (From BGP or OSPF).

As it would not be possible to recommend the protocol with the information at hand.

HTH-Cheers,

Swaroop