cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2099
Views
5
Helpful
2
Replies

IPSec with secondary IP on interface

tato386
Level 6
Level 6

I have an IOS router with two IPs on one interface. I need to use this interface to establish an IPSec tunnel. I would like to use the primary IP as the crypto endpoint when the router uses its primary IP and the second IP as the endpoint when the router uses the secondary IP to establish a tunnel. Right now the router always uses the primary IP as the endpoint. How can I get the router to automatically use the second IP as endpoint without having to manually change the config?

Thanks,

Diego

2 Replies 2

gfullage
Cisco Employee
Cisco Employee

You can't do this. The router will always use the primary IP on the outgoing interface as the IPSec source, unless you use the "cry map local-address ..." command. Even using this command though, you can only define an interface for it to use, and it'll still always use the primary IP address on that interface.

bluesteel
Level 1
Level 1

as stated by gfullage you can not use the secondary IP

 

 But, you can use a loopback interface as IPSEC source