R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

49
Configuration procedure
1. Configure the IP address of GigabitEthernet 3/0/1 on Router A:
<RouterA> system-view
[RouterA] interface gigabitethernet 3/0/1
[RouterA-GigabitEthernet3/0/1] ip address 10.1.1.1 25
[RouterA-GigabitEthernet3/0/1] quit
2. Configure the DHCP server:
# Enable DHCP.
[RouterA] dhcp enable
# Create DHCP address pool 0 and configure a static binding, DNS server, and gateway in it.
[RouterA] dhcp server ip-pool 0
[RouterA-dhcp-pool-0] static-bind ip-address 10.1.1.5.25
[RouterA-dhcp-pool-0] static-bind client-identifier
3030-3233-2e38-3961-342e-3061-3162-2d47-6967-6162-6974-4574-6865-726e-6574-322f-3
02f-392e-31
[RouterA-dhcp-pool-0] dns-list 10.1.1.2
[RouterA-dhcp-pool-0] gateway-list 10.1.1.126
[RouterA-dhcp-pool-0] quit
Dynamic IP address assignment configuration example
Network requirements
As shown in Figure 25, 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 / 2 5 .
The IP addresses of GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 on Router A are 10.1.1.1/25 and
10 .1.1.12 9 / 2 5 r e s p e c t i v e l y.
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 5 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 / 2 4 . S u b n e t 10 .1.1. 0 / 2 5 a n d 10 .1.1.12 8 / 2 5 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 / 24 .