2-19
[SwitchA-dhcp-pool-1] network 10.1.1.0 mask 255.255.255.128
[SwitchA-dhcp-pool-1] gateway-list 10.1.1.126
[SwitchA-dhcp-pool-1] expired day 10 hour 12
[SwitchA-dhcp-pool-1] nbns-list 10.1.1.4
[SwitchA-dhcp-pool-1] quit
# Configure DHCP address pool 2 (address range, gateway, and lease duration).
[SwitchA] dhcp server ip-pool 2
[SwitchA-dhcp-pool-2] network 10.1.1.128 mask 255.255.255.128
[SwitchA-dhcp-pool-2] expired day 5
[SwitchA-dhcp-pool-2] gateway-list 10.1.1.254
Self-Defined Option Configuration Example
Network requirements
z
As shown in
Figure 2-3
, the DHCP client obtains an IP address and PXE server addresses from the
DHCP server (Switch).
z
The IP address that the DHCP client obtains belongs to network segment 10.1.1.0/24.
z
The PXE server addresses that the DHCP client obtains are 1.2.3.4 and 2.2.2.2.
z
The DHCP server assigns PXE server addresses to DHCP clients through Option 43, a
self-defined option. The format of Option 43 and that of the PXE server address list are shown in
Figure 1-5
and
Figure 1-7
, respectively. The value of Option 43 configured on the DHCP server in
this example 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 2-3
Network diagram for self-defined option configuration
Switch
DHCP server
Device
DHCP client
Vlan-int2
10.1.1.1/24
Vlan-int2
Configuration procedure
Specify IP addresses for the interfaces (omitted).
Configure the DHCP server
# Enable DHCP.
<Switch> system-view
[Switch] dhcp enable
# Configure DHCP address pool 0.
[Switch] dhcp server ip-pool 0
[Switch-dhcp-pool-0] network 10.1.1.0 mask 255.255.255.0
[Switch-dhcp-pool-0] option 43 hex 80 0B 00 00 02 01 02 03 04 02 02 02 02
Содержание 4500G PWR 24-Port
Страница 200: ...1 5 ProviderB GigabitEthernet1 0 2 undo stp enable ProviderB GigabitEthernet1 0 2 bpdu tunnel dot1q stp ...
Страница 252: ...1 7 Clearing ARP entries from the ARP table may cause communication failures ...
Страница 362: ...i Table of Contents 1 Dual Stack Configuration 1 1 Dual Stack Overview 1 1 Configuring Dual Stack 1 1 ...
Страница 407: ...1 8 1 1 ms 1 ms 1 ms 1 1 6 1 2 1 ms 1 ms 1 ms 1 1 4 1 3 1 ms 1 ms 1 ms 1 1 2 2 Trace complete ...
Страница 786: ...1 16 3 In the case of PIM SM use the display current configuration command to check the BSR and RP information ...
Страница 1387: ...1 23 ...
Страница 1443: ...i Table of Contents 1 URPF Configuration 1 1 URPF Overview 1 1 What is URPF 1 1 How URPF Works 1 1 Configuring URPF 1 2 ...
Страница 1720: ...ii Single Device Upgrade 3 4 IRF System Upgrade 3 5 ...