< Home

management-vlan (NETCONF view)

Function

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.

Format

management-vlan vlan-id

undo management-vlan

Parameters

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.

Views

NETCONF view

Default Level

3: Management level

Usage Guidelines

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

Example

# Set the management VLAN ID of the switch to 2.

<HUAWEI> system-view
[HUAWEI] netconf
[HUAWEI-netconf] management-vlan 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >