Field
Name
Tagged Ports
Untagged Ports
interface Vlan-interface
Syntax
interface Vlan-interface vlan-id
undo interface Vlan-interface vlan-id
View
System view
Parameter
vlan-id: ID of the VLAN interface, in the range of 1 to 4,094.
Description
Use the interface Vlan-interface command to create a VLAN interface and enter VLAN interface view.
VLAN interface is a virtual interface in Layer 3 mode, used to realize the layer 3 communication
between different VLANs. Each VLAN has a VLAN interface, which can forward packets of the local
VLAN to the destination IP addresses at the network layer.
Use the undo interface Vlan-interface command to delete the VLAN interface.
Related command: display interface Vlan-interface.
Before you can create a VLAN interface, you must create the corresponding VLAN.
Example
# Enter VLAN-interface1 view
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1]
name
Syntax
name text
VLAN name
Ports through which packets are sent with VLAN tag kept.
Port through which packets are sent with VLAN tag stripped.
1-4
Description