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/
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/
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"