LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 10-06-2004, 12:37 AM   #1
m0nk3yb0y
LQ Newbie
 
Registered: Sep 2004
Distribution: debian
Posts: 7

Rep: Reputation: 0
PLEASE HELP Cannot ping the outside world??


Like the subject says I can ping the internal lan but I can't ping external ip addresses.
I know theres probably something I'm missing here so I'm just gonna post some ouptput. Can someone have a look and tell me whats wrong....

when I try the outside world ping returns this:-

gonzo:/home/stinky# ping google.com
PING google.com (216.239.39.99): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote google.com 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote google.com 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote google.com 64 chars, ret=-1


Linux gonzo 2.2.19 #1 Sun Jan 6 09:37:29 EST 2002 i586 unknown

# automatically added when upgrading
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.6
netmask 255.255.255.0
gateway 192.168.1.1


gonzo:/home/stinky# ifconfig
dummy0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:393642 (384.4 Kb)

eth0 Link encap:Ethernet HWaddr 00:4F:49:07:2C:33
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8084 errors:0 dropped:0 overruns:0 frame:0
TX packets:2443 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:100
RX bytes:946876 (924.6 Kb) TX bytes:544012 (531.2 Kb)
Interrupt:10 Base address:0xe800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:4597 errors:0 dropped:0 overruns:0 frame:0
TX packets:4597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:466654 (455.7 Kb) TX bytes:466654 (455.7 Kb)

gonzo:/home/stinky# ipchains -L
Chain input (policy DENY):
target prot opt source destination ports
ACCEPT all ------ anywhere anywhere n/a
DENY all ----l- 127.0.0.0/8 anywhere n/a
ACCEPT all ------ localnet/24 anywhere n/a
DENY all ----l- anywhere anywhere n/a
Chain forward (policy DENY):
target prot opt source destination ports
DENY all ----l- anywhere anywhere n/a
Chain output (policy DENY):
target prot opt source destination ports
ACCEPT all ------ anywhere anywhere n/a
ACCEPT !tcp ------ anywhere BASE-ADDRESS.MCAST.NET/4 any -> any
ACCEPT all ------ anywhere localnet/24 n/a
ACCEPT !tcp ------ anywhere BASE-ADDRESS.MCAST.NET/4 any -> any
DENY all ----l- anywhere anywhere n/a


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0

Last edited by m0nk3yb0y; 10-07-2004 at 12:18 AM.
 
Old 10-06-2004, 01:06 AM   #2
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Rep: Reputation: 30
Is your router hooked up with the wizard? I dunno about your setup mines different i got wireless but you go to 192.186.0.1 something like that and it will hook up your internet for your? im guessing you just installed your router? and your linuxbox is the "host" Maybe some more info about your set up will help!


matt3333
 
Old 10-06-2004, 01:14 AM   #3
m0nk3yb0y
LQ Newbie
 
Registered: Sep 2004
Distribution: debian
Posts: 7

Original Poster
Rep: Reputation: 0
Ok this server is located inside a network where 192.168.1.1 is a gateway linuxbox and this can see the internet fine. Its just this box that can't see the internet.
 
Old 10-07-2004, 03:44 AM   #4
m0nk3yb0y
LQ Newbie
 
Registered: Sep 2004
Distribution: debian
Posts: 7

Original Poster
Rep: Reputation: 0
I'm thinkin that my route table isn't working properly heres the output for the above mentioned server:

gonzo:/home/stinky# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
default crunchy.grunt.n 0.0.0.0 UG 0 0 0 eth0
 
Old 10-07-2004, 03:46 AM   #5
m0nk3yb0y
LQ Newbie
 
Registered: Sep 2004
Distribution: debian
Posts: 7

Original Poster
Rep: Reputation: 0
actually scratch that upon further investigation it looks fine compared to other boxes on the network.
 
Old 10-07-2004, 05:14 AM   #6
cyrus_the_yrus
LQ Newbie
 
Registered: Apr 2004
Distribution: Red Hat ES 2.1
Posts: 20

Rep: Reputation: 0
the routing table looks fine . Check the DNS settings .
try pinging an IP on the internet rather that its FQDN.
 
Old 10-07-2004, 08:31 PM   #7
m0nk3yb0y
LQ Newbie
 
Registered: Sep 2004
Distribution: debian
Posts: 7

Original Poster
Rep: Reputation: 0
Pinging external ip address returns the same error:-

ping 216.239.39.99
PING 216.239.39.99 (216.239.39.99): 56 data bytes
ping: sendto: Operation not permitted
ping: wrote 216.239.39.99 64 chars, ret=-1
ping: sendto: Operation not permitted
ping: wrote 216.239.39.99 64 chars, ret=-1


DNS settings are working fine>......
 
Old 10-11-2004, 11:39 PM   #8
matt3333
Member
 
Registered: Dec 2002
Location: Winnipeg, Manitoba, Canada
Distribution: Slackware
Posts: 371

Rep: Reputation: 30
OK your routeing table looks weird if i understand your setup....what is your setup by the way.

Ok so your linuxbox sees the internet and can access it but your windows? box doesnt? how is it all set up linuxbox hooked up to router then cable modem then a windows box off of the router?

Anyways this is my setup i have my linuxbox hooked up the router then the cable modem then wireless windows and this is my routeing tab

root@Darkpunk:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

so thats why im saying yours is werid... io may be wrong.... but i would check into how its accessing the internet... a little more about your set up will really help!

Matt3333
 
  


Reply



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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
can't allow ping from my box to the outside world - iptables anorman Linux - Networking 1 09-23-2004 08:53 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
MDK 9.2, Can't ping localhost but can ping outside world? JohnLocke Linux - Networking 2 07-01-2004 05:59 PM
New RH9 can not ping outside world.... jwyant Linux - Networking 3 06-11-2003 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:00 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration