beautypg.com

Configuration procedure – H3C Technologies H3C S5120 Series Switches User Manual

Page 730

background image

1-5

For detailed configuration of a DHCP server, refer to DHCP Configuration in the IP Service Volume.

Figure 1-2 Network diagram for configuring dynamic binding function

Configuration procedure

1) Configure Switch A

# Configure dynamic binding function on port GigabitEthernet 1/0/1 to filter packets based on both the

source IP address and MAC address.

system-view

[SwitchA] interface gigabitethernet1/0/1

[SwitchA-GigabitEthernet1/0/1] ip check source ip-address mac-address

[SwitchA-GigabitEthernet1/0/1] quit

# Enable DHCP snooping.

[SwitchA] dhcp-snooping

# Configure the port connecting to the DHCP server as a trusted port.

[SwitchA] interface gigabitethernet 1/0/2

[SwitchA-GigabitEthernet1/0/2] dhcp-snooping trust

[SwitchA-GigabitEthernet1/0/2] quit

2) Verify the configuration

# Display that the dynamic binding function is configured successfully on port GigabitEthernet 1/0/1.

[SwitchA] interface gigabitethernet 1/0/1

[SwitchA-GigabitEthernet1/0/1] display this

#

interface GigabitEthernet1/0/1

port link-mode bridge

ip check source ip-address mac-address

#

return

# Display the dynamic binding entries that port GigabitEthernet 1/0/1 has obtained from DHCP

snooping.

[SwitchA-GigabitEthernet1/0/1] display ip check source

Total entries found: 1

MAC IP Vlan Port Status

0001-0203-0406 192.168.0.1 1 GigabitEthernet 1/0/1 DHCP-SNP

# Display the dynamic entries of DHCP snooping and check it is identical with the dynamic entries that

port GigabitEthernet 1/0/1 has obtained.