Description
Related command:
Example
tunnel remote
Syntax
View
Parameter
Description
Related command:
Use the
command to configure the local address of an IPSec tunnel.
tunnel local
Use the
undo tunnel local
By default, no local address is configured for an IPSec tunnel.
Note that:
This command applies to only manual IPSec policies.
■
The local address, if not configured, will be the address of the interface to
■
which the IPSec policy is applied.
ipsec policy (system view).
# Set the local address of the IPSec tunnel to the address of Loopback0, namely
10.0.0.1.
<Sysname> system-view
[Sysname] interface loopback 0
[Sysname-LoopBack0] ip address 10.0.0.1 32
[Sysname-LoopBack0] quit
[Sysname] ipsec policy policy1 100 manual
[Sysname-ipsec-policy-manual-policy1-100] tunnel local 10.0.0.1
tunnel remote ip-address
undo tunnel remote [ ip-address ]
IPSec policy view
ip-address: Remote address for the IPSec tunnel.
Use the
tunnel remote
tunnel.
Use the
undo tunnel remote
By default, no remote address is configured for the IPSec tunnel.
Note that:
This command applies to only manual IPSec policies.
■
If you configure the remote address repeatedly, the last one takes effect.
■
An IPSec tunnel is established between the local and remote ends. The remote
■
IP address of the local end must be the same as that of the local IP address of
the remote end.
ipsec policy (system view).
command to remove the configuration.
command to configure the remote address of an IPSec
command to remove the configuration.
2151