R3166-R3206-HP High-End Firewalls VPN Command Reference-6PW101
69
Default level
2: System level
Parameters
ip-address: Local address for the IPsec tunnel.
Description
Use the tunnel local command to configure the local address of an IPsec tunnel.
Use the undo tunnel local command to remove the configuration.
By default, no local address is configured for an IPsec tunnel.
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.
Related commands: ipsec policy (system view).
Examples
# Set the local address of the IPsec tunnel to the address of Loopback 0, 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
Syntax
tunnel remote ip-address
undo tunnel remote [ ip-address ]
View
IPsec policy view
Default level
2: System level
Parameters
ip-address: Remote address for the IPsec tunnel.
Description
Use the tunnel remote command to configure the remote address of an IPsec tunnel.
Use the undo tunnel remote command to remove the configuration.
By default, no remote address is configured for the IPsec tunnel.
This command applies to only manual IPsec policies.
If you configure the remote address repeatedly, the last one takes effect.