< Home

display assign vlan

Function

The display assign vlan command views the assigned VLANs of a virtual system.

Format

display assign vlan { vlan-id | vsys vsys-name | all }

Parameters

Parameter Description Value

vlan-id

Specifies the VLAN.

It is an integer ranging from 1 to 4094.

vsys vsys-name

Specifies a created virtual system.

It must be the name of an existing virtual system.

all

Displays all the assigned VLANs of all the virtual systems.

-

Views

All views of the public system

Default Level

1: Monitoring level

Usage Guidelines

Application Scenarios

After running the assign vlan command to assign VLANs to virtual systems, you can run the display assign vlan command to view the configuration result.

When you run the assign vlan command to assign a VLAN to a virtual system, if the system prompts that the VLAN has been assigned to another virtual system, you must unbind the VLAN from the virtual system before running the command again. If you do not know the virtual system to which the VLAN has been assigned, run the display assign vlan command.

Prerequisites

The display assign vlan command is unavailable unless you run the vsys enable command to enable the virtual system function.

Configuration Impact

If a VLAN is not assigned to any virtual system, the display assign vlan vlan-id command output shows that the VLAN belongs to public, namely, the root system.

The display assign vlan all command output shows only the VLANs that have been assigned to virtual systems. The VLANs that have not been assigned to any virtual systems belong to the root system.

Example

# Display the virtual systems to which VLAN 10 and VLAN 20 are assigned.

<sysname> display assign vlan 10
 Vsys Assign VLAN :                                                             
--------------------------------------------------------------------------------
 VLAN          : 10            Vsys          : vsys1
<sysname> display assign vlan 20
 Vsys Assign VLAN :                                                             
--------------------------------------------------------------------------------
 VLAN          : 20            Vsys          : public
Table 1 Description of the display assign vlan command output

Item

Description

public

Root system. The VLAN belongs to the root system and is not assigned to any virtual systems.

# Display the VLANs assigned to virtual system vsys1.

<sysname> display assign vlan vsys vsys1
 Vsys Assign VLAN :                                                             
--------------------------------------------------------------------------------
 VLAN          : 10            Vsys          : vsys1

# Display the VLANs assigned to all virtual systems.

<sysname> display assign vlan all
 Vsys Assign VLAN :                                                             
--------------------------------------------------------------------------------
 VLAN          : 10            Vsys          : vsys1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >