I'm trying to find a way to make a simple ipip Tunnel go down when the remote router isn't online.
I need this because I have a remote router with two WANs directly connected to the same remote site. From my local router I've set up 2 Tunnels IPIP to both those WANs, then I've set up 2 static routes to that remote site with different "distances". The problem is, when one of the remote WANs is down, no matter what, both tunnels stay up according to the local router, so it still tries to forward traffic to the tunnel with the lowest distance, even if that is the broken link.
I even created a Tunnel with a non-existent destination ip, and the router still says the Tunnel is up! I also tried fiddling with the keepalives and other options inside the tunnel configuration to no avail...
any help is greatly appreciated TIA
Didn't find your answer? Ask the community — no account required.
B
bod43
Enable keepalives on the tunnel interfaces.
R
rooy
I already tried setting keepalives but the tunnel is always up up, even with a random destination ip. I tried also non standard values for the keepalive time-out and retries settings, but nothing changes. I don't know, maybe I'm missing the obvious
this is my simple Tunnel config:
interface Tunnel124 ip address 124.124.124.124 255.255.255.248 keepalive 10 3 tunnel source A.B.C.D (my WAN Ip) tunnel destination 7.7.7.7 (I chose a random IP here; 7.7.7.7 won't even respond to pings) tunnel mode ipip
and this is the tunnel status, still Up Up even after 10 minutes:
Router#sh int tun 124 Tunnel124 is up, line protocol is up Hardware is Tunnel Internet address is 124.124.124.124/29 MTU 17920 bytes, BW 100 Kbit/sec, DLY 50000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation TUNNEL, loopback not set Keepalive set (10 sec), retries 3 Tunnel source A.B.C.D, destination 7.7.7.7 Tunnel protocol/transport IP/IP Tunnel TTL 255 Fast tunneling enabled Tunnel transport MTU 1480 bytes Tunnel transmit bandwidth 8000 (kbps) Tunnel receive bandwidth 8000 (kbps) Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops:
interface Tunnel5 ip address 1.1.1.1 255.255.255.0 keepalive 10 3 tunnel source Dialer0 tunnel destination 2.2.2.2 ! change to GRE - the default - not ipip
Tunnel5 1.1.1.1 YES manual up down
OK, looks like IP in IP tunnels do not support keepalives. I have always just used GRE which is the default, sorry for the confusion.
By the way the debug output seems a bit confusing.
router#sh deb General-purpose tunnel: Tunnel keepalive debugging is on
All the wrong way round source is 92.x.x.x, dest is 2.2.2.2. c870-advipservicesk9-mz.124-15.T7.bin.
D
Dan Lanciani
| By the way the debug output seems a bit confusing. | | router#sh deb | General-purpose tunnel: | Tunnel keepalive debugging is on | | May 28 23:47:42.516 BST: Tunnel5: sending keepalive, 2.2.2.2->92.x.x.x | (len=3D24 ttl=3D255), counter=3D29 | | All the wrong way round source is 92.x.x.x, dest is 2.2.2.2.
That's the inner (i.e., return) packet. See:
formatting link
Dan Lanciani ddl@danlan.*com
R
rooy
Thanks! I tried without ipip and it works as expected now. I'll keep this limitation in mind next time, and I'll probably stick with the default GRE from now on.
B
bod43
Thanks. I wasn't losing all that much sleep over it however it is always good to have a mystery solved:-)
The description at the link suggests to me that the keepalive may be returned even if there is no remote tunnel interface configured. I may have to do some reading on GRE.
D
Dan Lanciani
In article , snipped-for-privacy@hotmail.co.uk (bod43) writes: | On 29 May, 04:46, ddl@danlan.*com (Dan Lanciani) wrote: | > In article , snipped-for-privacy@hotmail.co.uk (bod43) writes: | > | May 28 23:47:42.516 BST: Tunnel5: sending keepalive, 2.2.2.2->92.x.x.x | > | (len=3D3D24 ttl=3D3D255), counter=3D3D29 | > | | > | All the wrong way round source is 92.x.x.x, dest is 2.2.2.2. | >
| | Thanks. I wasn't losing all that much sleep over it | however it is always good to have a mystery solved:-) | | The description at the link suggests to me that | the keepalive may be returned even if there is | no remote tunnel interface configured.
There has to be a matching (source/destination and key if configured) remote tunnel interface for the return packet to be decapsulated; however, it may be possible to have that interface (mis)configured such that the tunnel doesn't really work even though the keepalive does. Of course, that's not what keepalives are meant to guard against and for most purposes they do what you want.
Dan Lanciani ddl@danlan.*com
B
bod43
That seems to sum up the cisco philosophy, from the point of view of a user of the kit. :-)))
B
bod43
It's always a good plan to stick with the cisco defaults. They do have a clue:-)
Of course if you understand what is going on and have specific requirenents then do whatever you want.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.