< Home

assign interface

Function

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.

Format

assign interface interface-type interface-number

undo assign interface interface-type interface-number

Parameters

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.

Views

Management view of the virtual system

Default Level

2: Configuration level

Usage Guidelines

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.

  • The interface has been assigned to a virtual system.
  • The interface is referenced by a policy. For example, the interface is referenced by a Source NAT policy of the Easy IP function.
  • The interface is an Eth-trunk member interface or switched to a Layer-2 interface.

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.

Example

# Allocate interface GigabitEthernet 0/0/1 to virtual system vsys1.

<sysname> system-view
[sysname] vsys name vsys1
[sysname-vsys-vsys1] assign interface GigabitEthernet 0/0/1 
 Info: All related configurations on this interface are removed.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >