< Home

Configuring a Management VLAN

Context

The management VLAN allows you to use the VLANIF interface to log in to the management switch to centrally manage devices.

Usually, a VLANIF interface needs to be configured with only one management IP address. However, in some situations, for example, when users in the same management VLAN belong to multiple different network segments, you need to configure a primary management IP address and multiple secondary management IP addresses.

You can log in to both local and remote devices using a VLANIF interface of a management VLAN. When logging in to the remote device using the VLANIF interface of a management VLAN, you need to configure VLANIF interfaces on both local and remote devices and assign IP addresses on the same network segment to them.

Pre-configuration Tasks

Before configuring a management VLAN, perform the task of assigning VLANs.

Only trunk and hybrid interfaces can join the management VLAN.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vlan vlan-id

    The VLAN view is displayed.

  3. Run management-vlan

    The VLAN is configured as the management VLAN.

    VLAN 1 cannot be configured as the management VLAN.

  4. Run quit

    Exit from the VLAN view.

  5. Run interface vlanif vlan-id

    A VLANIF interface is created and its view is displayed.

  6. Run ip address ip-address { mask | mask-length } [ sub ]

    An IP address is assigned to the VLANIF interface.

Follow-up Procedure

Log in to the switch to implement centralized management through the NMS. Then, select one of the following login modes:

The login IP address is the IP address of the VLANIF interface of the management VLAN.

Verifying the Configuration

  • Run the display vlan command to check the management VLAN configuration. In the command output, the VLAN marked with a * is the management VLAN.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >