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

Problem BGP to OSPF Default-Route

Hi all

I have a little problem with MPLS/VPN VRF LITE.

Look my topology:

CE1---OSPF---PE1---BGP---PE2---OSPF---CE2

I have configured VRF-LITE on CE1 and CE2, and CE1 is advertisementing default-route. PE1 and PE2 is receiving a default-route from CE1, but in PE2, I can not redistribute it to OSPF database, and this route is valid in routing VRF table, but CE2 does not receive a default-route from CE1.

Anyone could help me to solve this problem.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Problem BGP to OSPF Default-Route

Cassio,

As I stated in my previous posting, it is not possible to redistribute the default route from another source into OSPF. The only way to inject the default into OSPF is to configure the "default-information originate" statement.

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
5 REPLIES

Re: Problem BGP to OSPF Default-Route

I believe u have default-information originate on your PE2 towards ur CE2.

Alternatively can u post in your config?

HTH-Cheers.

Swaroop

Cisco Employee

Re: Problem BGP to OSPF Default-Route

You cannot redistribute the default route into OSPF. You will need to configure default-information originate on PE2 so that the default route is generated into OSPF when it is received from PE1 (via BGP).

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
New Member

Re: Problem BGP to OSPF Default-Route

Thanks.

My configs:

PE2:

!

router ospf 40 vrf DEFAULT

log-adjacency-changes

redistribute bgp 65500 subnets

network 0.0.0.0 255.255.255.255 area 0

!

address-family ipv4 vrf DEFAULT

redistribute ospf 40 vrf DEFAULT

default-information originate

no auto-summary

no synchronization

exit-address-family

!

PE2#sh ip bgp vpnv4 vrf DEFAULT

BGP table version is 67, local router ID is 172.16.2.2

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

Route Distinguisher: 40:40 (default for vrf DEFAULT)

*>i0.0.0.0 172.16.10.1 1 100 0 ?

*>i10.1.4.0/24 172.16.10.1 0 100 0 ?

*> 10.2.4.0/24 0.0.0.0 0 32768 ?

*>i172.20.40.1/32 172.16.10.1 2 100 0 ?

*>i172.20.40.2/32 172.16.10.1 0 100 0 ?

*>i172.20.40.3/32 172.16.10.1 2 100 0 ?

*> 172.20.40.4/32 10.2.4.1 2 32768 ?

*> 172.20.40.5/32 0.0.0.0 0 32768 ?

*> 172.20.40.6/32 10.2.4.3 2 32768 ?

PE2#sh ip route vrf DEFAULT

172.20.0.0/32 is subnetted, 6 subnets

B 172.20.40.1 [200/2] via 172.16.10.1, 00:03:59

B 172.20.40.2 [200/0] via 172.16.10.1, 00:03:59

B 172.20.40.3 [200/2] via 172.16.10.1, 00:03:59

O 172.20.40.4 [110/2] via 10.2.4.1, 00:04:19, FastEthernet0/0.4

C 172.20.40.5 is directly connected, Loopback4

O 172.20.40.6 [110/2] via 10.2.4.3, 00:04:19, FastEthernet0/0.4

10.0.0.0/24 is subnetted, 2 subnets

C 10.2.4.0 is directly connected, FastEthernet0/0.4

B 10.1.4.0 [200/0] via 172.16.10.1, 00:03:59

B* 0.0.0.0/0 [200/1] via 172.16.10.1, 00:03:59

############################################

CE2:

CE#sh ip route vrf DEFAULT

172.20.0.0/32 is subnetted, 6 subnets

O IA 172.20.40.1 [110/3] via 10.2.4.3, 00:03:07, FastEthernet0/0.4

[110/3] via 10.2.4.2, 00:03:07, FastEthernet0/0.4

O IA 172.20.40.2 [110/2] via 10.2.4.2, 00:03:07, FastEthernet0/0.4

O IA 172.20.40.3 [110/2] via 10.2.4.3, 00:03:07, FastEthernet0/0.4

C 172.20.40.4 is directly connected, Loopback4

O 172.20.40.5 [110/2] via 10.2.4.2, 00:03:34, FastEthernet0/0.4

O 172.20.40.6 [110/2] via 10.2.4.3, 00:03:34, FastEthernet0/0.4

10.0.0.0/24 is subnetted, 2 subnets

C 10.2.4.0 is directly connected, FastEthernet0/0.4

O IA 10.1.4.0 [110/2] via 10.2.4.3, 00:03:07, FastEthernet0/0.4

[110/2] via 10.2.4.2, 00:03:07, FastEthernet0/0.4

I hope this config and show help us.

CLRGomes

Cisco Employee

Re: Problem BGP to OSPF Default-Route

Cassio,

As I stated in my previous posting, it is not possible to redistribute the default route from another source into OSPF. The only way to inject the default into OSPF is to configure the "default-information originate" statement.

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
New Member

Re: Problem BGP to OSPF Default-Route

Hi hritter,

Thanks for your post, it solved my problem and doubt.

Thanks very much.

CLRGomes

259
Views
0
Helpful
5
Replies
CreatePlease to create content