Assigning an access port to a VLAN

You can assign an access port to a VLAN in VLAN view or interface view.

Make sure the VLAN has been created.

Assigning one or multiple access ports to a VLAN in VLAN view

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter VLAN view.

vlan vlan-id

N/A

3. Assign one or a group of access ports to the VLAN.

port interface-list

By default, all ports belong to VLAN 1.

Assigning an access port to a VLAN in interface view

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

  • Enter Layer 2 Ethernet interface view:interface interface-type interface-number

  • Enter Layer 2 aggregate interface view:
    interface bridge-aggregation
    interface-number

  • Enter S-channel interface view:interface s-channel interface-number.channel-id

  • Enter S-channel aggregate interface view:interface schannel-aggregation interface-number:channel-id

  • The configuration made in Layer 2 Ethernet interface view applies only to the port.

  • The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its aggregation member ports. If the system fails to apply the configuration to an aggregation member port, it skips the port and moves to the next member port. If the system fails to apply the configuration to the aggregate interface, it stops applying the configuration to aggregation member ports.

  • The configuration made in S-channel interface view or S-channel aggregate interface view applies only to the interface. For more information about S-channel interfaces and S-channel aggregate interfaces, see EVB Configuration Guide.

3. Configure the link type of the port as access.

port link-type access

By default, all ports are access ports.

4. (Optional.) Assign the access port to a VLAN.

port access vlan vlan-id

By default, all access ports belong to VLAN 1.