280
Examples
# Create an IPsec policy with the name
policy2
and sequence number 200 by referencing IPsec
policy template
temp1
.
<Sysname> system-view
[Sysname] ipsec policy policy2 200 isakmp template temp1
ipsec policy-template
Use
ipsec policy-template
to create an IPsec policy template and enter the IPsec policy template
view.
Use
undo ipsec policy-template
to delete the specified IPsec policy templates
.
Syntax
ipsec
policy-template
template-name
seq-number
undo
ipsec
policy-template
template-name
[
seq-number
]
Default
No IPsec policy template exists.
Views
System view
Default command level
2: System level
Parameters
template-name
: Specifies the name for the IPsec policy template, a case-insensitive string of 1 to 41
characters. No minus sign (-) can be included.
seq-number
: Specifies the sequence number for the IPsec policy template, in the range of 1 to
65535.
Usage guidelines
Using the
undo
command without the
seq-number
argument deletes an IPsec policy template
group.
In an IPsec policy template group, an IPsec policy template with a smaller sequence number has a
higher priority.
Examples
# Create an IPsec policy template with the name
template1
and the sequence number 100.
<Sysname> system-view
[Sysname] ipsec policy-template template1 100
[Sysname-ipsec-policy-template-template1-100]
Related commands
display
ipsec
policy template
ipsec profile (system view)
Use
ipsec profile
to create an IPsec profile and enter its view. An IPsec profile defines the IPsec
transform sets to be used to protect the data and the IKE negotiation parameters used to set up the
SAs.
Use
undo ipsec profile
to delete an IPsec profile.