现象:
<MSR20-1>ping -a 1.1.1.1 3.3.3.3
PING 3.3.3.3: 56 data bytes, press CTRL_C to break
Request time out//触发成功
Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=255 time=15 ms
Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=255 time=25 ms
Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=255 time=4 ms
Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 3.3.3.3 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 4/13/25 ms
<MSR20-1>dis ipsec sa
===============================
Interface: Serial0/2/0
path MTU: 1500
===============================
-----------------------------
IPsec policy name: "1"
sequence number: 10
mode: isakmp
-----------------------------
connection id: 4
encapsulation mode: tunnel
perfect forward secrecy: None
tunnel:
local address: 12.12.12.1
remote address: 23.23.23.3
Flow :
sour addr: 12.12.12.1/255.255.255.255 port: 0 protocol: IP
dest addr: 23.23.23.3/255.255.255.255 port: 0 protocol: IP
[inbound ESP SAs]
spi: 3986132179 (0xed978cd3)
proposal: ESP-ENCRYPT-DES ESP-AUTH-MD5
sa remaining key duration (bytes/sec): 1887436368/3541
max received sequence-number: 4
udp encapsulation used for nat traversal: N
[outbound ESP SAs]
spi: 3769304816 (0xe0ab06f0)
proposal: ESP-ENCRYPT-DES ESP-AUTH-MD5
sa remaining key duration (bytes/sec): 1887436368/3541
max sent sequence-number: 5
udp encapsulation used for nat traversal: N
<MSR20-1>dis ike sa
total phase-1 SAs: 1
connection-id peer flag phase doi
----------------------------------------------------------
4 23.23.23.3 RD|ST 2 IPSEC
2 23.23.23.3 RD|ST 1 IPSEC
flag meaning
RD--READY ST--STAYALIVE RL--REPLACED FD--FADING TO--TIMEOUT
<MSR20-2>deb gre all
<MSR20-2>deb ipsec all
<MSR20-2>
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:--- Receive IPSec(ESP) packet ---
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:Src:12.12.12.1 Dst:23.23.23.3 SPI:3769304816(0xe0ab06f0)
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:New ESP(RFC2406) Enc Alg:DES Auth Alg:HMAC-MD5-96
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:Replay Checking Enabled! SN:5
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:ESP new input: Authentication succeed!
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:IPSEC Task: Decryption succeed!
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:Tunnel mode. Org Src:12.12.12.1 Org Dst:23.23.23.3
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:Now send it to IP input process...
*Apr 13 20:13:08:406 2011 MSR20-2 GRE/7/debug:
gre packet: Decapsulate tunnel packet
Outer packet header 12.12.12.1->23.23.23.3(length = 108)
*Apr 13 20:13:08:406 2011 MSR20-2 GRE/7/debug:
Tunnel0 packet:After decapsulation,
Outgoing packet header 1.1.1.1->3.3.3.3(length = 84)
*Apr 13 20:13:08:406 2011 MSR20-2 GRE/7/debug:
Tunnel0 packet:Before encapsulation,
Outer packet header 3.3.3.3->1.1.1.1(length = 84)
*Apr 13 20:13:08:406 2011 MSR20-2 GRE/7/debug:
Tunnel0 packet:After encapsulation,
Outgoing packet header 23.23.23.3->12.12.12.1(length = 108)
*Apr 13 20:13:08:406 2011 MSR20-2 GRE/7/debug:
Tunnel0 packet: GRE physical transmit a packet(len = 108, protocol = 0x800).
*Apr 13 20:13:08:406 2011 MSR20-2 IPSEC/7/DBG:IPsec_Misc:
Do IPsec:Send IPSec Packet! From 23.23.23.3 to 12.12.12.1
*Apr 13 20:13:08:422 2011 MSR20-2 IPSEC/7/DBG:--- Send IPSec packet ---
*Apr 13 20:13:08:422 2011 MSR20-2 IPSEC/7/DBG:Tunnel mode. Adding outer IP header succeed!
*Apr 13 20:13:08:422 2011 MSR20-2 IPSEC/7/DBG:Src:23.23.23.3 Dst:12.12.12.1 SPI:3986132179(0xed978cd3)
*Apr 13 20:13:08:422 2011 MSR20-2 IPSEC/7/DBG:New ESP(RFC2406) Enc Alg:DES Auth Alg:HMAC-MD5-96
*Apr 13 20:13:08:422 2011 MSR20-2 IPSEC/7/DBG:Encryption finished! New ESP(RFC2406) SN:5
*Apr 13 20:13:08:422 2011 MSR20-2 IPSEC/7/DBG:Now send it to IP output process...