peer tnl-policy (BGP-IPv6 unicast address family view)

Function

The peer tnl-policy command applies the tunnel policy to the specified IPv4 peer.

The undo peer tnl-policy command removes the tunnel policy applied to the peer.

By default, no tunnel policy is applied to the peer.

Format

peer ipv4-address tnl-policy policy-name

undo peer ipv4-address tnl-policy

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of the peer.

The value is in dotted decimal notation.

policy-name

Specifies the name of the tunnel policy.

The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

When you configure the 6PE to support the tunnel, you need to configure the tunnel policy and apply the tunnel policy by using the command.

Precautions

The SRv6 TE Policy or SRv6 TE Policy Group of tunnel is not supported in a tunnel policy specified in the command.

Example

# Apply the tunnel policy to the specified peer.
<HUAWEI> system-view
[~HUAWEI] tunnel-policy policy-a
[*HUAWEI-tunnel-policy-policy-a] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.2 as-number 100
[*HUAWEI-bgp] ipv6-family unicast
[*HUAWEI-bgp-af-ipv6] peer 1.1.1.2 enable
[*HUAWEI-bgp-af-ipv6] peer 1.1.1.2 tnl-policy policy-a
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >