Hello,
I have a simple topology as below:
CE1 -- PE1 - PE2 -- CE2
PE1 Lo0 is 10.10.10.10, PE2's is 20.20.20.20
The PE-CE link is running OSPF in VRF "ospf". The problem is, the PE-CE link is exported into the BGP as external route and it's missing the route-type community:
root@MX-104-5e1> ...protocol bgp 20.20.20.20 193.168.10.0 extensive
ospf.inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
* 193.168.10.0/30 (1 entry, 1 announced)
BGP group INT type Internal
Route Distinguisher: 10.10.10.10:3
VPN Label: 299968
Nexthop: Self
Flags: Nexthop Change
Localpref: 100
AS path: [100] I
Communities: target:3:3 domain-id:200:0
and is received at the other PE as external:
root@MX-104-5e2> ...ocol bgp 10.10.10.10 193.168.10.0 extensive
ospf.inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
* 193.168.10.0/30 (1 entry, 1 announced)
Import Accepted
Route Distinguisher: 10.10.10.10:3
VPN Label: 299968
Nexthop: 10.10.10.10
Localpref: 100
AS path: I
Communities: target:3:3 domain-id:200:0
root@MX-104-5e2> show ospf database instance ospf
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Router *193.168.20.1 193.168.20.1 0x80000023 2314 0x22 0x7013 48
Router 193.168.20.2 193.168.20.2 0x80000136 1359 0x22 0x9076 60
Summary *11.11.11.11 193.168.20.1 0x80000022 1564 0xa2 0x30bd 28
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern *100.100.100.100 193.168.20.1 0x80000022 814 0xa2 0xc16d 36
Extern *193.168.10.0 193.168.20.1 0x80000022 64 0xa2 0x8cc2 36
Below is the configuration at the PE1 side:
root@MX-104-5e1> show configuration routing-instances ospf
instance-type vrf;
interface ge-0/0/1.193;
interface lo0.100;
route-distinguisher 10.10.10.10:3;
vrf-import OSPF_VRF_IMPORT;
vrf-export OSPF_VRF_EXPORT;
routing-options {
router-id 193.168.10.1;
}
protocols {
ospf {
domain-id 200;
export OSPF_EXPORT;
sham-link local 100.100.100.100;
area 0.0.0.0 {
inactive: sham-link-remote 200.200.200.200;
interface ge-0/0/1.193 {
interface-type p2p;
}
}
}
}
root@MX-104-5e1> show configuration interfaces ge-0/0/1
unit 193 {
vlan-id 193;
family inet {
address 193.168.10.1/30;
}
}
The question is; why would JUNOS export the PE-CE link running OSPF as External to the other PE and CE?
My assumption is that; Juniper will find the "active" route from the VRF table and finds that the PE-CE link is a "direct" link and not an "OSPF" link, so it will export this as an external route.
The problem is, Cisco doesn't do that, and frankly speaking I can't determine what is the valid case between them.
Thanks.