cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
564
Views
0
Helpful
2
Replies

vrf lite not working with vlan interfaces

choudhury.amd1
Level 1
Level 1

Hello,

 

Please can someone help me with vrf lite with ospf.  I am trying to ping IP's using vrf lite and SVI's.  The devices are connected via trunk ports.  This configuration works fine when using regular ospf.  But for some reason (obviously misconfiguration) I am not seeing the routes from the peers.


switch1#sh run int te2/8
Building configuration...

Current configuration : 241 bytes
!
interface TenGigabitEthernet2/8
 description Link to switch2
 switchport mode trunk
end

router ospf 1 vrf red
 network 172.16.10.0 0.0.0.255 area 0
!

cr01.srv-mk#sh run | b ip vrf red
ip vrf red
 description ## Red VRF ##
!
switch1#sh run int vl10
Building configuration...

 

Current configuration : 85 bytes
!
interface Vlan10
 ip vrf forwarding red
 ip address 172.16.10.1 255.255.255.0
end


switch1#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
172.16.1.2        1   FULL/DR         00:00:33    172.16.10.2     Vlan10

cr01.srv-mk#sh ip route vrf red

Routing Table: red
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override

Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C        172.16.1.1/32 is directly connected, Loopback1
C        172.16.10.0/24 is directly connected, Vlan10
L        172.16.10.1/32 is directly connected, Vlan10

 

switch2#sh run int te2/8
Building configuration...

Current configuration : 241 bytes
!
interface TenGigabitEthernet2/8
 description Link to switch1
 switchport mode trunk
end

router ospf 1 vrf red
 network 172.16.10.0 0.0.0.255 area 0
!

switch2#sh run | b ip vrf red
ip vrf red
 description ## Red VRF ##
!
switch2#sh run int vl10
Building configuration...

 

Current configuration : 85 bytes
!
interface Vlan10
 ip vrf forwarding red
 ip address 172.16.10.2 255.255.255.0
end

 

any help would be greatly appreciated.

 

2 Replies 2

Peter Paluch
Cisco Employee
Cisco Employee

Hi,

I am not sure if it will help but try configuring the capability vrf-lite command in the OSPF process 1 on all routers where OSPF 1 runs in a VRF.

I assume you are not runing MPLS L3VPN, are you?

Best regards,
Peter

Hello,

Thanks for the suggestion, the problem was I needed to create an SVI's for each vrf's with ip address block shared by all routes in order to build adjacency.

regards

Ahmed 

Review Cisco Networking for a $25 gift card