Dhcp Option Customization Configuration Example - HPE FlexNetwork MSR Series Comware 7 Layer 3 - Ip Services Configuration Manuals

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 (Router 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 custom
option. The formats of Option 43 and PXE server address sub-option are shown in
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
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
29, DHCP clients obtain IP addresses and PXE server addresses from the DHCP
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.
69
Type
Auto(C)
Auto(C)
Figure 19

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FlexNetwork MSR Series and is the answer not in the manual?

Table of Contents