To do...
Enter Ethernet port view
Configure the port link type
To change the link type of a port from trunk to hybrid or vice versa, you need to set the link type to
access first.
Assigning an Ethernet Port to a VLAN
You can assign an Ethernet port to a VLAN in Ethernet port view or VLAN view.
1)
In Ethernet port view
Follow these steps to assign an Ethernet port to one or multiple VLANs:
To do...
Enter system view
Enter Ethernet port view
Access port
Assign the
port to one
Trunk port
or multiple
VLANs
Hybrid port
When assigning an access or hybrid port to a VLAN, make sure the VLAN already exists.
2)
In VLAN view
Follow these steps to assign one or multiple access ports to a VLAN in VLAN view:
To do...
Enter system view
Enter VLAN view
Use the command...
interface interface-type
interface-number
port link-type { access |
hybrid | trunk }
Use the command...
system-view
interface interface-type interface-number
port access vlan vlan-id
port trunk permit vlan { vlan-id-list | all }
port hybrid vlan vlan-id-list { tagged |
untagged }
Use the
command...
system-view
—
Required
vlan vlan-id
If the specified VLAN does not exist, this
command creates the VLAN first.
2-4
Remarks
—
Required
The link type of an Ethernet port is
access by default.
Remarks
—
—
Optional
By default, all
Ethernet ports
belong to VLAN
1.
Remarks