- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Catalyst 9000
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 02:27 AM
Hi balaji,
Can we assign VLAN to management interface , if yes then how can we configure. Thanks for your feedabck.
With Regards
uni
