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

ASR-9K (vrf and management interface)

sendalot7
Level 1
Level 1

I see that regular IOS & NX-OS & ASR(IOS-XE) have different ways of setting out-of-band management interface.

Below is brief config.

I can ping my immediate default gw but can't ping anything outside of my vlan/subnet.

Help appreciated, thanks!

#################################################################################

#################################################################################

RP/0/RSP0/CPU0:ios#show run
Tue Apr  4 16:17:55.079 UTC
Building configuration...
!! IOS XR Configuration 5.3.3
!! Last configuration change at Tue Apr  4 15:58:22 2017 by admin
!
vrf mgmt
!
interface MgmtEth0/RSP0/CPU0/0
 ipv4 address 10.7.0.38 255.255.255.0
!
interface MgmtEth0/RSP0/CPU0/1
 shutdown
!
!
router static
 address-family ipv4 unicast
  0.0.0.0/8 10.7.0.1
 !
 vrf mgmt
  address-family ipv4 unicast
   0.0.0.0/0 10.7.0.1
  !

2 Replies 2

Steven Larson
Level 1
Level 1

This is how I have mine setup:

vrf MGMT
description Management
address-family ipv4 unicast
import route-target
200:200
!
export route-target
200:200
!
interface MgmtEth0/RSP0/CPU0/0
description MGMT
vrf MGMT
ipv4 address 10.1.2.111 255.255.255.0
load-interval 30
!
router static
vrf MGMT
address-family ipv4 unicast
0.0.0.0/0 10.1.2.1

I just tested and this works.

Harold Ritter
Cisco Employee
Cisco Employee

Hi @sendalot7 ,

The mgmt interface is in the global and the default route in the global is wrong (0.0.0.0/8 instead of 0.0.0.0/0), hence it is not working. The best thing would be to put the mgmt interface in the mgmt vrf. You already have the proper default static route in vrf mgmt.

interface MgmtEth0/RSP0/CPU0/0

vrf mgmt

ipv4 address 10.7.0.38 255.255.255.0

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