[1309] in RedHat Linux List
Re: redhat-digest Digest V96 #395
daemon@ATHENA.MIT.EDU (Kenneth C. King)
Sun Oct 27 17:28:40 1996
Date: Sun, 27 Oct 1996 16:25:28 -0600 (CST)
From: "Kenneth C. King" <kking@HiWAAY.net>
To: redhat-list@redhat.com
In-Reply-To: <199610271819.NAA23838@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
greetings:
here's what i'm trying to do:
i need to be able to mount part of the sparc box's drive (x.y.116.97)
from the linux box 1 eth1 (x.y.82.255) so that a program on the linux
box 1 can read info from a socket thru eth0 and write to the nfs drive
on the sparc thru the router. i also need to be able to get to the
other linux box (#2, x.y.117.50) and the dos box (x.y.116.234) by ftp
to move other data files. in tabular form, it looks like this:
address interface where to send it
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
x.y.82.41-44 eth1 to test equipment
x.y.116.* eth0 up to the router
x.y.117.* eth0 up to the router
x.y.82.1-40 & 45-154 eth0 (but not thru router)
here's the setup, simplified ('---':10b2, '===':10bt):
+--------------+ +----------+ +------------+
| linux box 1 | | router | | dos box |
|e1:x.y.82.225 |==========|x.y.80.1 |=========|x.y.116.234 |
|e0:x.y.82.226 |----. | | +------------+
+--------------+ | | | +------------+
+--------------+ | | | | sparc box |
| test equip. | | | |=========|x.y.116.97 |
| x.y.82.41 |----| | | +------------+
| x.y.82.42 |----| | | +------------+
| x.y.82.43 |----| | | | linux box 2|
| x.y.42.44 |----' | |=========|x.y.117.50 |
+--------------+ +----------+ +------------+
here's the ifconfig & route commands as it is:
ifconfig eth1 x.y.82.225 netmask 255.255.255.0 broadcast x.y.82.255
ifconfig eth0 x.y.82.226 netmask 255.255.252.0 broadcast x.y.255.255
route add -host x.y.82.41 eth1
route add -host x.y.82.42 eth1
route add -host x.y.82.43 eth1
route add -host x.y.82.44 eth1
route add -net x.y.116.0 gw x.y.80.1 netmask x.y.255.0 eth0
route add -net x.y.117.0 gw x.y.80.1 netmask x.y.255.0 eth0
here's the resulting route table:
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
127.0.0.1 * 255.255.255.255 UH 3584 0 2 lo
x.y.82.41 * 255.255.255.255 UH 1500 0 0 eth1
x.y.82.42 * 255.255.255.255 UH 1500 0 0 eth1
x.y.82.43 * 255.255.255.255 UH 1500 0 0 eth1
x.y.82.44 * 255.255.255.255 UH 1500 0 0 eth1
x.y.82.45 * 255.255.255.255 UH 1500 0 0 eth1
x.y.116.0 x.y.80.1 255.255.255.0 UG 1500 0 0 eth0
x.y.117.0 x.y.80.1 255.255.255.0 UG 1500 0 0 eth0
default * * U 1500 0 3 eth0
here's the successes:
i'm getting the eth0 interface to only send x.y.82.41-44 and there is
no 'leakage' of packets between the interfaces. this is the desired
behavior.
here's the problem:
- i don't know how to generate the proper netmasks and have been using
numbers that other people have suggested.
- the x.y.116.234 & 97 hosts can't be pinged, but the 'arp who-has'
*does* show up on the eth0 interface (watching with tcpdump -i eth0
command). same thing with the x.y.117.50 pings. the linux box is
sending the 'arp who-has' for the proper machines, but somehow, the
router won't pick them up, or i'm not hearing the replies as they come
back thru the router. needless to say, until i can ping, i'm not too
inclined to try to mount the sparc's drive via nfs.... :(
so what to do next? what how-to should i have read? i haven't seen
anything that seemed apropriate. the man pages seem to be written as
a refresher for the people who already know. the book 'linux network
administrator's guide' doesn't explain it clearly enough for me to
understand (perhaps i'm a bit dim...).
what else needs to be done? what needs to be compiled into (or out
of) the kernel? what other software/daemons need to be running?
later,
kc
--
"ooooh, crumbs!"if the world is nite, shine my life like a lite"live your life
with PASSION"hey waiter, there's a transvestite in my soup"hey mister, are you
tall?"all alone in the nite"son of a son of a sailor"John DeArmond fanclub #13
"he's dead, jim"he's not dead, he's electroencephalographically challenged" kc
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null