Step
2.
Set the DSCP value for DHCP
packets sent by the DHCP
client.
Displaying and maintaining the DHCP client
Task
Display specified
configuration information.
DHCP client configuration example
Network requirements
As shown in
obtains an IP address from the DHCP server by using DHCP.
Figure 31 Network diagram
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 dhcp-alloc
# Use the display dhcp client command to view the IP address assigned to the DHCP client.
To make the DHCP client obtain an IP address from the DHCP server, you must perform additional
configurations on the DHCP server.
Command
display dhcp client [ verbose ] [ interface
interface-type interface-number ] [ | { begin |
exclude | include } regular-expression ]
Figure
31, Switch A's port belonging to VLAN 1 connects to the LAN. VLAN-interface 1
Command
dhcp client dscp dscp-value
47
Remarks
Optional.
By default, the DSCP value is 56.
Remarks
Available in any view