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.
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.<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
<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
<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
<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
<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
<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