Huawei DHCP Relay Configuration Example

Example for Configuring DHCP Relay
Networking requirements
The DHCP server should be configured with an IP address pool of 10.100.0.0/16 network segment, the DNS server address is 10.100.1.2/16, the NetBIOS server address is 10.100.1.3/16, the egress gateway address is 10.100.1.4, and the DHCP server should be configured with Route to network segment 10.100.0.0/16.
 
Figure 1  Networking diagram for configuring DHCP relay 
 

 

 
 
Configuration ideas
The configuration roadmap of the DHCP server is as follows:
1. Enable the DHCP function of the DHCP relay server S-switch
2. Configure the address of the interface VLANIF2
3. Configure the IP address and relay address on the interface VLANIF1 and enable the DHCP relay function of the interface
4. Configure the route from the DHCP server Router to the network segment 10.100.0.0/16
5. Enable the DHCP function of the Router
6. Configure the client under interface GE0/0/1 of the Router to obtain an IP address from the global address pool
7. Configure the global address pool on the Router
data preparation
To complete this configuration example, you need to prepare the following data:
The IP address of the interface to implement the DHCP relay function
· The address of the DHCP server
Configuration steps
1. Configure on DHCP relay
# Enable DHCP service.
<Quidway>  system-view
[Quidway]  sysname S-switch
[S-switch]  dhcp enable
# Configure the address of interface VLANIF2.
[S-switch]  interface vlanif 2
[S-switch-Vlanif2]  ip address 202.40.1.1 255.255.0.0
[S-switch-Vlanif2]  quit
# Enter the interface to implement the DHCP relay function, and configure the IP address, subnet mask, and DHCP relay address for it.
[S-switch]  interface vlanif 1
[S-switch-Vlanif1]  ip address 10.100.1.1 255.255.0.0
[S-switch-Vlanif1]  ip relay address 202.40.1.2
[S-switch-Vlanif1]  dhcp select relay
[S-switch-Vlanif1]  quit
2. Configure on the DHCP server
# Configure the route from the Router to VLANIF1 on the interface connecting the S-switch to the client.
<Quidway>  system-view
[Quidway]  sysname Router
[Router]  ip route-static 10.100.0.0 255.255.0.0 202.40.1.1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022688&siteId=291194637