R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
197
[RouterA-behavior-b33] quit
[RouterA] qos policy p11
[RouterA-policy-p11] classifier c11 behavior b11
[RouterA-policy-p11] classifier c22 behavior b22
[RouterA-policy-p11] classifier c33 behavior b33
[RouterA-policy-p11] quit
[RouterA] qos policy p22
[RouterA-policy-p22] classifier c44 behavior b11
[RouterA-policy-p22] classifier c55 behavior b22
[RouterA-policy-p22] classifier c66 behavior b33
[RouterA-policy-p22] quit
# Assign customer-side port GigabitEthernet 4/0/1 to CVLANs 1 to 3, and SVLANs 101, 201,
and 301. Enable basic QinQ, and apply uplink policy p1 to incoming traffic and downlink policy
p11 to outgoing traffic.
[RouterA] interface GigabitEthernet 4/0/1
[RouterA-GigabitEthernet4/0/1] port link-type trunk
[RouterA-GigabitEthernet4/0/1] port trunk permit vlan 1 2 3 101 201 301
[RouterA-GigabitEthernet4/0/1] qinq enable
[RouterA-GigabitEthernet4/0/1] qos apply policy p1 inbound
[RouterA-GigabitEthernet4/0/1] qos apply policy p11 outbound
[RouterA-GigabitEthernet4/0/1] quit
# Assign customer-side port GigabitEthernet 4/0/2 to CVLANs 1 to 3, and SVLANs 102, 202,
and 302. Enable basic QinQ, and apply uplink policy p2 to incoming traffic and downlink policy
p22 to outgoing traffic.
[RouterA] interface GigabitEthernet 4/0/2
[RouterA-GigabitEthernet4/0/2] port link-type trunk
[RouterA-GigabitEthernet4/0/2] port trunk permit vlan 1 2 3 102 202 302
[RouterA-GigabitEthernet4/0/2] qinq enable
[RouterA-GigabitEthernet4/0/2] qos apply policy p2 inbound
[RouterA-GigabitEthernet4/0/2] qos apply policy p22 outbound
[RouterA-GigabitEthernet4/0/2] quit
# Assign network-side port GigabitEthernet 4/0/3 to all SVLANs.
[RouterA] interface GigabitEthernet 4/0/3
[RouterA-GigabitEthernet4/0/3] port link-type trunk
[RouterA-GigabitEthernet4/0/3] port trunk permit vlan 101 201 301 102 202 302
2. Configure Router B in the same way Router A is configured.
3. Configure Router C:
# Enable DHCP snooping.
<RouterC> system-view
[RouterC] dhcp-snooping
# Create the CVLANs and SVLANs, and enable ARP detection in each VLAN.
[RouterC] vlan 101
[RouterC-vlan101] arp detection enable
[RouterC-vlan101] vlan 201
[RouterC-vlan201] arp detection enable
[RouterC-vlan201] vlan 301
[RouterC-vlan301] arp detection enable