IPIP Tunnelling "Network is Unreachable"

IPIP Tunnelling "Network is Unreachable"

Post by David Nillese » Wed, 11 Aug 1999 04:00:00



        Hi,
        I am kind of desperate at this point as I need to get this working for
a client ASAP.
        I follow the instructions in the NET-3-HOWTO on how to esatablish a
tunnel. I make sure i have the ipip module loaded. I bring up the
ethernet interface. Then i bring up the tunnel with
ifconfig tunl0 aaa.bbb.ccc.ddd
i try and establish the route with:
route add -net 192.168.1.0/24 gw 10.2.0.1 tunl0
        (just like it says)
and i get "SICOADDRT: Network is unreachable" or something similar.
        I do have a route set to 10.2.0.1 and i can ping it.
        The ipip module is also loaded on the other end of the tunnel.
        It's like it is trying to use the tunl0 as a device instead of a
tunnel.
        I am running RedHat 6.0 with the latest "official" kernel and two
via-rhine NIC's.
        Any suggestions are VERY welcome.
        Thanks,
--
    David Nillesen

Northnet Internet Services
+612 67749300

For info on what this jumble below is look right at the bottom.
Type Bits/KeyID    Date       User ID

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3ia

mQENAzSuzZAAAAEIALp91sG9Nq85LKUmvQJlF1imz89BSaoJGb5Dx3pSMhsCztFo
l9iLvGDKQoDXFw7g0FKHme2mBypIeNctBnFCC57xFKDjbJz4KIljN1ngPewgwH2e
PlR0Hm/ocIkuh33HnueJYUC8d8bmAACGAavt40Y+5nVxXcbz+6lGUXEzcdnlKh/E
Oo5MDJnLk1cVl8YgdILKT584oCBWbfBvS9pwNyjwX+HW0cX0f8cOLlGJJNtOtUnm
fff1eV5ZXNXEE7YM2uf3p5u/eCtM0poJA8yY3MwhPiu9a4sjRe7zFpBdTGIBJB+8
iEX7IbQf/NsT8hqkg44IpujnjBGBPqGUAbvKTj0ABRG0J0RhdmlkIEEgTmlsbGVz
ZW4gPGRhdmVAbm9ydGhuZXQuY29tLmF1PokBFQMFEDSuzZA+oZQBu8pOPQEB5j4H
/169BcOssg2lXzTFxmR2ifF1rd0k5PlnCSVEE6+h6EtvZ4uPc+zJTbBLqszV2kfr
WRoiSWTzDVMySMYFmOl+azdkedgqS6GBOl+qBC0w88slFj6kXP1lzLuEDT1Hoxta
NQeleOU0hDibnv0losv4rcis7cThD8YClqkiRStw7IBEgStA3d8o+CMGzdzgvMx4
bqTPDRaTSmGA2Pay5am6/uT1gvEbrjSb8QbDkpKav1cUFYOyIQ6k3XoNZX8eUeqB
kl8c4mg3D0Z9pAY

 
 
 

IPIP Tunnelling "Network is Unreachable"

Post by Guy Lancaste » Fri, 13 Aug 1999 04:00:00



>         I follow the instructions in the NET-3-HOWTO on how to esatablish a
> tunnel. I make sure i have the ipip module oaded. I bring up the ethernet
> interface. Then i bring up the tunnel with ifconfig tunl0 aaa.bbb.ccc.ddd i try
> and establish the route with:
> route add -net 192.168.1.0/24 gw 10.2.0.1 tunl0
>         (just like it says)
> and i get "SICOADDRT: Network is unreachable" or something similar.
>         I do have a route set to 10.2.0.1 and i can ping it.
>         The ipip module is also loaded on the other end of the tunnel.
>         It's like it is trying to use the tunl0 as a device instead of a tunnel.

>         I am running RedHat 6.0 with the latest "official" kernel and two
> via-rhine NIC's.

   You have hopefully already found your answers but in case you haven't, it seems
that the new kernel 2.2 has changed things and the documents haven't caught up.
You'll probably find that when you created the tunl0 interface, that you
automatically got a network route for it.  This will conflict with with the next
step so remove it.

route del -net aaa.bbb.ccc.ddd/24 tunl0

Then you need to add a route to the remote gateway, then add the tunnel route, and
finally remove the route to the gateway.

route add -host 10.2.0.1 tunl0
route add -net 192.168.1.0/24 gw 10.2.0.1 tunl0
route del -host 10.2.0.1 tunl0

This seems to work.  Does anybody know why these strange steps are required (if
indeed they are)?

In finding this out, I came across references to a program called ip that seems to
be easier to use for this.
(http://snafu.freedom.org/linux2.2/tunnel-notes.html).  Anybody know what this is?

Thanks.

       Guy

 
 
 

1. SMAIL problems: "lock failed", and "network is unreachable."

        Well, I got smail working so that it went through and delivered
all of the mail that wasn't delivered the last two months. Now I can't
send new mail to anyone. Here's a brief segment of what was in
/usr/spool/smail/logfile:



10/12/94 12:42:04: [m0qv6ke-0004mgC] received
|            from: mark
|         program: sendmail

|            size: 631 bytes

10/12/94 12:45:56: pid 253: new config files, exec(/usr/lib/sendmail)
10/12/94 12:45:56: pid 6860: smail daemon started
10/12/94 13:11:28: open_spool: /var/spool/smail/input/0qnI1X-0004o5C: lock failed: File exists
10/12/94 13:11:29: open_spool: /var/spool/smail/input/0qnI1X-0004o5C: lock failed: File exists
10/12/94 13:11:29: open_spool: /var/spool/smail/input/0qoews-0004oHC: lock failed: File exists
10/12/94 13:30:57: open_spool: /var/spool/smail/input/0qpm1L-0004oQC: lock failed: File exists
10/12/94 13:30:58: open_spool: /var/spool/smail/input/0qv6ke-0004mgC: lock failed: File exists

        I don't know if that help anyone or not. I'm running linux
1.1.45, and smail 3.1.28. My system is currently not connected to the
internet, though that shouldn't matter because I'm just trying to send
mail to myself.

        Anyone have any clues, or can point me into a direction to look?
If you need more information, email me.

        Much thanks.

        -Mark
--
"Key chuckles. 'If Skinny Puppy, in terms of the movie _Alien_, is a
chest-burster, then Doubting Thomas is more of a face-hugger,' he informs,
as if that were an explanation."
                                                        -Keyboard, Jan '92

2. Which SCSI hostadapter with linuxppc?

3. GETSERVBYNAME()????????????????????"""""""""""""

4. C shell hangs after executing a command on solaris 2.5

5. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

6. (lost) F1/LMB menu in MetroX

7. "Novell-like","non-TCP/IP","networking" OS to place Unix

8. Help with Kernel Panic

9. Network setup problem with Redhat 6.1 -- "network unreachable"

10. menu cleanup: "Networking support" -> "Networking options"

11. Type "(", ")" and "{", "}" in X...

12. "Network is unreachable"

13. MudOS 20.23 --> "Network unreachable"