The management-vlan command configures the VLAN used by the switch to communicate with a DHCP server. This VLAN is the management VLAN of the switch.
Parameter | Description | Value |
---|---|---|
vlan-id |
Specifies the VLAN ID used by the switch to communicate with a DHCP server. |
The value is an integer in the range 1 to 4094. |
Usage Scenario
In NETCONF over SSH Callhome mode, the switch can obtain the IP address of iMaster NCE-Campus using DHCP. The request sent by the switch to the DHCP server to obtain the IP address of iMaster NCE-Campus is transmitted over VLAN 1. After the switch passes registration authentication, iMaster NCE-Campus changes the VLAN ID used by the switch to communicate with the DHCP server again. After the switch restarts, to ensure that it continues to use the configured VLAN to communicate with the DHCP server, you can configure the management VLAN on the switch.
Precautions
The management VLAN of the switch cannot be the same as the management VLAN of the CAPWAP tunnel.
When you disable NETCONF in the system view or delete the management VLAN in the NETCONF view, the system displays a message asking you whether to retain the ip address dhcp-alloc configuration. Exercise caution when you choose to delete the configuration