Michael/Grant, The gateway doesn't get used if the two hosts are on the same network. Assuming Grant has set the network mask to 255.255.255.0, the sending host does an logical AND of his interface with the mask (192.168.1.10 AND 255.255.255.0 which gives 192.168.1.0 ) and the recipient address AND the mask (192.168.1.3 AND 255.255.255.0 which also gives 192.168.1.0). The sending host now knows they are on the same network and hence does not use the default gateway. ( This is how all route decisions are made with the process repeated for each route until the "longest match", or most specific route is found)
Grant, apart from the advice given (i.e. check physical and administratively that the cards are up with ifconfig). The network addresses given stipulate that the two machines MUST reside on the same physical network (ie hub or network switches that are physically connected at "Layer 2"). You also can use arp -a to see if the machine resolving IP to mac address, also netstat -ic to check packets going in/out. Also you may need to check that ipchains/iptables (firewall) is not getting in the way. iptables --list will be your friend. (You can also turn this off temporarily by /etc/init.d/iptables stop or /etc/init.d/ipchains stop.) Martin Visser Network Consultant - Global Services COMPAQ, part of the new HP 3 Richardson Place North Ryde, Sydney NSW 2113, Australia Phone *: +61-2-9022-1670 Mobile *: +61-411-254-513 Fax 7: +61-2-9022-1800 E-mail * : martin.visserAThp.com -----Original Message----- From: Michael Kraus [mailto:[EMAIL PROTECTED]] Sent: Sunday, 23 June 2002 11:58 PM To: [EMAIL PROTECTED] Subject: Re: [SLUG] can't establish network connect G'day... You shouldn't have a default gateway of 192.168.1.1 if the machines are on the same network segment!!! What this means, is that your machine is trying to send all the packets for 192.168.1.3 (Windows box) through a router/gateway with the network ip address of 192.168.1.1 as this machine cannot be found (or is not set up for such functionality) the packets are being ignored and lost. Hence your problem. Remove this entry from your route and your network should work fine. All the best... Mike ----- Original Message ----- From: Grant To: [EMAIL PROTECTED] Sent: Sunday, June 23, 2002 9:02 PM Subject: [SLUG] can't establish network connect Hi, I'm going to set up my linux box (RH 7.2) as a server for a couple of Win98 boxes. At the moment I can't ping the W box. Using the network howto eth0 is 192.168.1.10 the route is .1.0 & the default gw is .1.1 Running netstat -r the table is as I think it should be. My card is ne2k-pci. The fault message is destination host unreachable (the w box is 192.168.1.3) Thanks. Grant -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
