apply extcommunity redirect ip

Function

The apply extcommunity redirect ip command applies a redirection IP address extended community attribute to routes matching specified filtering rules.

The undo apply extcommunity redirect ip command restores the default configuration.

By default, no redirection IP address extended community attribute is applied to routes matching specified filtering rules.

Format

apply extcommunity redirect ip ipv4-address:nn

undo apply extcommunity redirect ip

Parameters

Parameter Description Value
ip ipv4-address:nn

Specifies the IPv4 address.

The value is in the format of ipv4-address:nn. For ipv4-address, the value is in dotted decimal notation. For nn, the value of nn ranges from 0 to 1.

Views

Route-policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

To apply a redirection extended community attribute to BGP FlowSpec routes matching specified filtering rules, run the apply extcommunity redirect command. To enable BGP FlowSpec routes to redirect traffic to a specified next hop, run the apply extcommunity redirect ip command to add an IP address extended community attribute to these routes.

Prerequisites

A route-policy has been configured.

Configuration Impact

If a route matches the filtering rules of a specified route-policy, the redirection extended community attribute will be applied to the route.

Example

# Apply the redirection extended community attribute 100:1 to routes matching specified filtering rules.
<HUAWEI> system-view
[~HUAWEI] route-policy aaa permit node 10
[*HUAWEI-route-policy] apply extcommunity redirect ip 10.1.1.1:0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >