Creation and configuration of VLANs
Hello everyone!
Today, I would like to introduce how to create vlan on Huawei devices.
Objetive
The purpose of this post is to introduce you to VLAN creation and configuration methods in Huawei VRP.
Creation and configuration of VLANs.
Virtual Local Area Networks (VLANs) are used to divide a LAN across multiple broadcast domains to isolate services for the purpose to improve network security and management.
A physical LAN can be logically segmented into multiple VLANs to isolate broadcast domains. Hosts on a VLAN can
communicate directly only with other hosts on the same VLAN and must use a router to communicate with hosts on other VLANs.
To configure a Vlan on an access mode interface, run the following steps.
a) Run system-view
Enter Privileged mode.
b) Run vlan vlan-id
A VLAN is created and the VLAN view is displayed. If the VLAN specified has been created, the VLAN preview will be displayed directly.
c) Execute quit
Return to Privileged mode.
d) Execute interface interface-type interface-number
The view of the Ethernet interface to be added to the VLAN is displayed.
e) Run port link-type access
The Ethernet interface is configured as an access interface.
f) Run default port vlan vlan-id
The default VLAN is configured for the interface and the interface is added to the specified VLAN.
To configure a Vlan on a trunk mode interface, run the following steps.
a) Run system-view
Enter Privileged mode.
b) Run vlan vlan-id
A VLAN is created and the VLAN view is displayed. If the VLAN specified has been created, the VLAN preview will be displayed directly.
c) Execute quit
Return to Privileged mode.
d) Execute interface interface-type interface-number
The view of the Ethernet interface to be added to the VLAN is displayed.
e) Run port link-type trunk
The Ethernet interface is configured as a trunk interface.
f) Execute port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all}
The specified VLAN will be added on the interface.
- END -



