(1) Create (input) vlan2.
[Switch] Virtual LAN 2
(2) Add the port E1/01to vlan2.
[Switch a-VLAN 2] Port Ethernet 1/0/ 1
(3) Create (input) vlan3
[Switch-VLAN 2] VLAN 3
(4) Add the port E 1/0/2 to vlan3.
[Switch a-VLAN 3] Port Ethernet 1/0/2
Method 2:
(1) Create (input) vlan2.
[Switch] Virtual LAN 2
(2) View of access port E 1/0/ 1.
[switch a] Interface Ethernet 1/0/ 1
(3) The specified port e1/01belongs to vlan2.
[switch a-Ethernet 1] port accesses vlan 2.
(4) Create (enter) vlan3.
[Switch] Virtual LAN 3
(5) View of access port E 1/0/2.
[switch a] Interface Ethernet 1/0/2
(6) The specified port E 1/0/2 belongs to vlan3.
[Switch a- Ethernet 2] port accesses vlan 3.
Test verification
(1) use the disp cur command to see that port e11belongs to vlan2, and E 1/0/2 belongs to vlan2.
(2) Using the display interface Ethernet1/01,we can see that this port is an access port with a PVID of 2;
(3) Using the display interface Ethernet 1/0/2, we can see that the port is an access port and the PVID is 3.