Network requirements, Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual
Page 69
11
# Enable the DHCP relay agent on GigabitEthernet 0/1.
[DeviceA] interface gigabitethernet 0/1
[DeviceA-GigabitEthernet0/1] dhcp select relay
# Correlate GigabitEthernet 0/1 to DHCP server group 1.
[DeviceA-GigabitEthernet0/1] dhcp relay server-select 1
After the preceding configuration is complete, DHCP clients can obtain IP addresses and other network
parameters through the DHCP relay agent from the DHCP server. You can use the display dhcp relay
security command to view bindings of DHCP relay agents, and use the display dhcp relay statistics
command to view statistics of DHCP packets forwarded by DHCP relay agents.
NOTE:
•
Performing configuration on the DHCP server is also required to guarantee the client-server
communication via the DHCP relay agent. Refer to
DHCP Server Configuration Examples
for DHCP
server configuration information.
•
Because the DHCP relay agent and server are on different subnets, you need to configure a static route
or dynamic routing protocol to make them reachable to each other.
DHCP Relay Agent Option 82 Support Configuration Example
Network requirements
•
As shown in
, enable Option 82 on the DHCP relay agent (Device A).
•
Configure the handling strategy for DHCP requests containing Option 82 as replace.
•
Configure the padding content for the circuit ID sub-option as company001 and for the remote ID
sub-option as device001.
•
Device A forwards DHCP requests to the DHCP server (Device B) after replacing Option 82 in the
requests, so that the DHCP clients can obtain IP addresses.
Configuration procedure
# Specify IP addresses for the interfaces (omitted).
# Enable DHCP.
[DeviceA] dhcp enable
# Add DHCP server 10.1.1.1 into DHCP server group 1.
[DeviceA] dhcp relay server-group 1 ip 10.1.1.1
# Enable the DHCP relay agent on GigabitEthernet 0/1.
[DeviceA] interface gigabitethernet 0/1
[DeviceA-GigabitEthernet0/1] dhcp select relay
# Correlate GigabitEthernet 0/1 to DHCP server group 1.
[DeviceA-GigabitEthernet0/1] dhcp relay server-select 1
# Enable the DHCP relay agent to support Option 82, and perform Option 82-related configurations.
[DeviceA-GigabitEthernet0/1] dhcp relay information enable
[DeviceA-GigabitEthernet0/1] dhcp relay information strategy replace
[DeviceA-GigabitEthernet0/1] dhcp relay information circuit-id string company001
[DeviceA-GigabitEthernet0/1] dhcp relay information remote-id string device001