Configuration procedure, Verifying the configuration – H3C Technologies H3C S5560 Series Switches User Manual
Page 65

50
Figure 18 Network diagram
Configuration procedure
1.
Specify IP addresses for interfaces on DHCP server and DHCP relay agent. (Details not shown.)
2.
Configure DHCP services:
# Enable DHCP and configure the DHCP server to handle Option 82.
[SwitchB] dhcp enable
[SwitchB] dhcp server relay information enable
# Enable DHCP server on VLAN-interface10.
[SwitchB] interface vlan-interface 10
[SwitchB-Vlan-interface10] dhcp select server
[SwitchB-Vlan-interface10] quit
# Create DHCP user class tt and configure a match rule to match client requests containing Option
82.
[SwitchB] dhcp class tt
[SwitchB-dhcp-class-tt] if-match rule 1 option 82
[SwitchB-dhcp-class-tt] quit
# Create DHCP address pool aa.
[SwitchB] dhcp server ip-pool aa
# Specify the subnet for dynamic allocation.
[SwitchB-dhcp-pool-aa] network 10.10.1.0 mask 255.255.255.0
# Specify the address range for dynamic allocation.
[SwitchB-dhcp-pool-aa] address range 10.10.1.2 10.10.1.100
# Specify the address range for user class tt.
[SwitchB-dhcp-pool-aa] class tt range 10.10.1.2 10.10.1.10
# Specify the gateway and DNS server address.
[SwitchB-dhcp-pool-aa] gateway-list 10.10.1.254
[SwitchB-dhcp-pool-aa] dns-list 10.10.1.20
Verifying the configuration
# Verify that clients matching the user class can obtain IP addresses in the specified range and all other
configuration parameters from the DHCP server. (Details not shown.)
# Display the IP address assigned by the DHCP server.