Monitoring and Managing Management ConnectionsIn the next two sections I'll discuss some show, clear, and debug commands you can use to view and manage your ISAKMP/IKE Phase 1 management connections. This chapter introduces these commands and Chapter 19, "Troubleshooting Router Connections," will provide an in-depth coverage of these commands as they relate to troubleshooting IPsec sessions. Viewing ISAKMP/IKE Phase 1 ConnectionsWhen a management connection is being built, it will go through various states. The current state of this connection can be seen with this command: Router# show crypto isakmp sa [detail]
Example 16-26 illustrates the use of this command. In this example, only one management connection exists. The state column indicates what state the connection is in. Table 16-1 explains the various states a connection can be in. Example 16-26. Viewing Management Connectionsr3640# show crypto isakmp sa
dst src state conn-id slot status
192.1.1.40 192.1.1.20 QM_IDLE 1 0 ACTIVE
You can view more details about the management connections by adding the detail parameter to the show crypto isakmp sa command, as illustrated in Example 16-27. Here you can see information like the type of encryption algorithm used ("aes"), the HMAC function used ("md5"), the authentication method ("psk," which stands for pre-shared keys), the DH key group ("2"), and the remaining lifetime of the connection (a little over 11 hours). Also, at the bottom, you can see if encryption is being performed in software or hardware: in this example, it's being done in software. Example 16-27. Viewing Details of Management Connectionsr3640# show crypto isakmp sa detail Codes: C - IKE configuration mode, D - Dead Peer Detection K - Keepalives, N - NAT-traversal X - IKE Extended Authentication psk - Preshared key, rsig - RSA signature renc - RSA encryption C-id Local Remote I-VRF Status Encr Hash Auth DH Lifetime Cap 1 192.1.1.40 192.1.1.20 ACTIVE aes md5 psk 2 23:02:47 Connection-id:Engine-id = 1:1(software) Managing ISAKMP/IKE Phase 1 ConnectionsTo tear down a management connection, use the following clear command: Router# clear crypto isakmp [conn_ID] If you don't enter a specific connection ID, all management connections are torn downConnection IDs can be found in the show crytpo isakmp sa command. If you are having problems establishing a management connection, you can use the debug crypto isakmp command. I'll discuss this command in much more depth in Chapter 19, "Troubleshooting Router Connections." |