security vpn ipsec site-to-site peer <peer> authentication pre-shared-secret <secret>
Specifies the pre-shared secret used to authenticate the VPN peer.
- peer
- Mandatory. The address of the far-end VPN gateway. The format is an IPv4 address, an IPv6 address, a hostname (IPv4 networks only), an authentication ID, or 0.0.0.0.
- secret
- Specifies the pre-shared secret to be used to authenticate the VPN peer.
Configuration mode
security {
vpn {
ipsec {
site-to-site {
peer peer {
authentication {
pre-shared-secret secret
}
}
}
}
}
}
Use this command to specify the pre-shared secret used to authenticate the VPN peer. The pre-shared-secret set here is only valid if the authentication mode is set to pre-shared-secret.
Use the set form of this command to specify the pre-shared secret used to authenticate the VPN peer.
Use the delete form of this command to remove the pre-shared secret configuration.
Use the show form of this command to view the pre-shared secret configuration.