cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
3449
Views
15
Helpful
7
Replies

NXOS with VRF lite + OSPF

luke.brooker1
Level 1
Level 1

I have been lab testing a scenario with NXOS running vrf lite and OSPF to distribute routes between devices. OSPF is working fine, but i'm finding  that when i do show OSPF commands for a vrf (eg show ip ospf neigh vrf VRF_1) i will see a reference to other OSFP instances that are configured on the router. I have highlighted in the attached screenshot. i think i have mis-configured OSPF in some way to be seeing this, or i misunderstand how vrf lite works on NXOS. any advice appreciated. Very simple config, no VDC's or anything like that, these are just being used a layer 3 devices.

1 Accepted Solution

Accepted Solutions

Hello

As I stated earlier  - " think what you are seeing is the vrf ospf stating it has no relation to the GLOBALospf non vrf routing process"


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the communityā€™s global network.

Kind Regards
Paul

View solution in original post

7 Replies 7

omz
VIP Alumni
VIP Alumni

Not sure but could it be due to ospf instance-tag and vrf name match? 

router ospf VRF_1 and vrf VRF_1

 

It is first for me to see ospf named tag 'VRF_1' and not a number. Common practice and docs use a number in decimal or dotted IP notation.

 

Any chance you could test with a number to see if the behaviour changes?

Hello

The vrf name shouldnt be a problem,  I have tested it to confirm that-  see below;


I think what you are seeing is the vrf ospf sating it has no relation to the GLOBALospf non vrf routing process


Hwever do you have any other vrf contexts ?
sh vrf detail

 

 

 

Test output:
conf t
vrf context VRF_1

interface Ethernet2/3.200
 encapsulation dot1q 200
 vrf member VRF_1
 ip address 10.1.200.100/24
 ip router ospf 1 area 0.0.0.0

 

router ospf 1
 vrf VRF_1
 router-id 10.2.1.1
 no shutdown

 

 

Nx-OS# sh ip ospf neighbors vrf VRF_1
 OSPF Process ID 1 VRF VRF_1
 Total number of neighbors: 1
 Neighbor ID     Pri State            Up Time  Address         Interface
 2.2.2.2           1 FULL/DR          00:00:53 10.1.200.2      Eth2/3.200

Nx-OS# sh ip route ospf vrf VRF_1
IP Route Table for VRF "VRF_1"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

2.2.2.0/24, ubest/mbest: 1/0
    *via 10.1.200.2, Eth2/3.200, [110/41], 00:10:57, ospf-1, intra
22.2.2.0/24, ubest/mbest: 1/0
    *via 10.1.200.2, Eth2/3.200, [110/41], 00:10:57, ospf-1, intra
222.2.2.0/24, ubest/mbest: 1/0
    *via 10.1.200.2, Eth2/3.200, [110/41], 00:10:57, ospf-1, intra

 

Nx-OS# sh ip ospf vrf VRF_1

 Routing Process 1 with ID 10.2.1.1 VRF VRF_1
 Routing Process Instance Number 1
 Stateful High Availability enabled
 Graceful-restart is configured
   Grace period: 60 state: Inactive
   Last graceful restart exit status: None
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 Administrative distance 110
 Reference Bandwidth is 40000 Mbps
 SPF throttling delay time of 200.000 msecs,
   SPF throttling hold time of 1000.000 msecs,
   SPF throttling maximum wait time of 5000.000 msecs
 LSA throttling start time of 0.000 msecs,
   LSA throttling hold interval of 5000.000 msecs,
   LSA throttling maximum wait time of 5000.000 msecs
 Minimum LSA arrival 1000.000 msec
 LSA group pacing timer 10 secs
 Maximum paths to destination 8
 Number of external LSAs 0, checksum sum 0
 Number of opaque AS LSAs 0, checksum sum 0
 Number of areas is 1, 1 normal, 0 stub, 0 nssa
 Number of active areas is 1, 1 normal, 0 stub, 0 nssa
 Install discard route for summarized external routes.
 Install discard route for summarized internal routes.
   Area BACKBONE(0.0.0.0)
        Area has existed for 00:21:22
        Interfaces in this area: 1 Active interfaces: 1
        Passive interfaces: 0  Loopback interfaces: 0
        No authentication available
        SPF calculation has run 11 times
         Last SPF ran for 0.001242s
        Area ranges are
        Number of LSAs: 3, checksum sum 0x280ea


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the communityā€™s global network.

Kind Regards
Paul

Hi Paul,

 

Can you please test with -

router ospf VRF_1
 vrf VRF_1

 

* router ospf VRF_1 instead of router ospf 1

 

Hello

 

Same result but now with two OSPF prcesses- (vrf and non vrf)

Vrf context VRF_1

interface Ethernet2/3.100
  encapsulation dot1q 100
  ip address 10.1.100.100/24
  ip router ospf GLOBAL area 0.0.0.0
  no shutdown


interface Ethernet2/3.200
  encapsulation dot1q 200
  vrf member VRF_1
  ip address 10.1.200.100/24
  ip router ospf VRF_1 area 0.0.0.0
  no shutdown


router ospf GLOBAL
  router-id 10.2.1.1

router ospf VRF_1
  vrf VRF_1
    router-id 10.2.1.1

 

 

Nx-OS# sh ip ospf  neighbors vrf VRF_1
 OSPF Process ID VRF_1 VRF VRF_1
 Total number of neighbors: 1
 Neighbor ID     Pri State            Up Time  Address         Interface
 222.222.222.200   1 FULL/BDR         00:17:14 10.1.200.2      Eth2/3.200
ospf-GLOBAL: Unknown vrf VRF_1

Nx-OS# sh ip route vrf VRF_1
IP Route Table for VRF "VRF_1"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

10.1.200.0/24, ubest/mbest: 1/0, attached
    *via 10.1.200.100, Eth2/3.200, [0/0], 00:44:46, direct
10.1.200.100/32, ubest/mbest: 1/0, attached
    *via 10.1.200.100, Eth2/3.200, [0/0], 00:44:46, local
22.2.2.0/24, ubest/mbest: 1/0
    *via 10.1.200.2, Eth2/3.200, [110/41], 00:17:11, ospf-VRF_1, intra
222.2.2.0/24, ubest/mbest: 1/0
    *via 10.1.200.2, Eth2/3.200, [110/41], 00:17:11, ospf-VRF_1, intra
222.222.222.0/24, ubest/mbest: 1/0
    *via 10.1.200.2, Eth2/3.200, [110/41], 00:17:11, ospf-VRF_1, intra

 

 

 

Nx-OS# sh ip ospf vrf VRF_1

 Routing Process VRF_1 with ID 10.2.1.1 VRF VRF_1
 Routing Process Instance Number 1
 Stateful High Availability enabled
 Graceful-restart is configured
   Grace period: 60 state: Inactive
   Last graceful restart exit status: None
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 Administrative distance 110
 Reference Bandwidth is 40000 Mbps
 SPF throttling delay time of 200.000 msecs,
   SPF throttling hold time of 1000.000 msecs,
   SPF throttling maximum wait time of 5000.000 msecs
 LSA throttling start time of 0.000 msecs,
   LSA throttling hold interval of 5000.000 msecs,
   LSA throttling maximum wait time of 5000.000 msecs
 Minimum LSA arrival 1000.000 msec
 LSA group pacing timer 10 secs
 Maximum paths to destination 8
 Number of external LSAs 0, checksum sum 0
 Number of opaque AS LSAs 0, checksum sum 0
 Number of areas is 1, 1 normal, 0 stub, 0 nssa
 Number of active areas is 1, 1 normal, 0 stub, 0 nssa
 Install discard route for summarized external routes.
 Install discard route for summarized internal routes.
   Area BACKBONE(0.0.0.0)
        Area has existed for 00:28:49
        Interfaces in this area: 1 Active interfaces: 1
        Passive interfaces: 0  Loopback interfaces: 0
        No authentication available
        SPF calculation has run 12 times
         Last SPF ran for 0.000436s
        Area ranges are
        Number of LSAs: 3, checksum sum 0x2595b
ospf-GLOBAL: Unknown vrf VRF_1

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the communityā€™s global network.

Kind Regards
Paul

Thank you so much for testing this.

 

I have not come across OSPF named process config until today. Is it a NX-OS feature? 

So OSPF process is named but itā€™s using RID as OSPF process ID. Is that correct?

 

Same behaviour as asked in the question. What would that mean?

ospf-GLOBAL: Unknown vrf VRF_1 

 

When you used process id 1 the output was different.

 

Hello

As I stated earlier  - " think what you are seeing is the vrf ospf stating it has no relation to the GLOBALospf non vrf routing process"


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the communityā€™s global network.

Kind Regards
Paul

Thanks for input with this guys, much appreciated. i did retry with OSPF process ID as number instead of a name, and found the same result (see attached). If this is just how OSFP output commands are displayed on NX-OS that is fine, the actual routing etc is working fine. i was just concerned that i may have a mis-configuration that was causing the seemingly unusual output in OSPF commands.

Review Cisco Networking products for a $25 gift card