dhcp dscp-outbound

Function

The dhcp dscp-outbound command sets a differentiated services code point (DSCP) value for DHCP reply messages.

The undo dhcp dscp-outbound command deletes the DSCP value in DHCP reply messages.

By default, no DSCP value is set for DHCP reply messages.

Format

dhcp dscp-outbound dscp

undo dhcp dscp-outbound

Parameters

Parameter Description Value
dscp

Specifies a DSCP value in DHCP reply messages.

The value is an integer ranging from 0 to 63.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, PW-VE interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view, XGE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

On an IPTV network, a user device sends DHCP Offer messages with priority 0 to a set top box (STB) for registration. The STB does not identify messages with priority 0 and fails to assign an IP address to the user. The dhcp dscp-outbound command is used in this scenario.

Configuration Impact

The dhcp dscp-outbound command enables a DHCP broadband access server, DHCP Server, or relay agent to send DHCP reply messages carrying non-zero priorities so that the devices can receive replies.

Example

# Set the DSCP value to 20 for DHCP reply messages sent by GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] dhcp dscp-outbound 20
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
Next topic >