< Home

bind route-policy

Function

The bind route-policy command associates a business group with a routing policy.

The undo bind route-policy command deletes the preceding configuration.

Format

bind route-policy route-policy-name match rank rank & <1-8>

undo bind route-policy route-policy-name [ match rank rank & <1-8> ]

Parameters

Parameter Description Value
route-policy-name

Specifies the name of a routing rule.

The value is a string of 1 to 40 case-sensitive characters and can contain a space.

rank

Specifies the ranking of a device in a business group.

The value is an integer ranging from 1 to 8.

Views

Business group view

Default Level

2: Configuration level

Usage Guidelines

This command controls whether a routing policy takes effect. For example, in a scenario where you run the bind route-policy test match rank 1 command in business group 1, if the device ranks the first in the business group, routing policy test takes effect; if the device does not rank the first in the business group, routing policy test does not take effect.

In a DCN east-west traffic protection scenario, to ensure that the eastbound and westbound traffic is transmitted along the same path, you need to run this command to enable only the master device to advertise routes.

Example

# In business group 1, enable only the master device to advertise UNR routes defined in routing policy cluster_rt.

C_No2_M<sysname> system-view
C_No2_M[sysname] business-group 1
C_No2_M[sysname-business-group-1] bind route-policy cluster_rt match rank 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >