Config VPN CLI





Hi,
I would like to know the command to change the VPN Peer primary Gateway Address . I need to change the gateway IP on many routers with a script but cannot find the right command in the CLI manual.
Thanks,
Davy
Comments
-
The cli as below,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
configure terminal
isakmp policy [VPNGateway name]
peer-ip [Peer primary Gateway Address] 0.0.0.0
exit
write
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Let us know if you need any help.😀
1 -
Thanks for the answer. With this command I can enter in VPN_connection profile but it is not working for VPN Gateway profile, I have this error when I try to call the VPN Gateway profile :
% v2 -> v1policy name: vpn_gateway_msfch
retval = -18006
ERROR: setting failed!
0 -
Okay, this is strange, I did :
configure terminal
isakmp policy Test
It created a new VPNGateway named "test".
But when I try to call my already setup VPNGateway it failed, but I can call the "test" one without any problem.
0 -
Can you try it again via SSH access without script? Input CLI one by one.
Will it have error if you type “isakmp policy vpn_gateway_msfch”
0 -
Ok I did all my test with a putty ssh session.
I still have the error when I try to do :
“isakmp policy vpn_gateway_msfch"
I tried to disable the gateway and disable both VPN attached to it and I have the same error
Router(config)# isakmp policy vpn_gateway_msfch % v2 -> v1 policy name: vpn_gateway_msfch retval = -18006 ERROR: setting failed! Router(config)#
Thanks
0 -
Hi @IT_Field_Support ,
Just noticed the error message “% v2 -> v1”.
If VPN tunnel is IKEv2, the CLI is ikev2
You can try it again with cli below,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
configure terminal
ikev2 policy [VPNGateway name]
peer-ip [Peer primary Gateway Address] 0.0.0.0
exit
write
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 -
Perfect !
Thanks a lot !
0
Categories
- All Categories
- 415 Beta Program
- 2.5K Nebula
- 156 Nebula Ideas
- 105 Nebula Status and Incidents
- 5.9K Security
- 321 USG FLEX H Series
- 286 Security Ideas
- 1.5K Switch
- 78 Switch Ideas
- 1.2K Wireless
- 42 Wireless Ideas
- 6.6K Consumer Product
- 257 Service & License
- 399 News and Release
- 86 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.8K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 87 About Community
- 78 Security Highlight