372
Use the
undo remote-address
command to remove the configuration.
The IP address configured with the
remote-address
command must match the local security gateway IP
address that the remote security gateway uses for IKE negotiation, which is the IP address configured with
the
local-address
command or, if the
local-address
command is not configured, the primary IP address
of the interface to which the policy is applied.
The local peer can be the initiator of IKE negotiation if the remote address is a host IP address or a host
name. The local end can only be the responder of IKE negotiation if the remote address is an address
range that the local peer can respond to.
If the IP address of the remote address changes frequently, configure the host name of the remote
gateway with the
dynamic
keyword so that the local peer can use the up-to-date remote IP address to
initiate IKE negotiation.
Related commands:
id-type ip
and
local-address
.
Examples
# Configure the IP address of the remote security gateway as 10.0.0.1.
<Sysname> system-view
[Sysname] ike peer peer1
[Sysname-ike-peer-peer1] remote-address 10.0.0.1
# Configure the host name of the remote gateway as
test.com
, and specify the local peer to dynamically
update the remote IP address.
<Sysname> system-view
[Sysname] ike peer peer2
[Sysname-ike-peer-peer2] remote-address test.com dynamic
remote-name
Syntax
remote-name
name
undo remote-name
View
IKE peer view
Default level
2: System level
Parameters
name
: Name of the peer security gateway for IKE negotiation, a string of 1 to 32 characters.
Description
Use the
remote-name
command to configure the name of the remote gateway.
Use the
undo remote-name
command to remove the configuration.
If you configure the
id-type name
or
id-type user-fqdn
command on the initiator, the IKE negotiation
initiator sends its security gateway name as its ID for IKE negotiation, and the peer uses the security
gateway name configured with the
remote-name
command to authenticate the initiator. Make sure the
local gateway name matches the remote gateway name configured on the peer.
Related commands:
id-type
,
local-name
, and
ike local-name
.