The ip address bootp-alloc command enables the BOOTP client function on an interface.
The undo ip address bootp-alloc command disables the BOOTP client function from an interface.
By default, the BOOTP client function is disabled on an interface.
Parameter |
Description |
Value |
---|---|---|
unicast |
Indicates that the client requests the server to unicast response packets to the client. |
- |
Usage Scenario
DHCP is developed based on the BOOTP protocol. The device supports both DHCP and BOOTP and allows hosts to obtain IP addresses by BOOTP.
To obtain an IP address, the BOOTP client sends a BOOTP Request message to the server. When the server receives the BOOTP Request message, it sends a BOOTP response message to the BOOTP client. The BOOTP client obtains the assigned IP address from the response message.
Precautions
Interfaces of the Switch can have IP addresses statically configured using the ip address command or dynamically obtain IP addresses using the ip address bootp-alloc command. A static IP address takes precedence over a dynamic IP address. If the interface has dynamically obtained an IP address after the ip address bootp-alloc command is executed, running the undo ip address command deletes the IP address and the ip address bootp-alloc command. If the interface does not obtain an IP address after the ip address bootp-alloc command is executed, running the undo ip address command does not delete the ip address bootp-alloc command.
# Enable the BOOTP client function on VLANIF100 to obtain an IP address.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address bootp-alloc
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ip address bootp-alloc