R3204P16-HP Load Balancing Module Network Management Configuration Guide-6PW101

Table Of Contents
47
To do… Use the command…
Remarks
Enter Ethernet interface view
interface interface-type
interface-number
Configure the link type of the
port as access
port link-type access
Optional
By default, all ports are access ports.
Assign the access port to a VLAN port access vlan vlan-id
Optional
By default, all access ports belong to VLAN 1.
NOTE:
Before assigning an access port to a VLAN, create the VLAN first.
The link type of Layer 2 Ethernet subinterfaces is fixed at access. You can assign Layer 2 Ethernet
subinterfaces to a VLAN in either of the preceding approaches.
2. Assigning a trunk port to a VLAN
A trunk port can carry multiple VLANs. You can assign a trunk port to a VLAN in Ethernet interface view
only.
Follow these steps to assign a trunk port to one or multiple VLANs:
To do… Use the command…
Remarks
Enter system view system-view
Enter Ethernet interface view
interface interface-type
interface-number
Configure the link type of the
port as trunk
port link-type trunk
Required
By default, all ports are access ports.
Assign the trunk port to the
specified VLAN(s)
port trunk permit vlan
{ vlan-id-list | all }
Required
By default, a trunk port carries only VLAN 1.
Configure the PVID of the
trunk port
port trunk pvid vlan vlan-id
Optional
By default, the PVID is VLAN 1.
NOTE:
To change the link type of a port from trunk to hybrid or vice versa, you must set the link type to access
first.
After configuring the PVID for a trunk port, you must use the port trunk permit vlan command to
configure the trunk port to allow packets from the PVID to pass through, so that the egress port can
forward packets from the PVID.
3. Assigning a hybrid port to a VLAN
A hybrid port can carry multiple VLANs. You can assign a hybrid port to a VLAN in Ethernet interface
view only.