dhcpv6 relay pd-route degrade-cost

Function

The dhcpv6 relay pd-route degrade-cost command configures a cost value for PD routes generated by the backup device in a DHCPv6 relay dual-device hot standby scenario.

The undo dhcpv6 relay pd-route degrade-cost command restores the default configuration.

The default cost value of PD routes generated by the backup device is 0 in a DHCPv6 relay dual-device hot standby scenario.

Format

dhcpv6 relay pd-route degrade-cost cost-value

undo dhcpv6 relay pd-route degrade-cost [ cost-value ]

Parameters

Parameter Description Value
cost-value

Specifies a cost value for PD routes generated by the backup device.

The value is an integer ranging from 1 to 4294967295.

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE optical interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, Sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

In a DHCPv6 relay dual-device hot standby scenario, after DHCPv6 relay dual-device hot standby is deployed on the master and backup devices, the backup device synchronizes DHCPv6 user entries from the master device in real time and generates PD routes. By default, the cost values of PD routes generated by the master and backup devices are both 0 (highest priority). To ensure that service traffic sent to users can be correctly forwarded to the master device, run the dhcpv6 relay pd-route degrade-cost command to increase the cost value of PD routes generated by the backup device. This allows service routes sent to the users to converge on the master device.

Configuration Impact

After this command is run, the cost value of PD routes generated by the DHCPv6 relay interface on the backup device is adjusted based on the VRRP/VRRP6 status in a DHCPv6 relay dual-device hot standby scenario.

  • If the VRRP/VRRP6 status is Master, the cost value of PD routes is set to the default value 0 (highest priority).
  • If the VRRP/VRRP6 status is Backup, the cost value of PD routes is set to the value specified by cost-value.

Precautions

  • This command takes effect only for PD routes generated by the backup device in a DHCPv6 relay dual-device hot standby scenario.
  • This command must be configured on the same interface as DHCPv6 relay.
  • In a DHCPv6 relay dual-device hot standby scenario, running the reset dhcpv6 relay userinfo table command on the master device clears user entries on both the master and backup devices, but running this command on the backup device clears user entries only on the backup device.

Example

# Set the cost of PD routes generated by the backup device in a DHCPv6 relay dual-device hot standby scenario to 50 on GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] dhcpv6 relay pd-route degrade-cost 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >