Router 2
Another way to verify that matched traffic is being diverted to the bidirectional IPSec tunnel is to view the firewall filter counter. After you issue the
pingcommand from Router 1 (seven packets), thees-trafficfirewall filter counter looks like this:user@R2>show firewall filter es-trafficFilter: es-trafficCounters:Name Bytes Packetsipsec-tunnel 588 7After you issue the
pingcommand from both Router 1 (seven packets) and Router 4 (five packets), thees-trafficfirewall filter counter looks like this:user@R2>show firewall filter es-trafficFilter: es-trafficCounters:Name Bytes Packetsipsec-tunnel 1008 12To verify that the IKE SA negotiation between Routers 2 and 3 is successful, issue the
show ike security-associations detailcommand. Notice that the SA contains the settings you specified, such as SHA-1 for the authentication algorithm and 3DES-CBC for the encryption algorithm.user@R2>show ike security-associations detailIKE peer 10.1.15.2Role: Initiator, State: MaturedInitiator cookie: b5dbdfe2f9000000, Responder cookie: a24c868410000041Exchange type: Main, Authentication method: Pre-shared-keysLocal: 10.1.15.1:500, Remote: 10.1.15.2:500Lifetime: Expires in 401 secondsAlgorithms:Authentication : sha1Encryption : 3des-cbcPseudo random function: hmac-sha1Traffic statistics:Input bytes : 1736Output bytes : 2652Input packets: 9Output packets: 15Flags: Caller notification sentIPSec security associations: 3 created, 0 deletedPhase 2 negotiations in progress: 0To verify that the IPSec security association is active, issue the
show ipsec security-associations detailcommand. Notice that the SA contains the settings you specified, such as ESP for the protocol, HMAC-SHA1-96 for the authentication algorithm, and 3DES-CBC for the encryption algorithm.user@R2>show ipsec security-associations detailSecurity association: sa-dynamic, Interface family: UpLocal gateway: 10.1.15.1, Remote gateway: 10.1.15.2Local identity: ipv4_subnet(any:0,[0..7]=10.1.12.0/24)Remote identity: ipv4_subnet(any:0,[0..7]=10.1.56.0/24)Direction: inbound, SPI: 2133029543, AUX-SPI: 0Mode: tunnel, Type: dynamic, State: InstalledProtocol: ESP, Authentication: hmac-sha1-96, Encryption: 3des-cbcSoft lifetime: Expires in 26212 secondsHard lifetime: Expires in 26347 secondsAnti-replay service: DisabledDirection: outbound, SPI: 1759450863, AUX-SPI: 0Mode: tunnel, Type: dynamic, State: InstalledProtocol: ESP, Authentication: hmac-sha1-96, Encryption: 3des-cbcSoft lifetime: Expires in 26212 secondsHard lifetime: Expires in 26347 secondsAnti-replay service: Disabled