local-address
Syntax
local-address ip-address
undo local-address
View
IKE peer view
Default level
2: System level
Parameters
ip-address: IP address of the local security gateway to be used in IKE negotiation.
Description
Use the local-address command to configure the IP address of the local security gateway in IKE negotiation.
Use the undo local-address command to remove the configuration.
By default, the primary address of the interface referencing the IPsec policy is used as the local security gateway IP address for IKE negotiation. Use this command if you want to specify a different address for the local security gateway.
Examples
# Set the IP address of the local security gateway to 1.1.1.1.
<Sysname> system-view [Sysname] ike peer xhy [Sysname-ike-peer-xhy] local-address 1.1.1.1