03-26-2021 11:26 AM
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?
03-26-2021 12:02 PM - edited 03-26-2021 12:04 PM
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
03-26-2021 12:13 PM
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?
03-26-2021 12:27 PM
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
03-26-2021 07:46 PM
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.
03-27-2021 01:25 AM
The above command and snmp ifindex persist on MGMT interface solved my issue.
03-27-2021 07:51 AM
Glad it is all working.
Please rate the post and mark it as solved so, others can benefit from it.
03-26-2021 02:54 PM
by default as per I know Cat 9K series switch mgmt interface is in a different VRF.
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