Results 1 to 1 of 1
Thread: IP in IP tunnel set up.
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Apr 2004
IP in IP tunnel set up.
I just ran into a situation where I need to get a simple IP in IP tunnel set up. This is for a situation where I want to set up a static IP address for my Linux Web Server, Users will connect via remote IP in IP servers (more than one) the users have dynamic IP address.
I'm trying to follow the "tunneled host configuration".
I have the IPIP tunnel configured in the kernel (2.4.25 and 2.4.7) and ifconfig shows the tunl0 interface.
The instructions say to do this on the router (I've substituted
my actual addresses):
Tunnel device configuration
] iptunnel add tunl1 mode ipip remote RemoteServeIP
] ifconfig tunl1 LocalIP up
] route add -host UsersIP gw GW tunl1
The ifconfig works just fine, but
** !! i dont have the UsersIP (users have dynamic IP address) !! ***
Without this route line the traffic back to the users is IP and not IP in IP (via eth0 and not via tunl1).
Can i config my Linux to send IP in IP to all traffic that was original send to my Linux IP in IP ?
Ifconfig shows my tunnel interface like this:
tunl1 Link encap:IPIP Tunnel HWaddr
inet addr:10.6.1.249 P-t-P:10.6.1.249 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1
RX packets:425 errors:0 dropped:0 overruns:0 frame:0
TX packets:400 errors:0 dropped:0 overruns:0 carrier:0
tunl0: ip/ip remote any local any ttl inherit nopmtudisc
gre0: gre/ip remote any local any ttl inherit nopmtudisc
tunl1: ip/ip remote 192.168.10.71 local any ttl inherit
Does anyone know how to get IPIP Tunneling working?
Linux RH 7.1
Kernel 2.4.25 (Tunneling And Iptables support)
Does anyone know of a more dynamic way (more than one tunl1, tunl2..)