cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3441
Views
5
Helpful
7
Replies

Cisco Switch MGMT Default Gateway

avilt
Level 3
Level 3

On a Cisco switch, if I define MGMT out of band IP address, how do I define the default gateway for it which should remain out of band?

 

Example: I have a 9300 switch with two vlans 192.168.1.x & 192.168.2.x with vlan IP interfaces and also a default gateway as 192.168.2.254. Now I have MGMT interface 172.16.1.1/24 and I need to define gateway towards another management network. How can I define completely out of band route?

7 Replies 7

Reza Sharifi
Hall of Fame
Hall of Fame

Try this:

ip route vrf Mgmt-vrf 0.0.0.0 0.0.0.0 172.16.1.x

x is the ip address of the OOB management network.

Now, you should be able to get to the switch from other subnets.

 

HTH

Thank you

I will try, the reason I asked is that I have setup SNMP on MGMT and I am unable to get any data on NMS from MGMT interface on my 9000 series switches. Is it a known bug?

Is it a known bug?

Not sure, make sure the source is oob interface. see below example:

 

snmp-server trap-source GigabitEthernet0/0
snmp-server source-interface informs GigabitEthernet0/0

 

HTH

hi,

please post your MGMT and SNMP config.

the C9300 has an OOB VRF Mgmt-vrf on G0/0.

try to use SNMPv2 as a test first and ensure the 9300 MIBs is supported on the NMS.

The above command and snmp ifindex persist on MGMT interface solved my issue.

Glad it is all working.

Please rate the post and mark it as solved so, others can benefit from it.

 

balaji.bandi
Hall of Fame
Hall of Fame

by default as per I know Cat 9K series switch mgmt interface is in a different VRF. 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card