cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6182
Views
10
Helpful
4
Replies

Redistribute Static Default Route into MPLS/VPN

sparkofwisdom
Level 1
Level 1

Hi,

I have a static default route installed under vrf on a PE router R1. This PE router provides internet access for the rest of the VPN customers.

I would like to announce this default route into MP-iBGP sessions so the remote site will learn this route and install it to the corresponding VRF table.

R3 ----- R4 ----- R2 ----- R1 ------ Internet

Here is the config on R1:

router ospf 300 vrf Internet

log-adjacency-changes

redistribute bgp 65000 metric 10 subnets

network 172.16.0.0 0.0.0.255 area 0.0.0.0

!

router bgp 65000

.........

!

address-family ipv4 vrf Internet

redistribute static metric 10

redistribute ospf 300 metric 10 match internal external 1 external 2

no auto-summary

no synchronization

exit-address-family

!

ip route vrf Internet 0.0.0.0 0.0.0.0 Ethernet0/0 172.16.0.2

However, I didn't see the default route shown up in the vpnv4 table, neither on any of the remote site.

If I changed the "redistribute static" command to "network 0.0.0.0", then it began to work.

Can anybody help me understand why?

Thanks!

SShang

1 Accepted Solution

Accepted Solutions

Correct. This is only for the redistribution of the default route.

If you originate the default using "network 0.0.0.0" you don't need "default-information originate".

As far as the default not being redistributed into OSPF from BGP, you need to configure "default-information originate" under the ospf process as well.

Hope this helps,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

4 Replies 4

Harold Ritter
Spotlight
Spotlight

You need to configure "default-information originate" under address-family ipv4 vrf Internet in order for BGP to accept the redistribution of the default route (0/0) from a static route or a dynamic routing protocol.

Hope this helps,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Hi, hritter:

Thank you for your reply. So this only happens for default static route? For other static routes, it should not be a problem to use redistribution, right?

Also, when I use "network 0.0.0.0" command to announce default route via MP-iBGP, I saw the route shown up on another PE Router R2's vpnv4 and vrf routing table. But somehow, R2 refused to annouce this route to its attached CE Router R4 via OSPF:

R2#show ip bgp vpnv4 vrf Internet

Network Next Hop Metric LocPrf Weight Path

Route Distinguisher: 65000:2 (default for vrf Home)

*>i0.0.0.0 1.1.1.1 0 100 0 i

R2#show ip route vrf Internet

B* 0.0.0.0/0 [200/0] via 1.1.1.1, 00:55:17

So on CE Router R4, there is no default route in the routing table.

Do I HAVE TO use "default-information originate" on the receiving PE to publish the default route too? Why cannot this happen automatically? Would you please give me some ideas why this happens?

Thanks again!

SShang

Correct. This is only for the redistribution of the default route.

If you originate the default using "network 0.0.0.0" you don't need "default-information originate".

As far as the default not being redistributed into OSPF from BGP, you need to configure "default-information originate" under the ospf process as well.

Hope this helps,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Thanks!

SShang