69
IP address Client identifier/ Lease expiration Type
Hardware address
10.1.1.2 0031-3865-392e-6262- Jan 14 22:25:03 2015 Auto(C)
3363-2e30-3230-352d-
4745-302f-30
10.1.2.2 3030-3030-2e30-3030- Jan 14 22:25:03 2015 Auto(C)
662e-3030-3033-2d45-
7568-6572-1e
DHCP option customization configuration example
Network requirements
As shown in Figure 29, DHCP clients obtain IP addresses and PXE server addresses from the DHCP
server (Router A). The subnet for address allocation is 10.1.1.0/24.
Configure the address allocation scheme as follows:
Assign PXE addresses To clients
2.3.4.5 and 3.3.3.3
The hardware address in the request is six bytes long and
begins with
aabb-aabb
.
1.2.3.4 and 2.2.2.2. Other clients.
The DHCP server assigns PXE server addresses to DHCP clients through Option 43, a custom
option. The formats of Option 43 and PXE server address sub-option are shown in Figure 19
and Figure 21. For example
, the value of Option 43 configured in the DHCP address pool 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 29 Network diagram
Configuration procedure
1. Specify an IP address for interface GigabitEthernet 1/0/1. (Details not shown.)
2. Configure the DHCP server:
# Enable DHCP.
<RouterA> system-view
[RouterA] dhcp enable
# Create DHCP user class ss and configure a match rule to match DHCP requests in which the
hardware address is six bytes long and begins with aabb-aabb.
[RouterA] dhcp class ss