beautypg.com

3 displaying dhcp snooping, 4 configuration example, I. network requirements – H3C Technologies H3C S3100 Series Switches User Manual

Page 360: Ii. configuration procedure

background image

Operation Manual – DLDP

H3C S3100-52P Ethernet Switch

Chapter 2 DHCP Snooping Configuration

2-3

Operation

Command

Description

Set the port

connected to a

DHCP server to a

trusted port

dhcp-snooping trust

Optional
By default, all ports of a

switch are untrusted ports.

Note:

When you need to enable DHCP snooping on the switches in a fabric state, configure
the fabric ports on all devices to be trusted ports to ensure that the users connected to
each device can obtain IP addresses.

2.3 Displaying DHCP Snooping

After the above configurations, you can verify the configurations by executing the
display

command in any view.

Table 2-2

Display DHCP snooping

Operation

Command

Description

Display the user IP-MAC address

mapping entries recorded by the

DHCP snooping function

display
dhcp-snooping

[ unit

unit-id

]

Display the (enabled/disabled)

state of the DHCP snooping

function and the trusted ports

display
dhcp-snooping trust

You can execute the
display

command in

any view

2.4 Configuration Example

I. Network requirements

As shown in Figure 2-1, the Ethernet1/0/1 port of Switch A ( S3100-52P ) is connected
to Switch B (acting as a DHCP relay). A network segment containing some DHCP
clients is connected to the Ethernet1/0/2 port of Switch A.

z

Enable the DHCP snooping function on Switch A.

z

Set the Ethernet1/0/1 port of Switch A to a trusted port.

II. Configuration procedure

# Enter system view.

system-view

# Enable the DHCP snooping function.