Firstly, your eth0 interface is not configured at all. You will need to load the necessary driver module for the card and edit /etc/network/interfaces to configure it.
After this is done correctly you should get it added to your routing table automatically. You will get an entry such as: Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 This tells the kernel to route all packets destined for 192.168.1.0/24 to interface eth0. This is all you need to do. Colin Ellis Solution City Ltd http://www.solution-city.com -----Original Message----- From: Tommaso Moroni [mailto:[EMAIL PROTECTED]] Sent: 14 January 2003 13:42 To: [EMAIL PROTECTED] Subject: Re: problem setting up a local network Tommaso Moroni wrote: > Hi! > > I'd like to install Debian on an old pc (hereafter called A) using an > ADSL connection I have on another PC (hereafter called B). The problem > is that after configuring the network on A it doesn't "see" B: the > interface is correctly configured but a simple ping to B fails. > I've already checked the addresses (A is 192.168.1.2, B is 192.168.1.1) > and I think the problem is the route table on B. In fact to manage the > ADSL connection I use the italian version of the drivers at > http://eciadsl.flashtux.org/. The command route on computer B gives this > output: > > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > 192.168.100.1 * 255.255.255.255 UH 0 0 0 > ppp0 > default 192.168.100.1 0.0.0.0 UG 0 0 0 > ppp0 > > I think it lacks a default route for the eth0 interface, but I cannot > add it as there's already another one and it's needed for the ADSL to work. > > > Thanks in advance for help! > > Tommaso Moroni > > I've set up correctly B to do masquerading with iptables and I've added a route for packets destined to the local network (192.168.1.0), but I still can't even ping A from B and viceversa, and this seems a problem related to the local network between the two PCs. And by the way I changed the cable and the network cards but the problem remains! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]