< Home

display assign vni

Function

The display assign vni command views the assigned VNIs of a virtual system.

Format

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

Parameters

Parameter Description Value

vni-id

Specifies the VNI.

The specified VNI must already exist.

vsys vsys-name

Specifies a created virtual system.

The value must be the name of an existing virtual system.

all

Displays all the assigned VNIs of all the virtual systems.

-

Views

All views of the public system

Default Level

3: Management level

Usage Guidelines

Application Scenarios

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

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

Prerequisites

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

Configuration Impact

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

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

Example

# Display the virtual systems to which VNI 8002 and VNI 8005 are assigned.

<sysname> display assign vni 8002
 Vsys Assign Vni :                                                             
--------------------------------------------------------------------------------
 vni_id          : 8002            Vsys          : vsys1
<sysname> display assign vni 8005
 Vsys Assign Vni :                                                             
--------------------------------------------------------------------------------
 vni_id          : 8005            Vsys          : public
Table 1 Description of the display assign vni command output

Item

Description

public

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

# Display the VNIs assigned to virtual system vsys1.

<sysname> display assign vni vsys vsys1
 Vsys Assign Vni :                                                             
--------------------------------------------------------------------------------
 vni_id          : 8002            Vsys          : vsys1

# Display the vnis assigned to all virtual systems.

<sysname> display assign vni all
 Vsys Assign Vni :                                                             
--------------------------------------------------------------------------------
 vni_id          : 8002            Vsys          : vsys1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >