Enabling DHCP snooping
Step
Enter system view.
1.
Enable DHCP
2.
snooping.
Enabling ARP detection
Enable ARP detection for the original VLANs and the translated VLANs.
To enable ARP detection:
Step
Enter system view.
1.
Enter VLAN view.
2.
Enable ARP detection.
3.
Configuring the customer-side port
Step
Enter system view.
1.
Enter Layer 2 Ethernet
2.
interface view or Layer 2
aggregate interface view.
Set the link type of the port.
3.
Assign the port to the original
4.
VLANs and the translated
VLANs.
Configure a many-to-one
5.
VLAN mapping.
Command
system-view
dhcp snooping enable
Command
system-view
vlan vlan-id
arp detection enable
Command
system-view
•
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
•
Enter Layer 2 aggregate
interface view:
interface bridge-aggregation
interface-number
•
Configure the port as a trunk
port:
port link-type trunk
•
Configure the port as a hybrid
port:
port link-type hybrid
•
port trunk permit vlan
vlan-id-list
•
port hybrid vlan vlan-id-list
tagged
vlan mapping uni { range
vlan-range-list | single vlan-id-list }
translated-vlan vlan-id
206
Remarks
N/A
By default, DHCP snooping is disabled.
For more information about DHCP snooping
configuration commands, see Layer 3—IP
Services Command Reference.
Remarks
N/A
N/A
By default, ARP detection is disabled.
For more information about ARP detection
configuration commands, see Security
Command Reference.
Remarks
N/A
N/A
By default, the link type of a
port is access.
N/A
By default, no VLAN mapping
is configured on an interface.