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]