R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

43
Dynamic IP address assignment configuration example
Network requirements
As shown in Figure 23, the DHCP server (Router A) assigns IP address to clients on subnet 10.1.1.0/24,
w h i c h i s s u b n e t t e d i n t o 10 .1.1. 0 / 25 a n d 10 .1.1.12 8 / 25 .
The IP addresses of Ethernet 1/1 and Ethernet 1/2 on Router A are 10.1.1.1/25 and 10.1.1.129/25
respectively.
In subnet 10.1.1.0/25, the address lease duration is ten days and twelve hours, the domain name suffix
is aabbcc.com, the DNS server address is 10.1.1.2/25, the WINS server address is 10.1.1.4/25, and the
gateway address is 10.1.1.126/25.
In the subnet 10.1.1.128/25, the address lease duration is five days, the domain name suffix is
aabbcc.com, the DNS server address is 10.1.1.2/25, and the gateway address is 10.1.1.254/25. There
is no WINS server address.
The domain name suffix and DNS server address on subnets 10.1.1.0/25 and 10.1.1.128/25 are the
same. Therefore, the domain name suffix and DNS server address need to be configured only for subnet
10 .1.1. 0 / 24 . S u b n e t 10 .1.1. 0 / 2 5 a n d 10 .1.1.12 8 / 25 c a n i n h e r i t t h e c o n f i g u r a t i o n o f s u b n e t 10 .1.1. 0 / 2 4 .
Figure 23 Network diagram
Configuration procedure
1. Specify IP addresses for interfaces. (Details not shown.)
2. Configure the DHCP server:
# Enable DHCP.
<RouterA> system-view
[RouterA] dhcp enable
# Enable the DHCP server on Ethernet 1/1 and Ethernet 1/2.
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] dhcp select server global-pool
[RouterA-Ethernet1/1] quit
[RouterA] interface ethernet 1/2
[RouterA-Ethernet1/2] dhcp select server global-pool
[RouterA-Ethernet1/2] quit
# Exclude IP addresses from dynamic allocation (addresses of the DNS server, WINS server, and
gateways).
WINS server
10.1.1.4/25
Client
Router B
Client
DNS server
10.1.1.2/25
Router A
DHCP server
Eth1/2
10.1.1.129/25
Eth1/1
10.1.1.1/25
Client Client
Client Client
Eth1/1
Gateway A
10.1.1.126/25
Gateway B
10.1.1.254/25