No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
interface vlanif

interface vlanif


The interface vlanif command creates a VLANIF interface and displays the VLANIF interface view.

The undo interface vlanif command deletes a VLANIF interface.

By default, VLANIF interfaces are not created.


interface vlanif vlan-id

undo interface vlanif vlan-id






Specifies the ID of the VLAN that a VLANIF interface belongs to.

The value is an integer that ranges from 1 to 4094.

The device supports 129 VLANIF interfaces.


System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a device needs to communicate with devices at the network layer, you can create a logical interface based on a VLAN on the device, namely, a VLANIF interface. A VLANIF interface is a network layer interface and can be configured with an IP address. The device then users the VLANIF interface to communicate with devices at the network layer.


The specified VLAN has been created using the vlan command before you create a VLANIF interface.

Follow-up Procedure

Run the ip address to assign an IP address to the VLANIF interface.


If the specified VLANIF interface exists, the interface vlanif command displays the VLANIF interface view directly.

When a VLANIF interface is used as a management VLANIF interface where you can telnet to the device, the user VLAN ID cannot be the same as the management VLAN ID; otherwise, you will fail to telnet to the device.


# Create VLANIF 2 and enter the VLANIF interface view.

<Huawei> system-view
[Huawei] vlan 2
[Huawei-vlan2] quit 
[Huawei] interface vlanif 2
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 205664

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next