01-08-2023 03:29 AM
Hello,
I am a bit confused about useing the MGMT Port on Cisco c9200 and C9300 devices. If I understand the Cisco document here right LINK the management port is not accessable from the other network ports. Thats is exactly what I need, the MGMT port is independet.
But what have I to do to connect the management port to my MGMT network? I still need to add my default gateway on the management port right?
The document linked above, shows this default configuration:
This example shows how to configure IP address on the management interface.
Switch# configure terminal
Switch(config)# interface gigabitethernet1/0/1
Switch(config-if)# vrf forwarding Mgmt-vrf
Switch(config-if)#ip address 192.168.247.10 255.255.0.0
Switch(config-if)# end
How can I bind the default gateway only to the management port?
Solved! Go to Solution.
01-08-2023 03:40 AM - edited 01-08-2023 04:50 AM
default gw dont care about vrf but here you have mgmt-vrf so I think you need default route not default GW.
Ip route mgmt-vrf 0.0.0.0 0.0.0.0 192.168.247.x
01-08-2023 03:40 AM - edited 01-08-2023 04:50 AM
default gw dont care about vrf but here you have mgmt-vrf so I think you need default route not default GW.
Ip route mgmt-vrf 0.0.0.0 0.0.0.0 192.168.247.x
01-08-2023 04:04 AM - edited 01-08-2023 04:05 AM
VRF run its own routing, so if you connected this port to other side VLAN access port (example vlan 10) from VLAN 10 IP address range can able to reach this device.
Since this is management port and we expect to connect out of band management connection, than normal Global routing.
if you like to add routing, then you can use the below syntax :
ip route vrf Mgmt-vrf x.x.x.x x.x.x.x x.x.x.x
when you test ping always use
ping vrf Mgmt-vrf x.x.x.x
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: