Dhcp User Class Configuration Example - H3C MSR 2600 Configuration Manual

Layer 3
Hide thumbs Also See for MSR 2600:
Table of Contents

Advertisement

# Configure DHCP address pool 1 to assign IP addresses and other configuration parameters to
clients in subnet 10.1.1.0/25.
[RouterA] dhcp server ip-pool 1
[RouterA-dhcp-pool-1] network 10.1.1.0 mask 255.255.255.128
[RouterA-dhcp-pool-1] expired day 10 hour 12
[RouterA-dhcp-pool-1] domain-name aabbcc.com
[RouterA-dhcp-pool-1] dns-list 10.1.1.2
[RouterA-dhcp-pool-1] gateway-list 10.1.1.126
[RouterA-dhcp-pool-1] nbns-list 10.1.1.4
[RouterA-dhcp-pool-1] quit
# Configure DHCP address pool 2 to assign IP addresses and other configuration parameters to
clients in subnet 10.1.1.128/25.
[RouterA] dhcp server ip-pool 2
[RouterA-dhcp-pool-2] network 10.1.1.128 mask 255.255.255.128
[RouterA-dhcp-pool-2] expired day 5
[RouterA-dhcp-pool-2] domain-name aabbcc.com
[RouterA-dhcp-pool-2] dns-list 10.1.1.2
[RouterA-dhcp-pool-2] gateway-list 10.1.1.254
Verifying the configuration
After the preceding configuration is complete, clients on networks 10.1.1.0/25 and 10.1.1.128/25 can
obtain correct IP addresses and other network parameters from Router A. You can use the display dhcp
server ip-in-use command on the DHCP server to view the IP addresses assigned to the clients.

DHCP user class configuration example

Network requirements
As shown in
the DHCP server. Enable Router A to handle Option 82 so that it can add Option 82 in the DHCP
requests from the DHCP clients and convey the packets to the DHCP server.
The DHCP server (Router B) assigns IP addresses and other configuration parameters to the DHCP
clients. If the DHCP requests contain Option 82, the server assigns IP addresses in the range of
10.10.1.2 to 10.10.1.10 to the clients.
Router B assigns the DNS server address 10.10.1.20/24 and the gateway address 10.10.1.255/24
for clients in subnet 10.10.1.0/24.
Figure 18 Network diagram
Figure
18, the DHCP relay agent (Router A) forwards the packets from DHCP clients to
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents