cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1014
Views
5
Helpful
4
Replies

Mixed vrf and non-vrf OSPF processes, the vrf one does not work

darwick
Level 1
Level 1
Dear Community Members,
 
I would like to ask your help in OSPF configuration, because I'm stuck and I don't know why it does not work.
So I have RouterA and RouterB connected to each other with a Layer3 LACP port channel, the link is up, and can ping each others IP (from /30 subnet). Each router has a vrf called: intvlans and two Layer3 vlan interfaces. One of them will propagate (announce?) 11.22.33.0/24 via OSPF and vrf for a local subnet 192.168.105.0/24 The relevant configuration:
 
RouterA:
 
ip vrf intvlans
!
interface Port-channel18
ip address 1.1.1.1 255.255.255.252
!
interface Vlan15
ip address 11.22.33.44 255.255.255.0
!
interface Vlan105
ip vrf forwarding intvlans
ip address 192.168.105.1 255.255.255.0
no ip redirects
no ip proxy-arp
 
RouterB:
 
ip vrf intvlans
!
interface Port-channel1
 ip address 1.1.1.2 255.255.255.252
!
interface Vlan15
 ip address 11.22.33.45 255.255.255.0
!
interface Vlan105
 ip vrf forwarding intvlans
 ip address 192.168.105.2 255.255.255.0
  
Please note that Vlan15 Layer3 interface does not belongs to (any) vrf. The relevant OSPF configuration is:
 
RouterA:
 
router ospf 2 vrf intvlans
 router-id 192.168.105.1
 log-adjacency-changes
 capability vrf-lite
 network 192.168.105.0 0.0.0.255 area 0
!
router ospf 1
 router-id 11.22.33.44
 log-adjacency-changes
 network 11.22.33.0 0.0.0.255 area 0
 
RouterB:
 
router ospf 2 vrf intvlans
 router-id 192.168.105.2
 log-adjacency-changes
 capability vrf-lite
 network 192.168.105.0 0.0.0.255 area 0
!
router ospf 1
 router-id 11.22.33.45
 log-adjacency-changes
 network 11.22.33.0 0.0.0.255 area 0
 
For the OSPF process 1 (without vrf), it works fine, there is no problems at all. In both RouterA and RouterB for show ip route ospf 1 I see the routes (11.22.33.0/24).
The problem is that the OSPF process 2, it didn't work. In both RouterA and RouterB for show ip route vrf intvlans ospf I see nothing.
 
RouterA outpur for show ip ospf 2 database:
 
            OSPF Router with ID (192.168.105.1) (Process ID 2)
                Router Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum Link count
192.168.105.1   192.168.105.1   1434        0x80000004 0x00FCB7 1
 
RouterB outpur for show ip ospf 2 database:
 
            OSPF Router with ID (192.168.105.2) (Process ID 2)
                Router Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum Link count
192.168.105.2   192.168.105.2   1245        0x80000003 0x00EEC4 1
 
RouterA and RouterB (same output) for show ip vrf intvlans:

  Name                             Default RD          Interfaces
  intvlans                         <not set>           Vl105
 
Any help to figure out what is wrong would be much appreciated.
4 Replies 4

Harold Ritter
Cisco Employee
Cisco Employee

I do not quite understand how the global ospf can work, as I do not see the port-channel as part of you ospf configuration.

 

If you want the vrf lite configuration to work between the two routers, you would need to configure a subinterface off the port-channel that would belong to vrf intvlans.

 

Regards,

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

darwick
Level 1
Level 1

Thank you for your replay, Harold. The only problem is that RouterB is an old 4948 L3 switch, which does not support sub-interfaces, therefore I can't create them.

Is there any other option to accomplish this? I don't even want vrf lite, I just need to get that 192.168.105.0/24 working. Should I use other dynamic routing protocols like eigrp or bgp for that?

 

On the 4948 make the etherchannel a L2 trunk and use SVIs, that should work fine. 

 

The point Harold made still stands though, it is unclear how the non VRF OSPF is working as you are not running OSPF on the port channel interfaces. 

 

Jon

Can't be done with routed ports somehow? I would like to avoid L2 trunk ports, that is why I would like to use dynamic routing protocols. If the L2 network and trunk ports would be an option, I don't even need ospf or any dynamic routing protocols.

 

Anyway, I don't know how exactly my non-vrf ospf works, but it works for sure. An example from RouterB, only the prefixes has been modified:

 

sh ip route ospf 1
     1.0.0.0/8 is variably subnetted, 17 subnets, 4 masks
O       x.y.z.32/30 [110/2] via 11.22.33.44, 02:20:56, Port-channel1
O       x.y.z.12/30 [110/2] via 11.22.33.44, 02:20:56, Port-channel1
O       x.y.z.8/30 [110/2] via 11.22.33.44, 02:20:56, Port-channel1
O       x.y.z.0/24 [110/2] via 11.22.33.44, 02:20:56, Port-channel1

...

Getting Started

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:

Review Cisco Networking products for a $25 gift card