R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
186
Ste
p
Command
Remarks
6. Apply the uplink policy to
incoming traffic.
qos apply policy policy-name
inbound
N/A
Configuring the network-side port
Ste
p
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
N/A
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
CVLANs.
• As a trunk port:
port trunk permit vlan { vlan-list
| all }
• As a hybrid port:
port hybrid vlan vlan-list
tagged
Use one of the commands.
By default:
• A trunk port is assigned to only
VLAN 1.
• A hybrid port is an untagged
member of VLAN 1.
5. Configure the port as a DHCP
snooping trusted port.
dhcp-snooping trust
By default, all ports are DHCP
snooping untrusted ports.
6. Configure the port as an ARP
trusted port.
arp detection trust
By default, all ports are ARP
untrusted ports.
7. Enable network-side QinQ.
qinq enable uplink
By default, network-side QinQ is
disabled on all ports.
Configuring one-to-two VLAN mapping
Perform one-to-two VLAN mapping on the edge devices from which customer traffic enters SP networks,
on PE 1 and PE 4 in Figure 66 f
or example. One-to-two VLAN mapping enables the edge devices to
insert an outer VLAN tag to each incoming packet.
Complete the following tasks to configure one-to-two VLAN mapping: