6.9.3 Example for Configuring a DHCP Server and a DHCP Relay
Agent When the DHCP Server and Clients Are on Different
Network Segments
This section describes how to configure a DHCP server and a DHCP relay agent when the DHCP
clients and DHCP server are on different network segments.
Networking Requirements
As shown in Figure 6-7, multiple offices of a company are in different commercial buildings,
and the hosts in one office are on the same VLAN. RouterB that functions as a DHCP server is
required to assign IP addresses to hosts in different offices.
Hosts in Office A of the company are on the network segment 20.20.20.0/24, and the DHCP
server is on the network segment 100.10.10.0/24. RouterA must be configured to function as a
DHCP relay agent to forward DHCP packets so that the DHCP clients can obtain IP addresses
and other configurations from the DHCP server.
On RouterA, the public address of Ethernet0/0/8 is 100.10.20.1/24 and the interface address of
RouterA connected to the carrier device is 100.10.20.2/24.
On RouterB, the public address of Ethernet3/0/0 is 100.10.10.1/24 and the interface address of
RouterB connected to the carrier device is 100.10.10.2/24.
Figure 6-7 Networking diagram for configuring the DHCP relay
RouterA
DHCP Server
Internet
DHCP
Client
DHCP
Client
DHCP
Client
VLANIF100
20.20.20.1/24
VLAN100
Etherent2/0/0
DHCP Relay
RouterB
100.10.10.1/24
Etherent3/0/0
OFFICE A
Etherent0/0/8
100.10.20.1/24
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service 6 DHCP Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
164