Manuel,

    It's been a while since I did something like this, and since I haven't
seen any other replies along this thread, I'll offer my initial thoughts on
your problem. Without knowing anything else, the following strikes me as
questionable:

> # Configure the first Ethernet device connecting to Curie
> ifconfig eth0 xxx.xxx.xxx.34 netmask 255.255.255.0
>
> # Configure the second Ethernet device connecting to fr-image
> ifconfig eth1 xxx.xxx.xxx.34 netmask 255.255.255.0

    It's my fundamental understanding that each interface has its own IP
address. This is contrary to the general assumption that each computer has
its own IP address. While I may be wrong in this regard, I do know that
you'll find routing through your Linux computer much easier if you accept
this as a basic rule of thumb.

    So, essentially, just setup each ethernet interface with its own IP
address, set the gateway on the second computer to the IP of the ethernet
device it's connected to, and then go from there.

    Also, when you say "connect both of them to the LAN," I'm not sure I'm
clear on what's on the other end. You mentioned that you didn't want a hub,
yet unless you've got more than one computer connected on your LAN, or
unless you've run out of ports on your hub I'm missing something.


Good luck,
Jason Sloderbeck

+===========================-------------------- - -  -  -   -    -
| University of Missouri/Kansas City - Computer Science/Telecom
|  hom: 816/452.8937  e: [EMAIL PROTECTED]  url: www.umkc.edu
| Plasmic Computer Systems - Chief Information Officer
|  off: 816/292.2870  e: [EMAIL PROTECTED]      url: www.plasmic.com
| Midwest Internet Services - Sr. Systems Administrator
|  cel: 816/820.9279  e: [EMAIL PROTECTED]    url: www.mwis.net
+===========================-------------------- - -  -  -   -    -

----- Original Message -----
From: Manuel Sickert <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 12, 1999 5:37 AM
Subject: Linux box as gateway for one host


> Hi all,
>
> I'm in the following situation:
> I've a Linux box with two ethernet cards (kernel 2.0.32) connected to
> our LAN with eth0. This box has an IP xxx.xxx.xxx.34.
> Then I have a second computer with its on IP xxx.xxx.xxx.76 running
> Linux and MacOS. I want to connect both of them to our LAN. I've just
> one physical connection to the LAN and I don't want to buy a HUB as I
> have two ethernet cards and I hope to be able to configure the Linux box
> as a router/gateway for the second machine.
>
> I tried to configure the Linux box as follows:
> # Configure the loopback device
> ifconfig lo localhost
>
> # Configure the first Ethernet device connecting to Curie
> ifconfig eth0 xxx.xxx.xxx.34 netmask 255.255.255.0
>
> # Configure the second Ethernet device connecting to fr-image
> ifconfig eth1 xxx.xxx.xxx.34 netmask 255.255.255.0
>
> # Routing
> route add localhost dev lo
> route add -host xxx.xxx.xxx.76 dev eth1
> route add -net xxx.xxx.xxx.0 netmask 255.255.255.0 dev eth0
> route add default gw xxx.xxx.xxx.1
>
> # Create ProxyARP entry for fr-image with hardware address of eth0
> # so that eth0 catches packets for fr-manulab AND fr-image
> arp -i eth0 -Ds xxx.xxx.xxx.76 eth0 pub
>
>
> Then I configured the second machine with its IP xxx.xxx.xxx.76,
> with a host route to xxx.xxx.xxx.34 and with the first machine
> as default gateway.
>
> I can ping from one machine to the other but the machine behind
> the Linux box doesn't see the LAN and the LAN doesn't see
> xxx.xxx.xxx.34
>
> Do you have any idea what is going wrong here?
>
> Many thanks for any suggestion.
>
> Manuel
>
> PS: Please cc to me as I'm not on the list.
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Manuel Sickert
> Institut Curie, Section de Recherche
> 11 rue Pierre et Marie Curie, 75231 Paris Cedex 05
> Tel: (33) 01 42 34 64 60/83
> Fax: (33) 01 40 51 06 36
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to