4-3
DHCP/BOOTP Client Configuration Example
DHCP Client Configuration Example
Network requirements
Using DHCP, VLAN-interface 1 of Switch A is connected to the LAN to obtain an IP address from the
DHCP server.
Network diagram
Figure 4-1 A DHCP network
WINS serverClient
Switch A
Client
DNS server
DHCP server
Vlan-int1
Configuration procedure
The following describes only the configuration on Switch A serving as a DHCP client.
# Configure VLAN-interface 1 to dynamically obtain an IP address by using DHCP.
<SwitchA> system-view
[SwitchA] interface Vlan-interface 1
[SwitchA-Vlan-interface1] ip address dhcp-alloc
BOOTP Client Configuration Example
Network requirement
Switch A’s port belonging to VLAN1 is connected to the LAN. VLAN-interface 1 obtains an IP address
from the DHCP server by using BOOTP.
Network diagram
See Figure 4-1.
Configuration procedure
The following describes only the configuration on Switch A serving as a client.
# Configure VLAN-interface 1 to dynamically obtain an IP address from the DHCP server.
<SwitchA> system-view
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] ip address bootp-alloc