< Home

peer tnl-policy

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.

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H support this command.

Format

peer ipv4-address tnl-policy tnl-policy-name

undo peer ipv4-address tnl-policy

Parameters

Parameter Description Value
ipv4-address Specifies the IPv4 address of the peer. -
tnl-policy-name Specifies the name of the tunnel policy. The name is a string of 1 to 39 characters. It is case-sensitive.

Views

BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Usage Guidelines

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.

Before you configure the peer tnl-policy command, the peer as-number command should be used to create a peer or peer group.

Example

# Apply the tunnel policy to the specified peer.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] peer 10.1.1.2 as-number 100
[HUAWEI-bgp] ipv6-family unicast
[HUAWEI-bgp-af-ipv6] peer 10.1.1.2 enable
[HUAWEI-bgp-af-ipv6] peer 10.1.1.2 tnl-policy policy-a
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >