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.😀
Don't miss this great chance to upgrade your Nebula org. for free!
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”
Don't miss this great chance to upgrade your Nebula org. for free!
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Don't miss this great chance to upgrade your Nebula org. for free!
1 -
Perfect !
Thanks a lot !
0
Categories
- All Categories
- 414 Beta Program
- 2.3K Nebula
- 132 Nebula Ideas
- 92 Nebula Status and Incidents
- 5.4K Security
- 181 USG FLEX H Series
- 258 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1K Wireless
- 37 Wireless Ideas
- 6.2K Consumer Product
- 236 Service & License
- 374 News and Release
- 79 Security Advisories
- 24 Education Center
- 5 [Campaign] Zyxel Network Detective
- 2.9K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 80 About Community
- 69 Security Highlight