LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem with pinging slackbox (http://www.linuxquestions.org/questions/slackware-14/problem-with-pinging-slackbox-723136/)

boler 05-02-2009 08:48 AM

Problem with pinging slackbox
 
Hi, this problem is really becoming a headache. I've seached everywhere for answers but can't find a resolution.


I have desktop running slackware and a laptop running ubuntu. Both computers are connected on my wireless network using a netgear router and both can access the internet fine.

However, although I can ping my laptop and router from my slackware desktop I cannot ping slackware from my ubuntu laptop. The laptop can ping the router though and itself using ping localhost.

Also strangely, when I go into my rounter config and list the "Attached Devices" my laptop wireless and eth0 connections are shown but not my desktop wireless. Like I said, both can access the internet.

Any ideas of how I can unpick this problem?

My desktop is using Slackware 12.2 with the inbuilt ath5k wireless drivers in kernel 2.6.29.2.

Thanks,

niels.horn 05-02-2009 10:10 AM

Give us the output of "ifconfig" and "route -n" of both machines to understand how the network is configured.

Another question: are you trying to ping by IP address or by name?

boler 05-02-2009 01:59 PM

ifconfig from Slackware desktop

Quote:

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:21896 errors:0 dropped:0 overruns:0 frame:0
TX packets:21896 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:66475860 (63.3 MiB) TX bytes:66475860 (63.3 MiB)

wlan0 Link encap:Ethernet HWaddr 00:18:4d:eb:75:f5
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::218:4dff:feeb:75f5/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17640 errors:0 dropped:0 overruns:0 frame:0
TX packets:15803 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18655612 (17.7 MiB) TX bytes:4182129 (3.9 MiB)

wmaster0 Link encap:UNSPEC HWaddr 00-18-4D-EB-75-F5-77-6C-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
route -n from Slackware desktop
Quote:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
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 wlan0
ifconfig from ubuntu laptop
Quote:

eth0 Link encap:Ethernet HWaddr 00:1d:09:4c:b3:82
inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21d:9ff:fe4c:b382/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5905 (5.9 KB) TX bytes:5886 (5.8 KB)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)

wlan0 Link encap:Ethernet HWaddr 00:1f:3c:32:3b:f1
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21f:3cff:fe32:3bf1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8634 (8.6 KB) TX bytes:3837 (3.8 KB)

wmaster0 Link encap:UNSPEC HWaddr 00-1F-3C-32-3B-F1-62-66-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
route -n from ubuntu laptop
Quote:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

UPDATE: I connected the Slackbox and Ubuntu laptop to another spare router using ethernet cables and could ping both machines each way. Therefore this is my ath5k driver / wireless card issue.

I am using "ping 192.168.0.2" etc..

Thanks for the help.

niels.horn 05-02-2009 02:14 PM

Your Ubuntu installation is connected to the router both by wire (eth0 / 192.168.0.8) and wireless (wlan0 / 192.168.0.3).

I *guess* the packets get lost somehow between the two interfaces, as both routes are valid from your laptop to your desktop (192.168.0.2).
Try from your laptop pinging using a specific interface like:

Code:

ping -c 4 -I wlan0 192.168.0.2
or
Code:

ping -c 4 -I 192.168.0.3 192.168.0.2
and tell us if this works...


All times are GMT -5. The time now is 02:58 AM.