Re: networking problem



On Tue, 25 Apr 2006 14:03:39 +0000, Beef wrote:

I have two computers. Sheaf (192.168.0.2) runs Mandriva 2006, Porter
(192.168.0.3) runs Ubuntu 5.10.

They are connected to a NetGear Wireless ADSL router (model DG834G)
(192.168.0.3), by ethernet cables.

I can ping from sheaf to porter, but not from porter back to sheaf.

Both machines can go through the router to the internet.

Here are the routing tables:

root@porter:~# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0
0 eth0 (netstat on porter doesn't list lo, but the interface is
configured OK)

[root@sheaf ~]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0
0 eth1


I spent hours looking for traceroute on Ubuntu, before finding tracepath:

[root@sheaf ~]# tracepath porter
1: 192.168.0.2 (192.168.0.2) 0.348ms pmtu
1500 1: porter (192.168.0.3) 0.590ms
reached
Resume: pmtu 1500 hops 1 back 1

root@porter:~# tracepath sheaf
1: 192.168.0.3 (192.168.0.3) 0.437ms pmtu
1500 1: no reply
2: no reply
3: no reply

I think that the problem is with routing through the router, not really on
the computers themselves.

I tried creating static routes on the router from one machine to the
other, and this changed nothing.

Can anybody explain to me what is wrong, so I can fix it, please?


Beef.

Hi.

1 ) If I read your text correctly, you wrote that the DSL router address
is at 192.168.0.3.
But the routing table of both hosts are configured to go to 192.168.0.1.
I'll assume that it's only a typing mistake and your router is indeed
configured as 192.168.0.1.

If the DSL is indeed configured as 192.168.0.3, then you have an IP
address conflict. Both Porter and the DSL are at .3


2) Lets check the /etc/hosts file on each PCs.
Sheaf should look like :
# /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.2 Sheaf.AnyDomain.AnyCountry Sheaf
192.168.0.3 Porter.AnyDomain.AnyCountry Porter

Now, Porter's /etc/hosts should also look like :
# /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.2 Sheaf.AnyDomain.AnyCountry Sheaf
192.168.0.3 Porter.AnyDomain.AnyCountry Porter

3) If these files are the same, then I would look toward the "arp" command.
Install yourself in front of Porter's console.

Try to ping Sheaf :

$ ping 192.168.0.2

then :

$ /sbin/arp -a
(I hope to see something like the line below. NOTE: Ethernet adddress will
be different.)

? (192.168.0.2) at 01:02:03:04:05:06 [ether] on eth0

If we see something like that, then it's good sign. Ethernet cablings
and ports are Ok...



3) We might have a firewall on Sheaf which inhibit ping answers.
Check with :

# /sbin/iptables -L -n | grep icmp

I expect to see lines starting with ACCEPTs.
If not, then check the Firewall rules to allow answers to pings.


4) let's compare /etc/host.conf files on both servers

It should look more or less like this :

$ cat /etc/host.conf
order hosts, bind



Other advices :
1) When debugging, try to ping, traceroute and tracepath with numerical IP
addresses. You will not fail on name resolution problems.


Well, I hope it help...

.



Relevant Pages

  • Re: networking problem
    ... They are connected to a NetGear Wireless ADSL router ... I can ping from sheaf to porter, but not from porter back to sheaf. ... Here are the routing tables: ...
    (comp.os.linux.setup)
  • Re: Networking problem
    ... machine 2# HP Z8000 laptop xp media center on board lan and 802.11 windows firewall off. ... router linksys befw11s4 ... Network activity lights flash on the router on the port in use. ... I finally got it to the point that from the desktop i can ping the ip ...
    (microsoft.public.windowsxp.general)
  • Re: Cannot get IP address from Router DHCP
    ... > - I can ping both the preferred and alternate DNS servers from the ... > Ethernet adapter Wireless Network Connection: ... > the router by typing its address on a browser but I cannot get to the ... >> What DNS server did you assign? ...
    (microsoft.public.win2000.networking)
  • Re: Losing Packets!
    ... line entry point) and router have been eliminated. ... Ping shows IP packet loss. ... You cannot be getting bad ADSL or you would likely be droppig the line. ... This show the connection speeds, ...
    (uk.telecom.broadband)
  • Re: yet anothe samba question
    ... Both pcs can ping each other. ... I can see my laptop ip address connecting to the smb ports on the xp. ... connecting via the same router. ... >> theres no firewall enabled on the laptop, and i even turned off the ...
    (comp.os.linux.networking)