All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Garvey <tmwg-netfilter@inxservices.com>
To: netfilter@lists.samba.org
Subject: Re: Requestion for help with GRE tunnel
Date: Tue, 18 Jun 2002 08:59:53 -0700	[thread overview]
Message-ID: <20020618085953.C2662@inxservices.com> (raw)
In-Reply-To: <20020618063945.A2662@inxservices.com>; from tmwg-netfilter@inxservices.com on Tue, Jun 18, 2002 at 06:39:45AM -0700

   Thanks for the fast response. I remembered that I have a spare IP on
an ADSL, so changed the setup as follows, based on your mention of a
requirement for a router. This setup still lets me experiment with both
computers in the same room, but is more similar to the final desired
setup:

eth0: 192.168.2.2 ---------- gigE switch ------ eth0: 192.168.1.12
------------------------			----------------------
| salesns.inxsales.lan |			| ns.inxservices.com |
------------------------			----------------------
eth1: 63.193.79.20 --------- 100 switch -------	eth2: 63.193.79.19
				|		eth1: 66.134.162.140
			    ADSL modem			|
			    	|		  SDSL modem/hub
				|			|
				------- internet --------

GRE tunnel (withvan):				GRE tunnel (withsales):
63.193.79.20 -> 63.193.79.19			63.193.79.19 -> 63.193.79.20
IP: 192.168.3.1					IP: 192.168.3.2
ip route add 192.168.1.0/24 dev withvan		ip route add 192.168.2.0/24
							dev withsales

I can ping 63.193.79.19 from 63.193.79.20.
I can ping 63.193.79.20 from 63.193.79.19.
I cannot ping 192.168.1.12 from salesns.

Here are the commands I'm using:

192.168.1.12:

/sbin/ip link set dev eth0 up mtu 1500
/sbin/ip address add 192.168.1.12/24 broadcast 192.168.1.255 dev eth0

/sbin/ip link set dev eth1 up
/sbin/ip address add 66.134.162.140/29 broadcast 66.134.162.143 dev eth1

/sbin/ip link set dev eth2 up
/sbin/ip address add 63.193.79.19/29 broadcast 63.193.79.23 dev eth2

/sbin/ip link set dev lo up
/sbin/ip address add 127.0.0.1/8 broadcast + dev lo

/sbin/ip route add default via 63.193.79.17 dev eth2

/sbin/ip tunnel add withsales mode gre remote 63.193.79.20 local 63.193.79.19 ttl 255 dev eth0
/sbin/ip link set withsales up
/sbin/ip address add 192.168.3.2/24 broadcast + dev withsales
/sbin/ip route add 192.168.2.0/24 dev withsales

192.168.2.2:

/sbin/ip link set dev eth0 up mtu 1500
/sbin/ip address add 192.168.2.2/24 broadcast 192.168.2.255 dev eth0

/sbin/ip link set dev eth1 up
/sbin/ip address add 63.193.79.20/29 broadcast 63.193.79.23 dev eth1

/sbin/ip link set dev lo up
/sbin/ip address add 127.0.0.1/8 broadcast + dev lo

/sbin/ip route add default via 63.193.79.20 dev eth1

/sbin/ip tunnel add withvan mode gre remote 63.193.79.19 local 63.193.79.20 ttl 255 dev eth0
/sbin/ip link set withvan up
/sbin/ip address add 192.168.3.1/24 broadcast + dev withvan
/sbin/ip route add 192.168.1.0/24 dev withvan


  parent reply	other threads:[~2002-06-18 15:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-18 13:39 Requestion for help with GRE tunnel George Garvey
2002-06-18 14:07 ` Ramin Alidousti
2002-06-18 15:59 ` George Garvey [this message]
2002-06-18 17:53   ` Ramin Alidousti
2002-06-18 21:00     ` George Garvey
2002-06-18 20:55 ` Tony Earnshaw
2002-06-18 21:03   ` Tony Earnshaw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020618085953.C2662@inxservices.com \
    --to=tmwg-netfilter@inxservices.com \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.