LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 11-01-2009, 11:23 AM   #1
gdotoli
LQ Newbie
 
Registered: Oct 2006
Location: Nutley
Posts: 3
Thanked: 0
Unhappy New 2.6.29.4-167.fc11.i586 Can access Internet and ping router -not Internal hosts?


[Log in to get rid of this advertisement]
My linux box can access the internet and ping the router but fails when pinging any host on it's own subnet. I need a little help

64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=2.73 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=2.58 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=2.88 ms
^C
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2952ms
rtt min/avg/max/mdev = 2.582/2.732/2.884/0.123 ms
[root@gila gdotoli]# ping 192.168.0.5
PING 192.168.0.5 (192.168.0.5) 56(84) bytes of data.
From 192.168.0.32 icmp_seq=2 Destination Host Unreachable
From 192.168.0.32 icmp_seq=3 Destination Host Unreachable
From 192.168.0.32 icmp_seq=4 Destination Host Unreachable

Does anyone have any ideas? There may be a routing or fw issue on the
system, because the Windows systems on this network ping each other fine.




catfish 2.6.29.4-167.fc11.i586 #1 SMP Wed May 27 17:14:37 EDT 2009 i686 i686 i386 GNU/Linux
linuxfedora gdotoli is offline     Reply With Quote
Old 11-01-2009, 01:14 PM   #2
bertl
LQ Newbie
 
Registered: May 2004
Location: Amsterdam, Holland
Distribution: Ubuntu, Redhat (others in the past)
Posts: 28
Thanked: 10
Your network mask may be set incorrectly (should be /24 or 255.255.255.0 probably); do you just use DHCP from your router or is the IP set up manually? Another slight possibility is that it uses the same IP address as one of the other computers.

Have a look at the output of 'ip a l' or 'ifconfig'. It should list something like

Code:
$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:24:e8:8e:e1:d0  
          inet addr:192.168.0.x  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST 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)
          Memory:f6ae0000-f6b00000 

$ ip a l eth0
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:24:e8:8e:e1:d0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.x/24 scope global eth0
Both tools do the same thing so just use the one you're most comfortable with. Replace 192.168.0.x with the actual IP address of your linux box, of course. The suspected culprit is the '255.255.255.0' with ifconfig or the '/24' with ip.

Since you're using fedora your /etc/sysconfig/network-scripts/ifcfg-eth0 probably needs attention.

Hope that helps. If not, I don't immediately have a clue.

-Bert
linuxubuntu bertl is offline     Reply With Quote
Old 11-01-2009, 01:43 PM   #3
catkin
Senior Member
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.0
Posts: 1,865
Blog Entries: 6
Thanked: 226
Quote:
Originally Posted by bertl View Post
Your network mask may be set incorrectly ...
Wouldn't pinging the router/gateway fail in that case?

The problem may be firewalls on the other computers. Are they able to ping each other and this computer?
linux catkin is offline     Reply With Quote
Old 11-01-2009, 02:03 PM   #4
bertl
LQ Newbie
 
Registered: May 2004
Location: Amsterdam, Holland
Distribution: Ubuntu, Redhat (others in the past)
Posts: 28
Thanked: 10
Well if the netmask is set too tight (/25?) he might see some and not see others, but it's not very likely. Windows firewall sounds more likely, yes.
linuxubuntu bertl is offline     Reply With Quote
Old 11-01-2009, 07:28 PM   #5
gdotoli
LQ Newbie
 
Registered: Oct 2006
Location: Nutley
Posts: 3
Thanked: 0

Original Poster
Thumbs down Netmask is /24 Still can't ping

eth0 Link encap:Ethernet HWaddr 00:E0:4C:F8:BE:C8
inet addr:192.168.0.32 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fef8:bec8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42318 errors:0 dropped:0 overruns:0 frame:0
TX packets:28691 errors:0 dropped:0 overruns:0 carrier:0
collisions:9824 txqueuelen:1000
RX bytes:49866888 (47.5 MiB) TX bytes:3358412 (3.2 MiB)
Interrupt:16 Base address:0x8000

RX bytes:682832 (666.8 KiB) TX bytes:682832 (666.8 KiB)

Still a problem


[gdotoli@gila ~]$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=3.29 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=2.54 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=2.71 ms
^C
--- 192.168.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2425ms
rtt min/avg/max/mdev = 2.545/2.852/3.296/0.327 ms
[gdotoli@gila ~]$ ping 192.168.0.10
PING 192.168.0.10 (192.168.0.10) 56(84) bytes of data.
From 192.168.0.32 icmp_seq=2 Destination Host Unreachable
From 192.168.0.32 icmp_seq=3 Destination Host Unreachable
From 192.168.0.32 icmp_seq=4 Destination Host Unreachable
linuxfedora gdotoli is offline     Reply With Quote
Old 11-05-2009, 02:14 PM   #6
bertl
LQ Newbie
 
Registered: May 2004
Location: Amsterdam, Holland
Distribution: Ubuntu, Redhat (others in the past)
Posts: 28
Thanked: 10
Have you checked catkin's suggestion? Windows firewalls by default don't always allow ping replies. If you disable the windows firewalls or set them up to allow ICMP echo requests / replies, that might help.
linuxubuntu bertl is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alienware Laptop: no touchpad or keyboard: fedora 2.6.29.4.-167.fc11.i686.pae philco_yodi Fedora - Installation 3 10-16-2009 02:57 AM
Connect to Network (can ping router) but can't access the Internet DGrieve Linux - Networking 8 03-08-2008 05:41 PM
why am i able to ping hosts on my LAN except my router traineetux Linux - Networking 3 11-20-2006 08:37 PM
NIC Not Working In 10.1 - Cannot Ping Router, Access Internet contillion Suse/Novell 6 09-08-2006 03:46 PM
Ndiswrapper for internal wireless No internet but can Access Router slag02 Suse/Novell 1 04-01-2006 03:21 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration