The assign interface command allocates an interface to the virtual system.
The undo assign interface commands disables the function of allocating interfaces to virtual systems.
assign interface interface-type interface-number
undo assign interface interface-type interface-number
| Parameter | Description | Value |
|---|---|---|
interface-type interface-number |
Specifies the interface type and ID. |
The interfaces that can be assigned to virtual systems include Layer-3 Ethernet interfaces, Layer-3 Ethernet subinterfaces, Layer-3 Eth-Trunk interfaces, Layer-3 Eth-Trunk subinterfaces, Tunnel interfaces, WAN interfaces, Loopback interfaces, and Virtual-Template interfaces. This parameter is case-insensitive. |
By default, except the virtual interface created when the virtual system is created, no other interfaces are assigned to the virtual system.
Prerequisites
Interfaces cannot be assigned in the following conditions. You need to delete the configurations or dissociate the features.
Configuration Impact
Interfaces assigned to one virtual system cannot be assigned to other virtual systems.
VLANIF interfaces cannot be directly assigned to virtual systems. When the assign vlan command is used to assign a VLAN to a virtual system, the corresponding VLANIF interface will also be assigned to the virtual system.
Layer-2 interfaces cannot be directly assigned to virtual systems. Instead, you can run the assign vlan command to assign a VLAN to a virtual system. Layer-2 interfaces are assigned to the virtual systems with the VLAN. A Trunk or Hybrid Layer-2 interface can be assigned to multiple virtual systems with a VLAN. Each virtual system administrator can configure the interface, for example, adding the interface to a security zone.
The management interface cannot be assigned to virtual system.
Precautions
When an interface is allocated to a virtual system or the allocation is canceled, the interface configuration (such as the IP address, IPSec policy) will be deleted. Exercise caution when assigning an interface to a virtual system to prevent service interruption.