n
Configuring the
Trunk-Port-Based VLAN
n
To do...
Enter Ethernet
Enter Ethernet
port view or
port view
port group
Enter port
view
group view
Configure the port link type as
Access
Add the current Access port to
a specified VLAN
Ensure that you create a VLAN first before trying to add an Access port to the
■
VLAN.
Refer to
"Aggregation Port Group" on page 349
■
group.
A Trunk port may belong to multiple VLANs, and you can only perform this
configuration in Ethernet port view or port group view.
Follow the following steps to configure the Trunk-port-based VLAN:
To do...
Enter system view
Enter Ethernet
Enter Ethernet
port view or
port view
port group
Enter port
view
group view
Configure the port link type as
Trunk
Allow a specified VLAN to pass
through the current Trunk port
Configure the default VLAN
for the Trunk port
To convert a Trunk port into a Hybrid port (or vice versa), you need to use the
■
Access port as a medium. For example, the Trunk port has to be configured as
an Access port first and then a Hybrid port.
The default VLAN ID on the Trunk ports of the local and peer devices must be
■
the same. Otherwise, packets cannot be transmitted properly.
Refer
to"Aggregation Port Group" on page 349
■
group.
Configuring a Port-Based VLAN
Use the command...
interface interface-type
interface-number
port-group aggregation
agg-id
port link-type access
port access vlan vlan-id
Use the command...
system-view
interface interface-type
interface-number
port-group aggregation
agg-id
port link-type trunk
port trunk permit vlan
{ vlan-id-list | all }
port trunk pvid vlan vlan-id Optional
Remarks
User either command
Configured in Ethernet port
view, the setting is effective
on the current port only;
configured in port group
view, the setting is effective
on all ports in the port group.
Optional
The link type of a port is
Access by default
Optional
By default, all Access ports
belong to VLAN 1
for information about port
Remarks
-
User either command
Configured in Ethernet port
view, the setting is effective
on the current port only;
configured in port group
view, the setting is effective
on all ports in the port group.
Required
Required
By default, all Trunk ports
belong to VLAN 1 only
VLAN 1 is the default by
default
for information about port
493
Need help?
Do you have a question about the MSR 50 Series and is the answer not in the manual?
Questions and answers