< Home

display assign interface

Function

The display assign interface command displays the assigned interfaces of a virtual system.

Format

display assign interface { interface-type interface-number | vsys vsys-name | all }

Parameters

Parameter Description Value
interface-type interface-number Displays the virtual system assigned to a specified interface. -
vsys vsys-name Displays the interface assigned to a specified virtual system. The specified virtual system must already exist.
all Displays the interfaces assigned to all virtual systems. -

Views

All views of the public system

Default Level

1: Monitoring level

Usage Guidelines

Prerequisites

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

Application Scenarios

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

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

Configuration Impact

If an interface is not assigned to any virtual system, the display assign interface interface-type interface-number command output shows that the interface belongs to public, namely, the root system.

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

Layer-2 GigabitEthernet interfaces and VLANIF interfaces cannot be directly assigned to virtual system. Instead, you can run the assign vlan command to assign a VLAN to a virtual system. The interfaces are assigned to the virtual system with the VLAN. Therefore, the display assign interface command cannot be used to view the allocation of Layer-2 GigabitEthernet interfaces and VLANIF interfaces.

Example

# Display the virtual systems to which GigabitEthernet 0/0/1 and GigabitEthernet 0/0/2 are assigned.

<sysname> display assign interface GigabitEthernet 0/0/1
 Vsys Assign interface :                                                        
--------------------------------------------------------------------------------
 assign interface GigabitEthernet0/0/1 vsys vsys1
<sysname> display assign interface GigabitEthernet 0/0/2
 Vsys Assign interface :                                                        
--------------------------------------------------------------------------------
 assign interface GigabitEthernet0/0/2 vsys public
Table 1 Description of the display assign interface command output

Item

Description

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

# Display the interfaces assigned to virtual system vsys1.

<sysname> display assign interface vsys vsys1
 Vsys Assign interface :                                                        
--------------------------------------------------------------------------------
 assign interface GigabitEthernet0/0/1 vsys vsys1

# Display the interfaces assigned to all virtual systems.

<sysname> display assign interface all
 Vsys Assign interface :                                                        
--------------------------------------------------------------------------------
 assign interface GigabitEthernet0/0/1 vsys vsys1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >