02-08-2024 07:10 PM
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
!
!
!
02-09-2024 02:20 PM
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
!
02-09-2024 11:32 PM
NOW add VRF-lite capability and check the prefix
MHM
02-10-2024 11:09 AM
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
02-10-2024 02:13 AM
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
02-10-2024 11:11 AM
common router has connectivity to Tenant-A
02-10-2024 11:17 AM
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#
02-10-2024 03:26 PM
Can I see SW config ?
MHM
02-10-2024 07:28 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide