Dhcp Option Customization Configuration Example - HP 6125XLG Layer 3-Ip Services Configuration Manual

Blade switch
Table of Contents

Advertisement

Figure 20 Network diagram
DHCP client
Configuration procedure
# Enable DHCP
<SwitchA> system-view
[SwitchA] dhcp enable
# Configure the primary and secondary IP addresses of VLAN interface 10, enable the DHCP server on
the interface.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ip address 10.1.1.1 24
[SwitchA-Vlan-interface10] ip address 10.1.2.1 24 sub
[SwitchA-Vlan-interface10] dhcp select server
[SwitchA-Vlan-interface10] quit
# Create DHCP address pool aa, specify the address range of the primary and secondary subnets,
specify the gateway address.
[SwitchA] dhcp server ip-pool aa
[SwitchA-dhcp-pool-aa] network 10.1.1.0 mask 255.255.255.0
[SwitchA-dhcp-pool-aa] gateway-list 10.1.1.254
[SwitchA-dhcp-pool-aa] network 10.1.2.0 mask 255.255.255.0 secondary
[SwitchA-dhcp-pool-aa-secondary] gateway-list 10.1.2.254
[SwitchA-dhcp-pool-aa-secondary] quit
[SwitchA-dhcp-pool-aa]
Verifying the configuration
After the preceding configuration is complete, the DHCP server will assign to clients IP addresses and
network configuration parameters from the secondary subnet in the address pool when no address is
available from the primary subnet. You can use the display dhcp server ip-in-use command to display
the primary and secondary subnet IP addresses the DHCP server has assigned.

DHCP option customization configuration example

Network requirements
As shown in
the DHCP server (Switch A). 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.
Switch A
DHCP server
Vlan-int10
10.1.1.1/24
10.1.2.1/24 sub
...
DHCP client
DHCP client
Figure
21, the DHCP client (Switch B) obtains an IP address and PXE server addresses from
Gateway
52

Advertisement

Table of Contents
loading

Table of Contents