08-09-2012 02:57 AM - edited 03-04-2019 05:13 PM
Hello
I've configured encryption between site A and site B as followed:
On site A, this my configuration. As you can see, all traffic going through the interface Gi0/2/1 is encrypted.
crypto ipsec transform-set MyProfile-Trans esp-aes 256 esp-sha-hmac
!
crypto ipsec profile MyProfile
set transform-set MyProfile-Trans
interface Tunnel110
description *** Tunnel to SITE B ***
bandwidth 1000000
ip address 171.0.103.1 255.255.255.252
tunnel source GigabitEthernet0/2/1
tunnel mode ipsec ipv4
tunnel destination 171.0.98.146
tunnel protection ipsec profile MyProfile
interface GigabitEthernet0/2/1
description *** Interface to SITE B ***
ip address 171.0.98.41 255.255.255.252
ip ospf hello-interval 5
I would like now to exclude some addresses from this tunnel. What is the best way to do so?
Thank you
Elise
08-09-2012 03:03 AM
You can use policy-based-routing (PBR) to route some traffic a different way:
http://www.cisco.com/en/US/partner/docs/ios/12_2/ip/configuration/guide/1cfindep.html#wp1001398
--
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni
08-09-2012 05:53 AM
08-09-2012 06:39 AM
Where have you seen that statement? I'm not aware of that command in that place.
But anyhow it would be the wrong place to achieve your goal.
What addresses do you want to exclude? Specific sources or specific destination-addresses.
For sources, there is only PBR. For destination-addresses you can tweak your routing-protocol to anounce more specific host-routes on the preferred way.
--
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide