5-5
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 5-2
A DHCP network
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
Displaying DHCP/BOOTP Client Configuration
Follow these steps to displaying DHCP/BOOTP Client:
Operation
Command
Description
Display related information on a
DHCP client
display dhcp client
[
verbose
]
Display related information on a
BOOTP client
display bootp client
[
interface
Vlan-interface
vlan-id
]
Optional
Available in any
view