576
ikev2 nat-keepalive
Use
ikev2 nat-keepalive
to set the NAT keepalive interval.
Use
undo ikev2 nat-keepalive
to restore the default.
Syntax
ikev2 nat-keepalive
seconds
undo ikev2 nat-keepalive
Default
The NAT keepalive interval is 10 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
seconds
: Specifies the NAT keepalive interval in seconds, in the range of 5 to 3600.
Usage guidelines
This command takes effect when the device resides in the private network behind a NAT device. The
device must send NAT keepalive packets regularly to its peer to keep the NAT session alive, so that
the peer can access the device.
The NAT keepalive interval must be shorter than the NAT session lifetime.
Examples
# Set the NAT keepalive interval to 5 seconds.
<Sysname> system-view
[Sysname] ikev2 nat-keepalive 5
ikev2 policy
Use
ikev2 policy
to create an IKEv2 policy and enter its view, or enter the view of an existing IKEv2
policy.
Use
undo ikev2 policy
to delete an IKEv2 policy.
Syntax
ikev2 policy
policy-name
undo
ikev2 policy
policy-name
Default
An IKEv2 policy named
default
exists, which uses the default IKEv2 proposal and matches any local
addresses.
Views
System view
Predefined user roles
network-admin