I have some problems getting IP tunneling working:

Here is route configuration before I begin:

~ # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    
Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        
0 dummy

If I try to configure like that(As said in NET-3-HOWTO) , It doesn't 
work

~ # route add -host 192.168.7.1 gw 192.168.1.7
~ # modprobe ipip
~ # ifconfig tunl0 192.168.3.4 netmask 255.255.255.255
~ # route add -net 194.6.133.0 netmask 255.255.255.0 gw 192.168.7.1 
tunl0
SIOCADDRT: Network is unreachable

If I declare tunl0 pointopoint, It works fine, but I get a route to 
IPIP 
decapsultor via tunl0, which I shouldn't get I believe (even If it 
wont hurt, 
as the real route is before in routing table)

~ # route add -host 192.168.7.1 gw 192.168.1.7
~ # modprobe ipip
~ # ifconfig tunl0 192.168.3.4 netmask 255.255.255.255 pointopoint 
192.168.7.1
~ # route add -net 194.6.133.0 netmask 255.255.255.0 gw 192.168.7.1 
tunl0
~ # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    
Use Iface
192.168.7.1     192.168.1.7     255.255.255.255 UGH   0      0        
0 dummy
192.168.7.1     0.0.0.0         255.255.255.255 UH    0      0        
0 tunl0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        
0 dummy
194.6.133.0     192.168.7.1     255.255.255.0   UG    0      0        
0 tunl0

And as I can see below, ifconfig -a (net-tools-1.48) doesn't show 
that
tunl0 is pointopoint interface nor it shows decalsulator's address

dummy     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.1.1  Bcast:192.168.1.255  
Mask:255.255.255.0
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1603 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:71 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

tunl0     Link encap:IPIP Tunnel  HWaddr
          inet addr:192.168.3.4  Mask:255.255.255.255
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

Can someone tell me if there is bug in tunnelling or if I am misdoing 
sth

Christophe Leroy

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to