Use the following CLI commands for in-depth diagnostics:
show vpn ike-sa
: Display IKE Security Associations.show vpn ipsec-sa
: Display IPSec Security Associations.test vpn ike-sa gateway <gateway-name>
: Initiate IKE SA negotiation.test vpn ipsec-sa tunnel <tunnel-name>
: Initiate IPSec SA negotiation.debug ike global on debug
: Enable IKE debugging.debug ike pcap on
: Enable packet capture for IKE negotiations.less mp-log ikemgr.log
: View IKE manager logs for detailed information.debug ike global off
: Disable IKE debugging.debug ike pcap off
: Disable packet capture.For more detailed CLI troubleshooting steps, refer to Palo Alto Networks' documentation on Troubleshooting Site-to-Site VPN Issues Using CLI.
For a detailed guide on troubleshooting IPSec VPN connectivity issues, refer to Palo Alto Networks' knowledge base article on How to Troubleshoot IPSec VPN connectivity issues.
Use packet captures to analyze IKE and IPSec negotiations:
debug ike pcap on
: Start packet capture for IKE negotiations.view-pcap no-dns-lookup yes no-port-lookup yes debug-pcap ikemgr.pcap
: View the captured packets.debug ike pcap off
: Stop packet capture.Ensure to disable packet captures after analysis to conserve system resources.