81
Setting the DSCP value for DHCP packets sent by
the DHCP client
About setting the DSCP value for DHCP packets sent by the DHCP client
The DSCP value of a packet specifies the priority level of the packet and affects the transmission
priority of the packet.
Procedure
1. Enter system view.
system-view
2. Set the DSCP value for DHCP packets sent by the DHCP client.
dhcp client dscp dscp-value
By default, the DSCP value in DHCP packets sent by the DHCP client is 56.
Display and maintenance commands for DHCP
client
Execute display command in any view.
Task Command
Display DHCP client information.
display dhcp client
[
verbose
]
[
interface
interface-type
interface-number ]
DHCP client configuration examples
Example: Configuring DHCP client
Network configuration
As shown in Figure 28, on a LAN, Switch B contacts the DHCP server through VLAN-interface 2 to
obtain an IP address, a DNS server address, and static route information. The DHCP client's IP
address resides on subnet 10.1.1.0/24. The DNS server address is 20.1.1.1. The next hop of the
static route to subnet 20.1.1.0/24 is 10.1.1.2.
The DHCP server uses Option 121 to assign static route information to DHCP clients. Figure 27
sho
ws the Option 121 format. The destination descriptor field contains the following parts: subnet
mask length and destination network address, both in hexadecimal notation. In this example, the
destination descriptor is 18 14 01 01 (the subnet mask length is 24 and the network address is
20.1.1.0 in dotted decimal notation). The next hop address is 0A 01 01 02 (10.1.1.2 in dotted decimal
notation).
Figure 27 Option 121 format