All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] A  basic setup  question
@ 2002-01-19 22:49 Ali badilli
  2002-01-20  2:17 ` Greg Scott
  2002-01-20 13:06 ` Stef Coene
  0 siblings, 2 replies; 3+ messages in thread
From: Ali badilli @ 2002-01-19 22:49 UTC (permalink / raw)
  To: lartc

Hi,

I have just started to build a small linux network. I
have the following question. If anybody helps I will
be really appreciated.

I have installed linux 7.2 in machine A, B, C and
connected them as follows.

    A-----------C----------B
     eth0   eth0 eth1    eth0

As it is shown in figure C has two ethernet interfaces
eth0 connected to A and eth1 connected to B.

I have assigned the addresses as follows:

A: 192.20.1.3 (eth0) mask:255.255.255.0 default
gw:192.20.1.1 

B: 192.20.2.3 (eth0) mask:255.255.255.0 default
gw:192.20.2.1 

C: 192.20.1.1 (eth0) mask:255.255.255.0 
                     default gw:192.20.2.1

and 192.20.2.1 (eth1) mask:255.255.255.0 
                      default gw:192.20.1.1 

C acts as gateway between between A and B.


I configure routing table as follows:


A: destination network   network mask   gateway 
   0.0.0.0                0.0.0.0      92.20.1.1      

192.20.1.0             255.255.255.0  192.20.1.3


B:destination network   network mask   gateway 
   0.0.0.0                0.0.0.0      92.20.2.1      

192.20.2.0             255.255.255.0  192.20.2.3

C:destination network   network mask   gateway 
192.20.2.0             255.255.255.0  192.20.2.1
(eth0)
192.20.1.0             255.255.255.0  192.20.1.1
(eth1)

I can ping from A to 192.20.2.1 but I cannot ping to
192.20.2.3(which is B)

similarly, 

I can ping from B to 192.20.1.1 but cannot ping to
192.20.1.3 (which is A).

In other word, Both A and B can ping the interfaces of
C which belong to different subnets, but A and B
cannot ping each other.

Am I missing some basic configuration things?, Should
I install any other patch or etc?, 

I will be really appreciated If some body give me
clear explanation. Sorry for asking a simple question.

Haci













   























__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [LARTC] A  basic setup  question
  2002-01-19 22:49 [LARTC] A basic setup question Ali badilli
@ 2002-01-20  2:17 ` Greg Scott
  2002-01-20 13:06 ` Stef Coene
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Scott @ 2002-01-20  2:17 UTC (permalink / raw)
  To: lartc

Make sure you are doing this on machine C:

echo "Turning on IP forwarding"
echo "1" > /proc/sys/net/ipv4/ip_forward

That turns on the routing code on machine C.

- Greg Scott



-----Original Message-----
From: Ali badilli [mailto:hasanoglu69@yahoo.com]
Sent: Saturday, January 19, 2002 4:50 PM
To: lartc@mailman.ds9a.nl
Subject: [LARTC] A basic setup question


Hi,

I have just started to build a small linux network. I
have the following question. If anybody helps I will
be really appreciated.

I have installed linux 7.2 in machine A, B, C and
connected them as follows.

    A-----------C----------B
     eth0   eth0 eth1    eth0

As it is shown in figure C has two ethernet interfaces
eth0 connected to A and eth1 connected to B.

I have assigned the addresses as follows:

A: 192.20.1.3 (eth0) mask:255.255.255.0 default
gw:192.20.1.1 

B: 192.20.2.3 (eth0) mask:255.255.255.0 default
gw:192.20.2.1 

C: 192.20.1.1 (eth0) mask:255.255.255.0 
                     default gw:192.20.2.1

and 192.20.2.1 (eth1) mask:255.255.255.0 
                      default gw:192.20.1.1 

C acts as gateway between between A and B.


I configure routing table as follows:


A: destination network   network mask   gateway 
   0.0.0.0                0.0.0.0      92.20.1.1      

192.20.1.0             255.255.255.0  192.20.1.3


B:destination network   network mask   gateway 
   0.0.0.0                0.0.0.0      92.20.2.1      

192.20.2.0             255.255.255.0  192.20.2.3

C:destination network   network mask   gateway 
192.20.2.0             255.255.255.0  192.20.2.1
(eth0)
192.20.1.0             255.255.255.0  192.20.1.1
(eth1)

I can ping from A to 192.20.2.1 but I cannot ping to
192.20.2.3(which is B)

similarly, 

I can ping from B to 192.20.1.1 but cannot ping to
192.20.1.3 (which is A).

In other word, Both A and B can ping the interfaces of
C which belong to different subnets, but A and B
cannot ping each other.

Am I missing some basic configuration things?, Should
I install any other patch or etc?, 

I will be really appreciated If some body give me
clear explanation. Sorry for asking a simple question.

Haci













   























__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] A  basic setup  question
  2002-01-19 22:49 [LARTC] A basic setup question Ali badilli
  2002-01-20  2:17 ` Greg Scott
@ 2002-01-20 13:06 ` Stef Coene
  1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2002-01-20 13:06 UTC (permalink / raw)
  To: lartc

Did you enaled ip-forwarding on machine C ?
echo "1" > /proc/sys/net/ipv4/ip_forward

Stef

On Saturday 19 January 2002 23:49, Ali badilli wrote:
> Hi,
>
> I have just started to build a small linux network. I
> have the following question. If anybody helps I will
> be really appreciated.
>
> I have installed linux 7.2 in machine A, B, C and
> connected them as follows.
>
>     A-----------C----------B
>      eth0   eth0 eth1    eth0
>
> As it is shown in figure C has two ethernet interfaces
> eth0 connected to A and eth1 connected to B.
>
> I have assigned the addresses as follows:
>
> A: 192.20.1.3 (eth0) mask:255.255.255.0 default
> gw:192.20.1.1
>
> B: 192.20.2.3 (eth0) mask:255.255.255.0 default
> gw:192.20.2.1
>
> C: 192.20.1.1 (eth0) mask:255.255.255.0
>                      default gw:192.20.2.1
>
> and 192.20.2.1 (eth1) mask:255.255.255.0
>                       default gw:192.20.1.1
>
> C acts as gateway between between A and B.
>
>
> I configure routing table as follows:
>
>
> A: destination network   network mask   gateway
>    0.0.0.0                0.0.0.0      92.20.1.1
>
> 192.20.1.0             255.255.255.0  192.20.1.3
>
>
> B:destination network   network mask   gateway
>    0.0.0.0                0.0.0.0      92.20.2.1
>
> 192.20.2.0             255.255.255.0  192.20.2.3
>
> C:destination network   network mask   gateway
> 192.20.2.0             255.255.255.0  192.20.2.1
> (eth0)
> 192.20.1.0             255.255.255.0  192.20.1.1
> (eth1)
>
> I can ping from A to 192.20.2.1 but I cannot ping to
> 192.20.2.3(which is B)
>
> similarly,
>
> I can ping from B to 192.20.1.1 but cannot ping to
> 192.20.1.3 (which is A).
>
> In other word, Both A and B can ping the interfaces of
> C which belong to different subnets, but A and B
> cannot ping each other.
>
> Am I missing some basic configuration things?, Should
> I install any other patch or etc?,
>
> I will be really appreciated If some body give me
> clear explanation. Sorry for asking a simple question.
>
> Haci
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

-- 

stef.coene@docum.org
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"
     
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-20 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-19 22:49 [LARTC] A basic setup question Ali badilli
2002-01-20  2:17 ` Greg Scott
2002-01-20 13:06 ` Stef Coene

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.