216
Step Command
Remarks
3.
Configure the link type of the
port.
•
Configure the port as a trunk
port:
port link-type
trunk
•
Configure the port as a hybrid
port:
port link-type hybrid
Use one of the commands.
The default link type of an Ethernet
port is access.
4.
Assign the port to all SVLANs.
•
Assign the trunk port to VLANs:
port trunk permit vlan
{
vlan-list
|
all
}
•
Assign the hybrid port to VLANs
as a tagged member:
port hybrid
vlan
vlan-list
tagged
Use one of the commands.
By default:
•
A trunk port is assigned only to
VLAN 1.
•
A hybrid port is an untagged
member of VLAN 1.
5.
Apply the uplink policy for the
network-side port to outgoing
traffic.
qos apply policy
policy-name
outbound
N/A
VLAN mapping configuration examples
One-to-one and many-to-one VLAN mapping configuration
example
Network requirements
As shown in
:
•
Each home is offered PC, VoD, and VoIP services, connects to a wiring-closet switch through the
home gateway, and obtains the IP address through DHCP.
•
VLAN 1 is assigned for PC traffic, VLAN 2 is assigned for VoD traffic, and VLAN 3 is assigned for
VoIP service traffic on the home gateways.
Assign one VLAN for each type of traffic from each user on the wiring-closet switches, so that traffic of the
same service type from different homes is isolated.
Perform many-to-one VLAN mapping on the campus switch (Switch C) to transmit the same type of traffic
from different homes in one VLAN: use VLAN 501 for PC traffic, VLAN 502 for VoD traffic, and VLAN
503 for VoIP traffic, so that the VLAN resources are saved.
Packets that PCs send are VLAN untagged. If a PC is directly attached to a wiring-closet switch, configure
the port on the switch as an access or trunk port:
•
If the port is configured as an access port, assign it to the SVLAN.
•
If the port is configured as a trunk port, specify the SVLAN as the PVID.