Configuring the network-side port, Configuring one-to-two vlan mapping – H3C Technologies H3C S10500 Series Switches User Manual

Page 213

Advertising
background image

202

To do...

Use the command...

Remarks

Set the port as a DHCP snooping
trusted port and disable the port to
record IP-to-MAC bindings for

DHCP clients

dhcp-snooping trust
no-user-binding

Required
By default, all ports are DHCP snooping

untrusted ports.

Enable customer-side QinQ

qinq enable downlink

Required
By default, customer-side QinQ is disabled

on all ports.

Apply the uplink policy to the
incoming traffic

qos apply policy
policy-name
inbound

Required

CAUTION:

Before applying a QoS policy to the customer-side port, enable customer-side QinQ on the port. Before
disabling customer-side QinQ on the customer-side port, remove the QoS policy from the port first.

Configuring the network-side port

Follow these steps to configure the network-side port:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter Ethernet interface view

interface interface-type
interface-number

Configure the port as a trunk port port link-type trunk

Required
The default link type of an Ethernet port is
access.

Assign the port to SVLANs

port trunk permit vlan
{ vlan-id-list | all }

Required
By default, a trunk port is in only VLAN 1.

Configure the port as a DHCP
snooping trusted port

dhcp-snooping trust

Required
By default, all ports are DHCP snooping
untrusted ports.

Configure the port as an ARP
trusted port

arp detection trust

Required
By default, all ports are ARP untrusted ports.

Enable network-side QinQ

qinq enable uplink

Required
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 64

for example. One-to-two VLAN mapping enables the edge devices to

insert an outer VLAN tag to each incoming packet.
Perform these tasks to configure one-to-two VLAN mapping:

Task Description

Configuring an uplink policy

Configures an uplink policy for the customer-side port (required).

Advertising