[LARTC] Gre Tunneling Problem

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a multi-part message in MIME format.

------=_NextPart_000_0108_01C196D9.21C7DAE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello everyone, I have a problem regarding gre tunneling, I have two =
linux box both of them has a private network and the linux A is =
connected to the internet via wireless radio and the other linux B is =
connected to the internet via lease line. Here is the setup of my two =
linux box

Linux A
eth0 =3D 203.189.x.1 (internet)
eth1 =3D 192.168.1.1 (going to hub private network)

Linux B
eth0 =3D 205.198.x.1 (internet)
eth1 =3D 192.168.2.1 (going to hub private network)

here is my configuration in Linux A and B. I also load the modules =
needed (insmod ip_gre)

Linux A
ip tunnel add netb mode gre remote 205.198.x.1 local 203.189.x.1 ttl 255
ip link set netb up
ip addr add 192.168.1.1 dev netb
ip route add 192.168.2.0/24 dev netb

Linux B
ip tunnel add neta mode gre remote 203.189.x.1 local 205.198.x.1 ttl 255
ip link set neta up
ip addr add 192.168.2.1 dev neta
ip route add 192.168.1.0/24 dev neta

I could ping both sides the eth0 and also the eth1 with is for the =
private network, here is my problem i couldnt ping the other private ip =
addresses which my eth1 is connected to the hub, anyone can help me, =
whats my error. pls reply asap. thanks


Glynn Condez

------=_NextPart_000_0108_01C196D9.21C7DAE0
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello everyone, I have a problem =
regarding gre=20
tunneling, I have two linux box&nbsp;both of them has a private network =
and the=20
linux A is connected to the internet via wireless radio and the other =
linux B is=20
connected to the internet via lease line. Here is the setup of my two =
linux=20
box</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Linux A</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>eth0 =3D 203.189.x.1 =
(internet)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>eth1 =3D 192.168.1.1 (going to hub =
private=20
network)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Linux B</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>eth0 =3D 205.198.x.1 =
(internet)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>eth1 =3D 192.168.2.1 (going to hub =
private=20
network)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>here is my configuration in Linux A and =
B. I also=20
load the modules needed (insmod ip_gre)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Linux A</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip tunnel add netb mode gre remote =
205.198.x.1=20
local 203.189.x.1 ttl 255</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip link set netb up</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip addr add 192.168.1.1 dev =
netb</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip route add 192.168.2.0/24 dev =
netb</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Linux B</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip tunnel add neta mode gre remote =
203.189.x.1=20
local 205.198.x.1 ttl 255</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip link set neta up</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip addr add 192.168.2.1 dev =
neta</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip route add 192.168.1.0/24 dev =
neta</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I could ping both sides the eth0 and =
also the eth1=20
with is for the private network, here is my problem i couldnt ping the =
other=20
private ip addresses which my eth1 is connected to the hub, anyone can =
help me,=20
whats my error. pls reply asap. thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Glynn Condez</FONT></DIV></BODY></HTML>

------=_NextPart_000_0108_01C196D9.21C7DAE0--




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux