Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

packet loss on ipsec tunnel

I currently have 2 routers (one at each site). Both are running 12.3(9e). One router is a 2621 and the other is a 2611XM.

This is the relevant config:

Router A

crypto isakmp policy 10

encr 3des

authentication pre-share

crypto isakmp key ***** address x.x.x.98 no-xauth

!

!

crypto ipsec transform-set farm-jc-ts esp-3des esp-md5-hmac

!

crypto map farm-jc 10 ipsec-isakmp

set peer x.x.x.98

set transform-set farm-jc-ts

match address acl_farm-jc-tunnel

!

!

interface FastEthernet0/0

ip address dhcp

ip nat outside

duplex auto

speed auto

crypto map farm-jc

!

interface FastEthernet0/1

ip address 192.168.4.1 255.255.255.0

ip nat inside

duplex auto

speed auto

!

ip nat Stateful id 11

ip nat inside source list acl_nat interface FastEthernet0/0 overload

ip classless

ip route 0.0.0.0 0.0.0.0 FastEthernet0/0

ip route 10.1.1.0 255.255.255.0 FastEthernet0/0

ip access-list extended acl_farm-jc-tunnel

permit icmp 192.168.4.0 0.0.0.255 10.1.0.0 0.0.255.255

permit tcp 192.168.4.0 0.0.0.255 10.1.1.0 0.0.0.255 eq www

permit tcp 192.168.4.0 0.0.0.255 10.1.1.0 0.0.0.255 eq 443

permit tcp 192.168.4.0 0.0.0.255 10.1.1.0 0.0.0.255 eq 22

ip access-list extended acl_nat

deny ip 192.168.4.0 0.0.0.255 10.1.1.0 0.0.0.255

permit ip 192.168.4.0 0.0.0.255 any

Router B:

crypto isakmp policy 10

encr 3des

authentication pre-share

crypto isakmp key ***** address x.x.x.199 no-xauth

!

!

crypto ipsec transform-set jc-farm-ts esp-3des esp-md5-hmac

!

crypto map jc-farm 10 ipsec-isakmp

set peer x.x.x.199

set transform-set jc-farm-ts

match address acl_jc-farm-tunnel

!

!

!

!

interface FastEthernet0/0

ip address 10.1.1.5 255.255.255.0

ip nat inside

duplex auto

speed auto

!

interface FastEthernet0/1

ip address x.x.x.98 255.255.255.224

ip nat outside

speed auto

full-duplex

crypto map jc-farm

!

ip nat inside source list acl_nat interface FastEthernet0/1 overload

ip classless

ip route 0.0.0.0 0.0.0.0 <gw_ip>

ip route 10.1.0.0 255.255.0.0 FastEthernet0/0

ip route 192.168.4.0 255.255.255.0 FastEthernet0/1

!

ip access-list extended acl_jc-farm-tunnel

permit icmp 10.1.0.0 0.0.255.255 192.168.4.0 0.0.0.255

permit tcp 10.1.1.0 0.0.0.255 192.168.4.0 0.0.0.255 eq www

permit tcp 10.1.1.0 0.0.0.255 192.168.4.0 0.0.0.255 eq 443

permit tcp 10.1.1.0 0.0.0.255 192.168.4.0 0.0.0.255 eq 22

ip access-list extended acl_nat

deny ip 10.1.1.0 0.0.0.255 192.168.4.0 0.0.0.255

permit ip 10.1.1.0 0.0.0.255 any

permit ip 10.1.2.0 0.0.0.255 any

permit ip 10.1.3.0 0.0.0.255 any

permit ip 10.1.4.0 0.0.0.255 any

permit ip 10.1.5.0 0.0.0.255 any

I can ping across from each private lan to other, but its about 50% packet loss.

output of sh cry is sa shows QM_IDLE on both sides.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: packet loss on ipsec tunnel

Hi,

Try the following commands on the interfaces:

no ip route-cache

no ip mroute-cache

no ip route-cache cef

no ip route-cache flow

And global:

no ip cef

Please rate if this helped.

Regards,

Daniel

9 REPLIES

Re: packet loss on ipsec tunnel

Hi,

Try the following commands on the interfaces:

no ip route-cache

no ip mroute-cache

no ip route-cache cef

no ip route-cache flow

And global:

no ip cef

Please rate if this helped.

Regards,

Daniel

New Member

Re: packet loss on ipsec tunnel

I was just about to reply that disabling 'ip cef' fixed my problem. Thanks for your reply.

The only problem i have no is that for some reason the ACL's aren't all working. I can ping from one host to another on the remote lan, but thats it. Even though i have entries for 22, 80, and 443 they won't work. any ideas?

New Member

Re: packet loss on ipsec tunnel

nevermind...i forgot to do an 'established' acl for my tcp connections!

Bronze

Re: packet loss on ipsec tunnel

hi

i m unclear about disabling cef!! would uexplain why ??

even though disabling cef it has resolved the issue but why cef must be disabled?? and why cef is programmed by cisco?? what about if you are trying to use MPLS where cef is a mandatory?? what about if you have to use NBAR where cef is also a must???

thankx

Re: packet loss on ipsec tunnel

Hi Kamal,

Check the Caveats section on this:

http://cisco.com/en/US/customer/tech/tk436/tk428/technologies_configuration_example09186a00801e1294.shtml

I belive is just an IOS problem.

But really, ip cef is not that important on a 2-3 interface router. Anyway IPSEC traffic cannot be processed by CEF.

Please rate if this helped.

Regards,

Daniel

Re: packet loss on ipsec tunnel

Hi,

I think only "no ip route-cache cef " is needed.

This way the impact on the router will be minimal and still the VPN will work fine.

Reqards,

Daniel

New Member

Re: packet loss on ipsec tunnel

What IOS version are you using. I beleive this is an IOS issue.

There is a work around available from cisco on this.

New Member

Re: packet loss on ipsec tunnel

I am using Version 12.3(9e) on both endpoints.

Bronze

Re: packet loss on ipsec tunnel

hi

thankx Daniel you ve refreshed my memory for the IPSEC traffic and the CEF.

2718
Views
14
Helpful
9
Replies
CreatePlease login to create content