Dhcp Relay Agent Configuration Examples; Example: Configuring Basic Dhcp Relay Agent - H3C SR8800-F Configuration Manual

Comware 7 user access
Hide thumbs Also See for SR8800-F:
Table of Contents

Advertisement

DHCP relay agent configuration examples

Example: Configuring basic DHCP relay agent

Network configuration
As shown in
DHCP clients to obtain IP addresses and other configuration parameters from the DHCP server on
another subnet.
Because the DHCP relay agent and server are on different subnets, you need to configure static or
dynamic routing to make them reachable to each other.
DHCP server configuration is also required to guarantee the client-server communication through
the DHCP relay agent. For DHCP server configuration information, see
examples."
Figure 41 Network diagram
DHCP client
DHCP client
Procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable DHCP.
<RouterA> system-view
[RouterA] dhcp enable
# Enable the DHCP relay agent on GigabitEthernet 1/0/1.
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] dhcp select relay
# Specify the IP address of the DHCP server on the relay agent.
[RouterA-GigabitEthernet1/0/1] dhcp relay server-address 10.1.1.1
Verifying the configuration
# Verify that DHCP clients can obtain IP addresses and all other network parameters from the DHCP
server through the DHCP relay agent. (Details not shown.)
# Display the statistics of DHCP packets forwarded by the DHCP relay agent.
[RouterA] display dhcp relay statistics
# Display relay entries if you have enabled relay entry recording on the DHCP relay agent.
[RouterA] display dhcp relay client-information
Figure
41, configure the DHCP relay agent on Router A. The DHCP relay agent enables
DHCP client
GE1/0/1
10.10.1.1/24
Router A
DHCP relay agent
DHCP client
GE1/0/2
10.1.1.2/24
GE1/0/1
10.1.1.1/24
Router B
DHCP server
148
"DHCP server configuration

Advertisement

Table of Contents
loading

Table of Contents