[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 ipv6-prefix list1 export
peer ipsec-policy (IPv6 address family view)
Syntax
peer { group-name | ipv6-address } ipsec-policy policy-name
undo peer { group-name | ipv6-address } ipsec-policy
View
IPv6 address family view
Default level
2: System level
Parameters
group-name: Name of an IPv6 peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
policy-name: IPsec policy name, a string of 1 to 15 characters.
Description
Use the peer ipsec-policy command to apply an IPsec policy to an IPv6 BGP peer or peer group.
Use the undo peer ipsec-policy command to remove the applied IPsec policy.
By default, no IPsec policy is applied to any peer or peer group.
Note:
The IPsec policy to be applied must have been configured. Otherwise, the configuration fails.
•
You also need to make IPsec policy configuration on the peer or peer group. Otherwise, the local
•
device will not receive IPv6 BGP packets from the peer or peer group.
Examples
# Apply IPsec policy policy001 to IPv6 BGP peer 1212::1 1 1 1.
<Sysname] system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1212::1111 ipsec-policy policy001
peer keep-all-routes (IPv6 address family view)
Syntax
peer { group-name | ipv4-address | ipv6-address } keep-all-routes
undo peer { group-name | ipv4-address | ipv6-address } keep-all-routes
View
IPv6 address family view
Default level
2: System level
403