F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100

183
2. Configure the DHCP server:
# Enable DHCP.
[Firewall] dhcp enable
# Enable the DHCP server on GigabitEthernet 0/1.
[Firewall] interface gigabitethernet 0/1
[Firewall-GigabitEthernet0/1] dhcp select server global-pool
[Firewall-GigabitEthernet0/1] quit
# Create DHCP address pool 0, and configure a static binding, DNS server and gateway in it.
[Firewall] dhcp server ip-pool 0
[Firewall-dhcp-pool-0] static-bind ip-address 10.1.1.5.25
[Firewall-dhcp-pool-0] static-bind client-identifier
3030-3066-2e65-3230-302e-3030-3032-2d45-7468-6572-6e65-7430-2f30
[Firewall-dhcp-pool-0] dns-list 10.1.1.2
[Firewall-dhcp-pool-0] gateway-list 10.1.1.126
[Firewall-dhcp-pool-0] quit
# Create DHCP address pool 1, and configure a static binding, DNS server and gateway in it.
[Firewall] dhcp server ip-pool 1
[Firewall-dhcp-pool-1] static-bind ip-address 10.1.1.6.25
[Firewall-dhcp-pool-1] static-bind mac-address 000f-e200-01c0
[Firewall-dhcp-pool-1] dns-list 10.1.1.2
[Firewall-dhcp-pool-1] gateway-list 10.1.1.126
1228BVerifying the configuration
After the preceding configuration is complete, Router A can obtain IP address 10.1.1.5 and other network
parameters, and Router B can obtain IP address 10.1.1.6 and other network parameters from Firewall.
You can use the display dhcp server ip-in-use command on the DHCP server to view the IP addresses
assigned to the clients.
508BDynamic IP address allocation configuration example
1229BNetwork requirements
As shown in 2389HFigure 109, the DHCP server (Firewall) 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 / 2 5 a n d 10 .1.1.12 8 / 2 5 .
The IP addresses of GigabitEthernet 0/1 and GigabitEthernet 0/2 on Firewall are 10.1.1.1/25 and
10 .1.1.12 9 / 25 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 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 / 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 .