F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100
185
[Firewall] dhcp server ip-pool 2
[Firewall-dhcp-pool-2] network 10.1.1.128 mask 255.255.255.128
[Firewall-dhcp-pool-2] expired day 5
[Firewall-dhcp-pool-2] gateway-list 10.1.1.254
1231BVerifying the configuration
A f t e r t h e p r e c e d i n g c o n f i g u r a t i o n i s c o m p l e t e , c l i e n t s o n n e t w o r k s 10 .1.1. 0 / 2 5 a n d 10 .1.1.12 8 / 2 5 c a n
obtain correct IP addresses 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.
509BSelf-defined option configuration example
1232BNetwork requirements
As shown in 2390HFigure 110, the DHCP client (Router) obtains its IP address and PXE server addresses from the
DHCP server (Firewall). The IP address belongs to subnet 10.1.1.0/24. The PXE server addresses are
1.2.3.4 and 2.2.2.2.
The DHCP server assigns PXE server addresses to DHCP clients through Option 43, a self-defined option.
The format of Option 43 and that of the PXE server address sub-option are shown in
2391HFigure 84 and 2392HFigure
86, respectively. The value of Option 43 configured on the DHCP server in this example is 80 0B 00 00
02 01 02 03 04 02 02 02 02. The number 80 is the value of the sub-option type. The number 0B is the
value of the sub-option length. The numbers 00 00 are the value of the PXE server type. The number 02
indicates the number of servers. The numbers 01 02 03 04 02 02 02 02 indicate that the PXE server
addresses are 1.2.3.4 and 2.2.2.2.
Figure 110 Network diagram
1233BConfiguration procedure
1. Specify IP address for interface GigabitEthernet 0/1. (Details not shown.)
2. Configure the DHCP server:
# Enable DHCP.
<Firewall> system-view
[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
# Configure DHCP address pool 0.
[Firewall] dhcp server ip-pool 0
[Firewall-dhcp-pool-0] network 10.1.1.0 mask 255.255.255.0
[Firewall-dhcp-pool-0] option 43 hex 80 0B 00 00 02 01 02 03 04 02 02 02 02