On Wed, Feb 05, 2003 at 03:56:57PM +0100, Attila Csosz wrote:
I try to set up adsl sharing on two computer but I have problems.
The situation:
adsl --->A(connected to adsl) ------ B(internal machine)
I do the followings:
on machine A have the followings:
------------------------------------
1) /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0 eth1
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
This does not make sense. I you are using one card port to do 2
address, read about IP ALIASING. eth0:1 etc.
I do ont undersytand why you put both in same netweork segment?
Usually we use separate ones.
See my example at:
http://www.debian.org/doc/manuals/reference/ch-gateway.en.html