set peer (crypto map)

Last Updated : Aug 28, 2026 |
Attaches a peer to a crypto map. Use no set peer to remove the peer from the crypto map.
Prolog information
Note:
You can only change the peer of a crypto map when the map is inactive.
The set peer and set peer-group commands are mutually exclusive. You can attach to a given crypto map either a peer or a peer-group, not both.

Syntax

set peer {ip-address | hostname}
no set peer

Parameters

Parameter
Description
Possible Values
Default Value
ip-address
The remote peer IP address
hostname
The remote peer hostname

User level

read-write

Context

crypto map

Examples

To attach the peer at IP address 149.49.52.135 to crypto map 1:
Gxxx-001(config-crypto:1)# set peer 149.49.52.135