From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Glynn S. Condez" Date: Wed, 13 Feb 2002 03:30:55 +0000 Subject: [LARTC] Followup Question: Help with GRE Tunneling MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_010B_01C1B481.E676A2C0" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_010B_01C1B481.E676A2C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I would like to make both Network A and B have the same subnet. I did a = changes to my config pls correct if this will work. #Network A /sbin/echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ #/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ # this will be = omitted /sbin/insmod ip_gre /sbin/ip tunnel add alas mode gre remote x.x.x.x local y.y.y.y ttl 255 /sbin/ip link set netb up /sbin/ip addr add 192.168.1.1 dev netb /sbin/ip route add 192.168.1.0/24 dev netb # this option dont work coz = theres an existing route in routing table and the routing table is set = to eth1 interface. so if i force = to add it using "route add -net = 192.168.1.0 netmask 255.255.255.0 dev neta"=20 it = cant ping the internal ip's only the tunnel is working :( -------------------------------------------------------------------------= ----- #Network B /sbin/echo 1 > /proc/sys/net/ipv4/ip_forward #/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ # this will be = omitted /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ /sbin/insmod ip_gre /sbin/ip tunnel add text mode gre remote y.y.y.y local x.x.x.x ttl 255 /sbin/ip link set neta up /sbin/ip addr add 192.168.1.2 dev neta /sbin/ip route add 192.168.1.0/24 dev neta # this option dont work = coz theres an existing route in routing table and the routing table is = set to eth1 interface. so if i force = to add it using "route add -net = 192.168.1.0 netmask 255.255.255.0 dev neta"=20 it = cant ping the internal ip's only the tunnel is working :( Pls check correct this config if its possible to work. Thanks ------=_NextPart_000_010B_01C1B481.E676A2C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I would like to make both Network A and = B have the=20 same subnet. I did a changes to my config pls correct if this will=20 work.
 
#Network A
/sbin/echo 1 >=20 /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -A forward -s = 192.168.1.0/24 -j=20 MASQ
#/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ   = # this=20 will be omitted
/sbin/insmod ip_gre

/sbin/ip tunnel add alas mode gre remote x.x.x.x local y.y.y.y = ttl=20 255
/sbin/ip link set netb up
/sbin/ip addr add 192.168.1.1 dev=20 netb
/sbin/ip route add 192.168.1.0/24 dev netb   # this = option=20 dont work coz theres an existing route in routing table and the routing = table is=20 set to eth1 interface. so if i force     =    =20             =    =20             =    =20             =    =20         =       =20 to add it using "route add -net 192.168.1.0  netmask=20 255.255.255.0 dev neta"
           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =      =20 it cant ping the internal ip's only the tunnel is working :(
 
 
----------------------------------------------------------------= --------------
 
#Network B
/sbin/echo 1 >=20 /proc/sys/net/ipv4/ip_forward
#/sbin/ipchains -A forward -s = 192.168.2.0/24 -j=20 MASQ  # this will be omitted
/sbin/ipchains -A forward -s = 192.168.1.0/24=20 -j MASQ
 
/sbin/insmod ip_gre
/sbin/ip tunnel = add text=20 mode gre remote y.y.y.y local x.x.x.x ttl 255
/sbin/ip link set neta=20 up
/sbin/ip addr add 192.168.1.2 dev neta
/sbin/ip route add=20 192.168.1.0/24 dev neta    # this option dont work coz = theres an=20 existing route in routing table and the routing table is set to eth1 = interface.=20 so if i force          =20             =    =20             =    =20             =    =20           to add it = using=20 "route add -net 192.168.1.0  netmask 255.255.255.0 dev neta"=20
           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =      =20 it cant ping the internal ip's only the tunnel is working = :(
 
Pls check correct this config if its = possible to=20 work. Thanks
 
------=_NextPart_000_010B_01C1B481.E676A2C0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/