Dhcp Relay Agent Configuration Examples; Dhcp Relay Agent Configuration Example - HPE FlexNetwork 10500 Series Configuration Manual

Layer 3-ip services
Table of Contents

Advertisement

DHCP relay agent configuration examples

DHCP relay agent configuration example

Network requirements
As shown in
DHCP clients to obtain IP addresses and other configuration parameters from the DHCP server on
another subnet.
The DHCP relay agent and server are on different subnets. Configure static or dynamic routing to
make them reachable to each other.
Perform the configuration on the DHCP server to guarantee the client-server communication. For
DHCP server configuration information, see
Figure 28 Network diagram
DHCP client
DHCP client
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable DHCP.
<SwitchA> system-view
[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
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.
[SwitchA] display dhcp relay statistics
# Display relay entries if you have enabled relay entry recording on the DHCP relay agent.
[SwitchA] display dhcp relay client-information
Figure
28, configure the DHCP relay agent on Switch A. The DHCP relay agent enables
DHCP client
Vlan-int10
10.10.1.1/24
Switch A
DHCP relay agent
DHCP client
"DHCP server configuration
Vlan-int20
10.1.1.2/24
Vlan-int20
10.1.1.1/24
Switch B
DHCP server
81
examples."

Advertisement

Table of Contents
loading

Table of Contents