EasyManua.ls Logo

HP 6125XLG - DHCP Option Customization Configuration Example

HP 6125XLG
284 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
52
Figure 20 Network diagram
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 Figure 21, the DHCP client (Switch B) obtains an IP address and PXE server addresses from
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.
...
GatewayDHCP client DHCP client DHCP client
Switch A
DHCP server
Vlan-int10
10.1.1.1/24
10.1.2.1/24 sub

Table of Contents

Other manuals for HP 6125XLG

Related product manuals