Vswitch VLAN and vswitch vlan for micro-enterprises
Configure vswitch VLAN
I. Tutorial Purpose
Create a VLAN in the vswitch and add the corresponding port to the corresponding VLAN.
Port 1: VLAN10
Port 2: VLAN20
Port 3: VLAN30
Ii. experiment environment
Software
ENSP 1.2.00.500 Virtual Device
PC: PC1-PC3
S3700 switch: SW1
Iii. Experiment Topology
Iv. Experiment steps
Sys # Enter View Mode
[Huawei] sys SW1 # change the device name to SW1
[SW1] vlan 10 # create VLAN10
[SW1-vlan10] vlan 20 # create VLAN20
[SW1-vlan20] vlan 30 # create VLAN30
[SW1-vlan30] quit # Return View Mode
[SW1] disp vl # Check the VLAN configuration and check whether it is created successfully
[SW1] int eth 0/0/1 # enter port 1
[SW1-Ethernet0/0/1] port link-t ac # configure this port to access port Mode
[SW1-Ethernet0/0/1] po de vl 10 # Add this port to VLAN10
[SW1-Ethernet0/0/1] quit # Return View Mode
[SW1] int eth 0/0/2 # enter port 2
[SW1-Ethernet0/0/2] port link-t ac # configure this port to access port Mode
[SW1-Ethernet0/0/2] po de vl 20 # Add this port to VLAN20
[SW1-Ethernet0/0/2] quit # Return View Mode
[SW1] int eth 0/0/3 # enter port 3
[SW1-Ethernet0/0/3] port link-t ac # configure this port to access port Mode
[SW1-Ethernet0/0/3] po de vl 30 # Add this port to VLAN30
[SW1-Ethernet0/0/3] quit # Return View Mode
V. Result Verification
[SW1] disp vl # Check the VLAN configuration and confirm that the port is successfully added.