How do I configure access interface of S series switch

Example for configuring a VLAN for an access interface For S series switches (except S1700 switches):
An access interface can connect to a user host.
[HUAWEI]vlan 2 //Create a VLAN.
[HUAWEI]interface gigabitethernet0/0/1
[HUAWEI-GigabitEthernet0/0/1]port link-type access //Set the link type of the interface to access.
[HUAWEI-GigabitEthernet0/0/1]port default vlan 2 //Add the interface to VLAN 2.

Scroll to top