cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2406
Views
1
Helpful
22
Replies

VRF not working with OSPF

ankitohc
Spotlight
Spotlight

ankitohc_0-1707448027806.png

 

I am trying to configure the VRF and connectivity between common router and Tenant-A. Can somone please help me with configuration and find what mistake am I doing ?

Common#show run
Common#show running-config
Building configuration...

Current configuration : 3431 bytes
!
! Last configuration change at 03:03:06 UTC Fri Feb 9 2024
!
version 15.9
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Common
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!
!
!
ip vrf Tenant-A
!
ip vrf Tenant-B
!
ip vrf Tenant-C
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/0.2
encapsulation dot1Q 2
ip vrf forwarding Tenant-A
ip address 192.0.2.1 255.255.255.252
!
interface GigabitEthernet0/0.3
encapsulation dot1Q 3
ip vrf forwarding Tenant-B
ip address 198.51.100.1 255.255.255.252
!
interface GigabitEthernet0/0.4
encapsulation dot1Q 4
ip vrf forwarding Tenant-C
ip address 203.0.113.1 255.255.255.252
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
router ospf 1 vrf Tenant-A
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 ioam timestamp
!
!
!
control-plane
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
line con 0
line aux 0
line vty 0 4
login
transport input none
!
no scheduler allocate
!
end

 

______________________________________________

Tenant-A

Tenant-A#SHOW RUN
Tenant-A#SHOW RUNning-config
Building configuration...

Current configuration : 2999 bytes
!
! Last configuration change at 03:02:58 UTC Fri Feb 9 2024
!
version 15.9
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Tenant-A
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 192.0.2.2 255.255.255.252
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 ioam timestamp
!
!
!

 

22 Replies 22

ankitohc
Spotlight
Spotlight

Common#show run
Common#show running-config
Building configuration...

Current configuration : 3546 bytes
!
version 15.9
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Common
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
!
!
!
!
!
!
!
!
ip vrf Tenant-A
!
ip vrf Tenant-B
!
ip vrf Tenant-C
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/0.2
encapsulation dot1Q 2
ip vrf forwarding Tenant-A
ip address 192.0.2.1 255.255.255.252
!
interface GigabitEthernet0/0.3
encapsulation dot1Q 3
ip vrf forwarding Tenant-B
ip address 198.51.100.1 255.255.255.252
!
interface GigabitEthernet0/0.4
encapsulation dot1Q 4
ip vrf forwarding Tenant-C
ip address 203.0.113.1 255.255.255.252
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
interface GigabitEthernet0/3
no ip address
shutdown
duplex auto
speed auto
media-type rj45
!
router ospf 1 vrf Tenant-A
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
!
router ospf 2 vrf Tenant-B
router-id 3.3.3.3
network 0.0.0.0 255.255.255.255 area 0
!
router ospf 3 vrf Tenant-C
router-id 5.5.5.5
network 0.0.0.0 255.255.255.255 area 0
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
ipv6 ioam timestamp
!

NOW add VRF-lite capability and check the prefix 
MHM

I did that already but OSPF is not showing in routing table for each VRF - Even I don't see the O in routing table for Tenant-A

ankitohc_0-1707592181591.png

 

Hello
Do you have connecitvity between the Common rtr and TenantA rtr

Common rtr
ping vrf Tenant-A 192.0.2.2


If you do not then make sure the port between the tenantA rtr and the switch in is vlan 2
and the trunk port upstream from switch to the common rtr is tagging vlan 2

If you do have connecitivity check the ospf network type between those two rts
sh ip ospf int brief
debug ip ospf adjecencieis


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

common router has connectivity to Tenant-A

ankitohc_1-1707592275153.png

 

ankitohc
Spotlight
Spotlight

Common#SHOW IP ospf route
Common#SHOW IP ospf route

OSPF Router with ID (5.5.5.5) (Process ID 3)


Base Topology (MTID 0)


Area BACKBONE(0)

Intra-area Route List

* 203.0.113.0/30, Intra, cost 1, area 0, Connected
via 203.0.113.1, GigabitEthernet0/0.4

First Hop Forwarding Gateway Tree

203.0.113.1 on GigabitEthernet0/0.4, count 1

OSPF Router with ID (3.3.3.3) (Process ID 2)


Base Topology (MTID 0)


Area BACKBONE(0)

Intra-area Route List

* 198.51.100.0/30, Intra, cost 1, area 0, Connected
via 198.51.100.1, GigabitEthernet0/0.3

First Hop Forwarding Gateway Tree

198.51.100.1 on GigabitEthernet0/0.3, count 1

OSPF Router with ID (1.1.1.1) (Process ID 1)


Base Topology (MTID 0)


Area BACKBONE(0)

Intra-area Route List

* 192.0.2.0/30, Intra, cost 1, area 0, Connected
via 192.0.2.1, GigabitEthernet0/0.2

First Hop Forwarding Gateway Tree

192.0.2.1 on GigabitEthernet0/0.2, count 1
Common#

Can I see SW config ?

MHM

In the original post there was a config for Tenant-A. In that config I see only a single interface with an IP address, and that is the one that connects to Common. So there is nothing for OSPF to advertise.

HTH

Rick