328
Syntax
ipsec { ipv6-policy-template | policy-template } template-name seq-number
undo ipsec { ipv6-policy-template | policy-template } template-name [ seq-number ]
Default
No IPsec policy template is created.
Views
System view
Predefined user roles
network-admin
Parameters
ipv6-policy-template: Specifies an IPv6 IPsec policy template.
policy-template: Specifies an IPv4 IPsec policy template.
template-name: Specifies a name for the IPsec policy template, a case-insensitive string of 1 to 64
characters.
seq-number: Specifies a sequence number for the IPsec policy template, in the range of 1 to 65535. A
smaller number indicates a higher priority.
Usage guidelines
The configurable parameters for an IPsec policy template are similar to the parameters that you use when
you configure an IKE-based IPsec policy. However, all parameters except for the IPsec transform sets and
the IKE peer are optional for an IKE-based IPsec policy.
An IPsec policy template is a set of IPsec policy template entries that have the same name but different
sequence numbers.
With the seq-number argument specified, the undo command deletes an IPsec policy template entry.
An IPv4 IPsec policy template and an IPv6 IPsec policy template can have the same name.
Examples
# Create an IPsec policy template entry with the name template1 and sequence number 100, and enter
the IPsec policy template view.
<Sysname> system-view
[Sysname] ipsec policy-template template1 100
[Sysname-ipsec-policy-template-template1-100]
Related commands
• display ipsec { ipv6-policy-template | policy-template }
• ipsec { ipv6-policy | policy }
• ipsec { ipv6-policy | policy } isakmp template
ipsec profile
Use ipsec profile to create an IPsec profile, and enter IPsec profile view.
Use undo ipsec profile to delete the specified IPsec profile.