From mboxrd@z Thu Jan 1 00:00:00 1970 From: papyrus papyruslet@volny.cz Date: Sun, 15 Oct 2000 21:50:02 +0000 Subject: [LARTC] IP tunneling MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0005_01C03702.A291A490" Message-Id: List-Id: To: lartc@vger.kernel.org
This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C03702.A291A490
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I have a problem with GRE tunneling. I read  Advanced-Routing HOWTO
about this and I did all as is written in this documentation. Even the
same example is here which I need for my project.
I want create (by means of GRE tunneling or IP in IP tunneling) virtual
private network VPN - in first phase without IPsec in other phase with
IPsec.
I have two local networks distant apart with two routers. Both routers
have registered IP addresses (I have only two registered IP addresses =
and many
computers in local netwoks which I connected to Internet); first router =
connects
one local network to Internet and second router connects other local =
network=20
to Internet. Computers in both networks have the access to Internet over
routers because I configured IP-Masquerade. Now I want solve the access =
of=20
computer from my first local network to computers from my second local =
network.

So I have network
A:
      network 192.168.1.0
      netmask 255.255.255.0
      router  192.168.1.1 (eth1)
    =20
router is connected to Internet over eth0 - 145.35.162.44 netmask is /21

and network=20
B:
      network 192.168.2.0
      netmask 255.255.255.0
      router  192.168.2.1 (eth1)
    =20
router is connected to Internet over eth0 - 145.35.160.94 netmask is /21 =
          =20

I wrote this two scripts (I use RedHat 6.1 on both routers with kernel =
2.2.12)

file rc.ipip on router A

#!/bin/sh
PATH=3D/sbin:/usr/sbin
echo installing modul...
modprobe ip_gre
echo setting tunl0...
ip tunnel add neta mode gre remote 145.35.160.94 local 145.35.162.44 ttl =
255
echo adding network ariel2...
ip addr add 192.168.1.1 dev neta
ip route add 192.168.2.0/24 dev neta

in file rc.local
.
.
.
/etc/rc.d/rc.ipip

file rc.ipip on router B

#!/bin/sh
PATH=3D/sbin:/usr/sbin
echo installing modul...
modprobe ip_gre
echo setting tunl0...
ip tunnel add netb mode gre remote 145.35.162.44 local 145.35.160.94 ttl =
255=20
echo adding nework ariel...
ip addr add 192.168.2.1 dev netb
ip route add 192.168.1.0/24 dev netb

in file rc.local
.
.
.
/etc/rc.d/rc.ipip

...it's so easy...but
When I start these scripts the error come:=20
RTNETLINK answers: Networking is out of work
Where did I make mistake?

---------------------------------------------
And second thing...
When I tried to take in work IP in IP tunneling I didn't know where to =
find
modul new_tunnel because this modul is'n in my distribution of RedHat. I =
haven't
problem with modul ipip.

I would be very happy if somebody could help me.
thanks,
     Vilem Musil

....sorry for my english

------=_NextPart_000_0005_01C03702.A291A490
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#fdfce1>
<DIV><FONT face=3DArial size=3D2>Hi,<BR>I have a problem with GRE =
tunneling. I=20
read&nbsp; Advanced-Routing HOWTO<BR>about this and I did all as is =
written in=20
this documentation. Even the<BR>same example is here which I need for my =

project.<BR>I want create (by means of GRE tunneling or IP in IP =
tunneling)=20
virtual<BR>private network VPN - in first phase without IPsec in other =
phase=20
with<BR>IPsec.<BR>I have two local networks distant apart with two =
routers. Both=20
routers<BR>have registered IP addresses (I have only two registered IP =
addresses=20
and many<BR>computers in local netwoks which I connected to Internet); =
first=20
router connects<BR>one local network to Internet and second router =
connects=20
other local network <BR>to Internet. Computers in both networks have the =
access=20
to Internet over<BR>routers because I configured IP-Masquerade. Now I =
want solve=20
the access of <BR>computer from my first local network to computers from =
my=20
second local network.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>So I have=20
network<BR>A:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; network=20
192.168.1.0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; netmask=20
255.255.255.0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; router&nbsp; 192.168.1.1 =

(eth1)<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>router is connected to Internet =
over eth0=20
- 145.35.162.44 netmask is /21</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and network=20
<BR>B:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; network=20
192.168.2.0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; netmask=20
255.255.255.0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; router&nbsp; 192.168.2.1 =

(eth1)<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>router is connected to Internet =
over eth0=20
- 145.35.160.94 netmask is=20
/21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I wrote this two scripts (I use RedHat =
6.1 on both=20
routers with kernel 2.2.12)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>file rc.ipip on router A</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>#!/bin/sh<BR>PATH=3D/sbin:/usr/sbin<BR>echo=20
installing modul...<BR>modprobe ip_gre<BR>echo setting tunl0...<BR>ip =
tunnel add=20
neta mode gre remote 145.35.160.94 local 145.35.162.44 ttl 255<BR>echo =
adding=20
network ariel2...<BR>ip addr add 192.168.1.1 dev neta<BR>ip route add=20
192.168.2.0/24 dev neta</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>in file=20
rc.local<BR>.<BR>.<BR>.<BR>/etc/rc.d/rc.ipip</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>file rc.ipip on router B</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>#!/bin/sh<BR>PATH=3D/sbin:/usr/sbin<BR>echo=20
installing modul...<BR>modprobe ip_gre<BR>echo setting tunl0...<BR>ip =
tunnel add=20
netb mode gre remote 145.35.162.44 local 145.35.160.94 ttl 255 <BR>echo =
adding=20
nework ariel...<BR>ip addr add 192.168.2.1 dev netb<BR>ip route add=20
192.168.1.0/24 dev netb</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>in file=20
rc.local<BR>.<BR>.<BR>.<BR>/etc/rc.d/rc.ipip</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>...it's so easy...but<BR>When I start =
these scripts=20
the error come: <BR>RTNETLINK answers: Networking is out of =
work<BR>Where did I=20
make mistake?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>---------------------------------------------<BR>And second=20
thing...<BR>When I tried to take in work IP in IP tunneling I didn't =
know where=20
to find<BR>modul new_tunnel because this modul is'n in my distribution =
of=20
RedHat. I haven't<BR>problem with modul ipip.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I would be very happy if somebody could =
help=20
me.<BR>thanks,<BR>&nbsp;&nbsp;&nbsp;&nbsp; Vilem Musil</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>....sorry for my =
english</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C03702.A291A490--