Hola Horacio,
thank you very much for your reply :-)
According to your suggestions I configured the two machines as follows:
/etc/init.d/network for the routing/gateway machine:
####################
#! /bin/sh
ifconfig lo localhost
# Configure the first Ethernet device connecting to network 194.57.193.0
ifconfig eth0 194.57.193.76 netmask 255.255.255.0
# Configure the second Ethernet device connecting to 194.57.193.34
ifconfig eth1 194.57.193.76 netmask 255.255.255.255
# Routing
route add localhost dev lo
route add -host fr-image metric 0 dev eth1
route add -net curienet netmask 255.255.255.0 dev eth0
route add default gw 194.57.193.1
# Create ProxyARP entry for 194.57.193.34 with hardware address of eth0
# so that eth0 catches packets for 194.57.193.76 AND 194.57.193.34
arp -i eth0 -Ds 194.57.193.34 eth0 pub
##############################
And its routing table:
bash> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 3 lo
194.57.193.34 0.0.0.0 255.255.255.255 UH 0 0 2 eth1
194.57.193.0 0.0.0.0 255.255.255.0 U 0 0 43 eth0
0.0.0.0 194.57.193.1 0.0.0.0 UG 0 0 6 eth0
/etc/init.d/network for the hidden machine:
###################
#! /bin/sh
ifconfig lo localhost
route add localhost dev lo
# Configure the ethernet device
ifconfig eth0 194.57.193.34 netmask 255.255.255.255
route add -host 194.57.193.76 dev eth0
route add default gw 194.57.193.76
###################################
It's routing table:
bash> route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
194.57.193.76 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
127.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 lo
0.0.0.0 194.57.193.76 0.0.0.0 UG 0 0 0 eth0
Now, the gatewaying machine has full access to the LAN and to the internet
and to the hidden machine (194.57.193.34). But a general ping 194.57.193.255
does not show responses from 194.57.193.34
The hidden machine can ping 194.57.193.76 (its gateway) and other machines
on the 194.57.193.0 network but not machines on other local networks.
And what is estonishing to me: I can't ping 194.57.193.1 and a ping to
194.57.193.255 just gives responses from 194.57.193.34 and 194.57.193.76
This causes problems, as the host 194.57.193.1 is the default gateway
for this subnet. I think this is the reason why I cannot access internet
from the hidden host.
I don't unterstand much what is going on here and what has to be done,
so I would appreciate any help.
Manuel
On Thu, May 13, 1999 at 05:10:16PM -0300, Horacio J. Pe�a wrote:
> For the ip routing issue in the .76 box do something like:
>
> (i like using iproute2, maybe it could be done with ifconfig/route if you
> prefer it:)
> ip link set eth0 up
> ip addr add eth0 aaa.bbb.ccc.76/24
>
> ip link set eth1 up
> ip addr add eth1 aaa.bbb.ccc.76/32 # Oops, that is really strange but,
> # against all hopes, it works.
>
> ip ro add 0/0 via aaa.bbb.ccc.yourrouter
> ip ro add aaa.bbb.ccc.34/32 dev eth1
>
> In the .34 box do:
>
> ip link add eth0 up
> ip addr add aaa.bbb.ccc.34/32 dev eth0
> ip ro add aaa.bbb.ccc.76 dev eth0
> ip ro add 0/0 via aaa.bbb.ccc.76
>
> With that and proxyarp (so the other boxes in the ethernet know how to contact
> aaa.bbb.ccc.76) you'll be done.
--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
email: [EMAIL PROTECTED]
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]