Dhcp Option Customization Configuration Example - HPE FlexNetwork 10500 Series Configuration Manual

Layer 3-ip services
Table of Contents

Advertisement

IP address
10.1.1.2
10.1.2.2

DHCP option customization configuration example

Network requirements
As shown in
server (Switch A). The subnet for address allocation is 10.1.1.0/24.
Configure the address allocation scheme as follows:
Assign PXE addresses
2.3.4.5 and 3.3.3.3
1.2.3.4 and 2.2.2.2.
The DHCP server assigns PXE server addresses to DHCP clients through Option 43, a customized
option. The format of Option 43 and that of the PXE server address sub-option are shown in
15
and
Figure
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 25 Network diagram
Vlan-int2
10.1.1.1/24
Switch A
DHCP server
Configuration procedure
1.
Specify IP addresses for the interfaces. (Details not shown.)
2.
Configure the DHCP server:
# Enable DHCP.
<SwitchA> system-view
[SwitchA] 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.
[SwitchA] dhcp class ss
Client identifier/
Hardware address
0031-3865-392e-6262-
3363-2e30-3230-352d-
4745-302f-30
3030-3030-2e30-3030-
662e-3030-3033-2d45-
7568-6572-1e
Figure
25, DHCP clients obtain IP addresses and PXE server addresses from the DHCP
17. For example, the value of Option 43 configured in the DHCP address pool is 80 0B
Vlan-int2
Switch B
DHCP client
Lease expiration
Jan 14 22:25:03 2015
Jan 14 22:25:03 2015
To clients
The hardware address in the request is six bytes long and
begins with aabb-aabb.
Other clients.
64
Type
Auto(C)
Auto(C)
Figure

Advertisement

Table of Contents
loading

Table of Contents