05-11-2009 10:53 AM - edited 03-04-2019 04:43 AM
Hello guys,
A strange issue I'm facing, which I was able to reproduce in a lab.
3 routers: PE0, CE0 and Internal0.
PE0 and CE0 have 2 vrfs, call them One and Two.
Between PE0 and CE0, we run BGP (not MP-BGP) in 2 different address-family ipv4.
So, in CE0, I have the routes from PE0, learnt through BGP.
CE0 redistribute BGP in OSPF and OSPF in BGP.
Internal0 has no VRF and connects to the 2 VRF of CE0. Internal0 runs OSPF.
On Internal0, I see all routes, the one redistributed from BGP to OSPF being flagged as External2 (ok).
BUT ... on CE0, I can't see the routes from the other VRF if they were learnt from BGP.
Example:
PE0 in vrf One has a route for 1.1.1.0/24 announced through BGP to CE in vrf One.
CE0 in vrf One has the route for 1.1.1.0/24, learnt through BGP.
Internal0 has a route for 1.1.1.0/24, learnt through OSPF as external type 2.
CE0 in vrf Two has NO route for 1.1.1.0/24, however it has an entry in the OSPF database!
An example of what we see (this is the equivalent of the CE0 of the example):
nycertr01#show ip route vrf vrf_secure 10.1.2.1
Routing entry for 10.1.2.0/24
Known via "bgp 65000", distance 20, metric 0
Tag 13979, type external
Redistributing via ospf 30
Advertised by ospf 30 metric-type 1 subnets
Last update from 172.31.0.154 2d02h ago
Routing Descriptor Blocks:
* 172.31.0.154, from 172.31.0.154, 2d02h ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 13979
nycertr01#show ip route vrf vrf_public 10.1.2.1
% Subnet not in table
nycertr01#show ip ospf 10 database external 10.1.2.0
OSPF Router with ID (172.31.0.145) (Process ID 10)
Type-5 AS External Link States
LS age: 1797
Options: (No TOS-capability, DC)
LS Type: AS External Link
Link State ID: 10.1.2.0 (External Network Number )
Advertising Router: 172.31.0.153
LS Seq Number: 8000005B
Checksum: 0x228D
Length: 36
Network Mask: /24
Metric Type: 1 (Comparable directly to link state metric)
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 3489725928
nycertr01#show ip ospf 30 database external 10.1.2.0
OSPF Router with ID (172.31.0.153) (Process ID 30)
Type-5 AS External Link States
LS age: 1799
Options: (No TOS-capability, DC)
LS Type: AS External Link
Link State ID: 10.1.2.0 (External Network Number )
Advertising Router: 172.31.0.153
LS Seq Number: 8000005B
Checksum: 0x228D
Length: 36
Network Mask: /24
Metric Type: 1 (Comparable directly to link state metric)
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 3489725928
Any idea?
Solved! Go to Solution.
05-18-2009 07:52 AM
Yes. By default its going to catch only internal routes. redistribute ospf 30 vrf vrf_secure internal external 2 should do it .
-Rakesh
05-18-2009 08:09 AM
Ok.
Did it and works. Thanks for your help (and for the reminder "always check the default for those commands").
J.
05-18-2009 08:21 AM
No problem :-)
-Rakesh
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: