255
2.
Configuration prerequisites
Configure ACLs used for identifying protected traffic and IPsec proposals. ACLs are not required for
IPsec policies for an IPv6 protocol.
3.
Configuration procedure
To configure a manual IPsec policy:
To do…
Command…
Remarks
1.
Enter system view.
system-view
—
2.
Create a manual IPsec policy and
enter its view.
ipsec
policy
policy-name
seq-number
manual
Required.
By default, no IPsec policy exists.
3.
Assign an ACL to the IPsec policy.
security
acl
acl-number
Not needed for IPsec policies to be
applied to IPv6 routing protocols
and required for other applications.
By default, an IPsec policy references
no ACL.
The ACL supports match criteria of
the VPN instance attribute.
4.
Assign an IPsec proposal to the
IPsec policy.
proposal
proposal-name
Required.
By default, an IPsec policy references
no IPsec proposal.
5.
Configure
the two
ends of
the IPsec
tunnel.
Configure the local
address of the tunnel.
tunnel
local
ip-address
Not needed for IPsec policies to be
applied to IPv6 routing protocols
and required for other applications.
Not configured by default.
Configure the remote
address of the tunnel.
tunnel
remote
ip-address
Required.
Not configured by default.
6.
Configure the SPIs for the SAs.
sa
spi
{
inbound
|
outbound
} {
ah
|
esp
}
spi-number
Required.
7.
Configure
keys for
the SAs.
Configure an
authentication key in
hexadecimal for AH.
sa authentication-hex
{
inbound
|
outbound
}
ah
hex-key
Required.
Use either command.
Configure an
authentication key in
characters for AH.
sa string-key
{
inbound
|
outbound
}
ah
string-key
Configure a key in
characters for ESP.
sa
string-key
{
inbound
|
outbound
}
esp
string-key
Required.
Configure at least one command.
If you configure a key in characters
for ESP, the router automatically
generates an authentication key and
an encryption key for ESP.
Configure an
authentication key in
hexadecimal for ESP.
sa authentication-hex
{
inbound
|
outbound
}
esp
hex-key
Configure an
encryption key in
hexadecimal for
ESP.
sa
encryption-hex
{
inbound
|
outbound
}
esp
hex-key