Wednesday, October 23, 2019

Comware OSPF Default route in VRF (vpn-instance)

Dear /r/networking,

I'm trying to configure simple lab with HP Comware L3 switches and vrf and for some reason distributing default route doesn't work in VRF aka vpn-instance in comware speak.

OSPF configuration is also simple. For some reason on R2 there is no default route in vpn-instance. Maybe You know what I'm doing wrong?

Routers OSPF config below.

The R1 and R2 routers routing tables looks like this:

===R1========================================= [HP1-ospf-1]display ip routing-table Routing Tables: Public Destinations : 9 Routes : 9 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/0 Static 60 0 10.200.1.1 Vlan11 10.200.1.0/24 Direct 0 0 10.200.1.2 Vlan11 10.200.1.2/32 Direct 0 0 127.0.0.1 InLoop0 10.200.2.0/24 Direct 0 0 10.200.2.1 Vlan13 10.200.2.1/32 Direct 0 0 127.0.0.1 InLoop0 10.200.10.0/24 OSPF 10 2 10.200.2.2 Vlan13 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 172.31.1.1/32 Direct 0 0 127.0.0.1 InLoop0 [HP1-ospf-1]display ip routing-table vp [HP1-ospf-1]display ip routing-table vpn-instance wifi Routing Tables: wifi Destinations : 9 Routes : 9 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/0 Static 60 0 172.24.1.1 Vlan12 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 172.24.1.0/24 Direct 0 0 172.24.1.2 Vlan12 172.24.1.2/32 Direct 0 0 127.0.0.1 InLoop0 172.24.2.0/24 Direct 0 0 172.24.2.1 Vlan14 172.24.2.1/32 Direct 0 0 127.0.0.1 InLoop0 172.24.200.0/24 OSPF 10 2 172.24.2.2 Vlan14 172.31.200.1/32 Direct 0 0 127.0.0.1 InLoop0 ===R2========================================= [R2]display ip routing-table Routing Tables: Public Destinations : 8 Routes : 8 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/0 O_ASE 150 1 10.200.2.1 Vlan13 10.200.2.0/24 Direct 0 0 10.200.2.2 Vlan13 10.200.2.2/32 Direct 0 0 127.0.0.1 InLoop0 10.200.10.0/24 Direct 0 0 10.200.10.1 Vlan101 10.200.10.1/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 172.31.2.2/32 Direct 0 0 127.0.0.1 InLoop0 [R2]display ip routing-table vp [R2]display ip routing-table vpn-instance wifi Routing Tables: wifi Destinations : 8 Routes : 8 Destination/Mask Proto Pre Cost NextHop Interface 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 172.24.1.0/24 OSPF 10 2 172.24.2.1 Vlan14 172.24.2.0/24 Direct 0 0 172.24.2.2 Vlan14 172.24.2.2/32 Direct 0 0 127.0.0.1 InLoop0 172.24.200.0/24 Direct 0 0 172.24.200.1 Vlan102 172.24.200.1/32 Direct 0 0 127.0.0.1 InLoop0 172.31.200.2/32 Direct 0 0 127.0.0.1 InLoop0 

Routers OSPF config

[R1]

ospf 1 router-id 172.31.1.1 default-route-advertise always area 0.0.0.0 network 10.200.2.0 0.0.0.255 network 10.200.1.0 0.0.0.255 # ospf 2 router-id 172.31.200.1 vpn-instance wifi default-route-advertise always area 0.0.0.0 network 172.24.1.0 0.0.0.255 network 172.24.2.0 0.0.0.255 # ip route-static 0.0.0.0 0.0.0.0 10.200.1.1 description default-global ip route-static vpn-instance wifi 0.0.0.0 0.0.0.0 172.24.1.1 description default-wifi 

[R2]

ospf 1 router-id 172.31.2.2 area 0.0.0.0 network 10.200.2.0 0.0.0.255 network 10.200.10.0 0.0.0.255 # ospf 2 router-id 172.31.200.2 vpn-instance wifi area 0.0.0.0 network 172.24.2.0 0.0.0.255 network 172.24.200.0 0.0.0.255 


No comments:

Post a Comment