Dhcp Option Customization Configuration Example - HPE FlexNetwork HSR6800 Configuration Manual

Comware 7 layer 3, ip services
Hide thumbs Also See for FlexNetwork HSR6800:
Table of Contents

Advertisement

Verifying the configuration
# Verify that the DHCP server assigns clients IP addresses and gateway address from the secondary
subnet when no assignable address is available from the primary subnet. (Details not shown.)
# On the DHCP server, display IP addresses assigned to the clients. The following is part of the
command output.
[RouterA] display dhcp server ip-in-use
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
18. 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 26 Network diagram
Configuration procedure
1.
Specify an IP address for interface GigabitEthernet 2/1/1. (Details not shown.)
2.
Configure the DHCP server:
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
26, 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.
60
Type
Auto(C)
Auto(C)
Figure 16

Advertisement

Table of Contents
loading

Table of Contents