215
Step Command
Remarks
3.
Set 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
By default, the link type of a port is
access
.
4.
Assign the port to the
translated VLANs.
•
port trunk permit vlan
vlan-id-list
•
port hybrid vlan
vlan-id-list
tagged
By default:
•
A trunk port allows only packets
from VLAN 1 to pass through.
•
A hybrid port is an untagged
member of the VLAN to which
the port belongs when its link
type is
access
.
5.
Configure the port as a DHCP
snooping trusted port.
dhcp snooping trust
By default, all ports that support
DHCP snooping are untrusted ports
when DHCP snooping is enabled.
6.
Configure the port as an ARP
trusted port.
arp detection trust
By default, all ports are ARP
untrusted ports.
7.
Configure the port to use the
original VLAN tags of the
many-to-one mapping to
replace the VLAN tags of the
packets destinated to the user
network.
vlan mapping
nni
By default, the port does not
replace the VLAN tags of the
packets destinated to the user
network.
Configuring many-to-one VLAN mapping in a network with
static IP address assignment
NOTE:
This feature is supported in Release 2310 and later versions.
In a network where IP addresses are statically assigned, configure many-to-one VLAN mapping with ARP
snooping.
The switch replaces the SVLAN tag of the downlink traffic with the associated CVLAN tag based on the
ARP snooping entry lookup.
Configuration restrictions and guidelines
When you use this method to configure many-to-one VLAN mapping, follow these restrictions and
guidelines:
•
Before you configure many-to-one VLAN mapping, create the original VLANs and the translated
VLAN.
•
You cannot assign the same IP address to the hosts in different CVLANs.
•
When an IP address is no longer associated with the MAC address in a VLAN as in the ARP
snooping table, perform one of the following operations: