На некоторых коммутаторах есть выделенный интерфейс для управления устройством.
В системе данный порта именуется как Ethernet0.
По умолчанию management порт не имеет IP адреса, для его настройки используйте следующие команды:
switch(config)#configure terminal switch(config)#interface ethernet 0 switch(config-if-ethernet0)#ip address 10.0.0.10 255.255.255.0 siwtch(config)#show ip interface brief Index Interface IP-Address Protocol Description 1208 Ethernet0 10.0.0.10 down
По умолчанию Интерфейс Ethernet 0 доступен из глобальной таблицы маршрутизации.
Но его можно вынести в отдельный VRF:
switch#conf switch(config)#ip vrf MGMT switch(config-vrf)#exit switch(config)#interface ethernet 0 switch(config-if-ethernet0)#ip vrf forwarding MGMT Interface IP address removed due to enabling VRF MGMT switch(config-if-ethernet0)#ip address 10.0.0.10 255.255.255.0
The management port goes out according to the default route, and the ARP of the next hop on the default route is learned from the management port, so it can be pinged. But the data coming in from the management port will not be sent to the business port.
It is normal to connect the management port to VLAN for ping communication. Because it is necessary to ensure that the management port can communicate with the management VLAN. But the data we manage will not be sent to the business VLAN.