beautypg.com

Configuration procedure, Verifying the configuration, Option 82 configuration example – H3C Technologies H3C S12500-X Series Switches User Manual

Page 85: Network requirements

background image

74

Figure 27 Network diagram

Configuration procedure

# Enable DHCP snooping.

system-view

[SwitchB] dhcp snooping enable

# Configure Ten-GigabitEthernet1/0/1 as a trusted port.

[SwitchB] interface Ten-GigabitEthernet 1/0/1

[SwitchB-Ten-GigabitEthernet1/0/1] dhcp snooping trust

[SwitchB-Ten-GigabitEthernet1/0/1] quit

# Enable DHCP snooping to record clients' IP-MAC bindings on Ten-GigabitEthernet1/0/2.

[SwitchB] interface Ten-GigabitEthernet1/0/2

[SwitchB-Ten-GigabitEthernet1/0/2] dhcp snooping binding record

[SwitchB-Ten-GigabitEthernet1/0/2] quit

Verifying the configuration

The DHCP client can obtain an IP address and other configuration parameters only from the authorized

DHCP server. You can display the DHCP snooping entry recorded for the client with the display dhcp
snooping binding command.

Option 82 configuration example

Network requirements

As shown in

Figure 28

, enable DHCP snooping and configure Option 82 on Switch B as follows:

Configure the handling strategy for DHCP requests that contain Option 82 as replace.

On Ten-GigabitEthernet 1/0/2, configure the padding content for the Circuit ID sub-option as
company001 and for the Remote ID sub-option as device001.

On Ten-GigabitEthernet 1/0/3, for the Circuit ID sub-option, configure the padding format as
verbose, access node identifier as sysname, and code type as ascii. For the Remote ID sub-option,

configure the padding content as device001.

 

This manual is related to the following products: