peer redirect ip (BGP-Flow address family view)

Function

The peer redirect ip rfc-compatible command changes the redirection next-hop attribute ID of BGP Flow Specification routes or BGP VPN Flow Specification routes to 0x010C (ID defined in a relevant standard).

The undo peer redirect ip rfc-compatible command restores the default setting.

The peer redirect ip draft-compatible command sets the redirection next-hop attribute ID of BGP Flow Specification routes to 0x0800 (ID defined in a relevant draft).

The undo peer redirect ip draft-compatible command restores the default setting.

By default, the redirection next-hop attribute ID of static BGP Flow Specification routes is 0x0800, and the redirection next-hop attribute ID of dynamic BGP Flow Specification routes is the one received from peers.

Format

peer ipv4-address redirect ip { rfc-compatible | draft-compatible }

undo peer ipv4-address redirect ip { rfc-compatible | draft-compatible }

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The value is in dotted decimal notation.

Views

BGP-Flow address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The redirection next-hop attribute ID can be 0x010C (ID defined in a relevant standard) or 0x0800 (ID defined in a relevant draft). If a Huawei device needs to communicate with a non-Huawei device that does not support the redirection next-hop attribute ID of 0x0800, run the peer redirect ip rfc-compatible command on the Huawei device to set the redirection next-hop attribute ID of BGP Flow Specification routes to 0x010C.

If a Huawei device needs to communicate with a non-Huawei device that does not support the redirection next-hop attribute ID of 0x010C, run the peer redirect ip draft-compatible command on the Huawei device to set the redirection next-hop attribute ID of BGP Flow Specification routes to 0x0800.

Precautions

The peer redirect ip rfc-compatible and peer redirect ip draft-compatible commands are mutually exclusive.

The peer redirect ip draft-compatible and peer redirect ip rfc-compatible commands are mutually exclusive.

Example

# Set the redirection next-hop attribute ID of BGP Flow Specification routes to 0x0800 (ID defined in a relevant draft).
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] ipv4-family flow
[*HUAWEI-af-ipv4-flow] peer 1.1.1.1 enable
[*HUAWEI-af-ipv4-flow] peer 1.1.1.1 redirect ip draft-compatible
# Change the redirection next-hop attribute ID of BGP VPNv4 Flow Specification routes to 0x010C (ID defined in a relevant standard).
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] ipv4-flow vpnv4
[*HUAWEI-bgp-af-flow-vpnv4] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-flow-vpnv4] peer 1.1.1.1 redirect ip rfc-compatible
# Change the redirection next-hop attribute ID of BGP VPN Flow Specification routes to 0x010C (ID defined in a relevant standard).
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 130:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpna
[*HUAWEI-bgp-instance-vpna] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp-instance-vpna] quit
[*HUAWEI-bgp] ipv4-flow vpn-instance vpna
[*HUAWEI-bgp-flow-vpna] peer 1.1.1.1 enable
[*HUAWEI-bgp-flow-vpna] peer 1.1.1.1 redirect ip rfc-compatible
# Change the redirection next-hop attribute ID of BGP Flow Specification routes to 0x010C (ID defined in a relevant standard).
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] ipv4-family flow
[*HUAWEI-af-ipv4-flow] peer 1.1.1.1 enable
[*HUAWEI-af-ipv4-flow] peer 1.1.1.1 redirect ip rfc-compatible
# Set the redirection next-hop attribute ID of BGP VPNv4 Flow Specification routes to 0x0800 (ID defined in a relevant draft).
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] ipv4-flow vpnv4
[*HUAWEI-bgp-af-flow-vpnv4] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-flow-vpnv4] peer 1.1.1.1 redirect ip draft-compatible
# Set the redirection next-hop attribute ID of BGP VPN Flow Specification routes to 0x0800 (ID defined in a relevant draft).
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 101:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] vpn-instance vpna
[*HUAWEI-bgp-instance-vpna] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp-instance-vpna] quit
[*HUAWEI-bgp] ipv4-flow vpn-instance vpna
[*HUAWEI-bgp-flow-vpna] peer 1.1.1.1 enable
[*HUAWEI-bgp-flow-vpna] peer 1.1.1.1 redirect ip draft-compatible
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >