Applying an address pool on an interface, Configuring ip address conflict detection, Option 82 configuration example – H3C Technologies H3C S12500 Series Switches User Manual
Page 70
57
Figure 22 Network diagram
344B
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable DHCP.
[SwitchA] dhcp enable
# Enable the DHCP relay agent on VLAN-interface 10.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] dhcp select relay
# Specify the IP address of the DHCP server on the relay agent.
[SwitchA-Vlan-interface10] dhcp relay server-address 10.1.1.1
After the preceding configuration is complete, DHCP clients can obtain IP addresses and other network
parameters from the DHCP server through the DHCP relay agent. You can use the display dhcp relay
statistics command to view the statistics of DHCP packets forwarded by the DHCP relay agent. If you
enable relay entry record on the DHCP relay agent with the dhcp relay client-information record
command, you can use the display dhcp relay client-information command to view relay entries.
218B
Option 82 configuration example
345B
Network requirements
As shown in
710H
Figure 22
, the DHCP relay agent (Switch A) replaces Option 82 in DHCP requests before
forwarding them to the DHCP server (Switch B).
•
The circuit ID sub-option is company001.
•
The remote ID sub-option is device001.
To use Option 82, you must also enable the DHCP server to handle Option 82.
346B
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable DHCP.
[SwitchA] dhcp enable
# Enable the DHCP relay agent on VLAN-interface 10.
Switch B
DHCP server
Switch A
DHCP relay agent
DHCP client
DHCP client
DHCP client
DHCP client
Vlan-int20
10.1.1.2/24
Vlan-int10
10.10.1.1/24
Vlan-int20
10.1.1.1/24
- H3C SR8800 H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S6800 Series Switches H3C S3100V2 Series Switches H3C S12500-X Series Switches H3C S9800 Series Switches