LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2007, 01:50 AM   #1
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Rep: Reputation: 15
cannot ping to other network


Hello

Good day can anybody help me I'm installing a new version CentOS (CentOS 5)
after installing and try to ping to other network I cannot ping, I already checked
my newly installed cable and it works fine..

Thanks to all.
 
Old 08-09-2007, 03:10 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
can you perhaps post some data such as output from
Code:
ifconfig
route -n
cat /etc/resolv.conf
 
Old 08-09-2007, 04:05 AM   #3
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
cat /etc/resolv.conf
= nameserver 127.0.0.1

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
124.6.155.48 0.0.0.0 255.255.255.240 0 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 0 0 0 0 eth0

Last edited by Rainel; 08-09-2007 at 04:11 AM.
 
Old 08-09-2007, 04:48 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
your resolv.conf is pointing you your onw computer rather than to your isp's dns server

have you tried pinging ip addresses rather than hostnames?

try 64.233.187.99 which is one of google's ip addresses
 
Old 08-09-2007, 05:12 AM   #5
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
I tried to change my /etc/resolv.conf to our dns hosts but
still cannot ping to 64.233.187.99
I'm stuck with this one...

Thanks Nathanael
 
Old 08-09-2007, 07:22 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Check /etc/resolve to make the nameserver line isn't commented (with a #) - It looks like you just read the command and typed it, instead of copy/pasting

Also what is the other network (local/wide?)? is it firwalled? it might be dropping ping requests? not accepting any external connections at all?

What about nslookup 64.233.187.99 ?

If you cant even ping google then you have no working WAN connection anyway it seems...
 
Old 08-09-2007, 08:49 PM   #7
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
Good day

When I try to nslookup 64.233.187.99 it says
;;connection timed out; no servers could be reached
Then if there is no working WAN what should I do to make it
works...

Thanks...
 
Old 08-10-2007, 03:04 AM   #8
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
nslookup tries to contact a dns server, as this is pointing to your machine itself, of course it will fail
though if you try to ping that ip address, it will not look for a dns server. it will solely have a look at the routing table (which looks alright) to know where to send the packet to (ie. the gateway provided by the isp)
 
Old 08-13-2007, 09:10 PM   #9
Rainel
Member
 
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
Hello

Sorry for the delayed reply but I guess its becoz of my firewall settings I can't understand it I found it at /etc/sysconfig/iptables...
This IP address was newly sent by our ISP I want to use it for our webserver and since it is my first time to set it up I can't find any idea how to fix or begin with but I just finished installing my CentOS 5 linux box..
I think I need to open a ports or something so that I can connect to the public or ping to my network.
Below is my default iptables setup:


# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT


Any help is very much highly appreciated

Best Regards,
Rainel A. ROflo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:39 PM
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 01:55 PM
Can't PING to outside Network dibakar5173 Linux - Networking 2 09-16-2005 09:23 AM
Can ping network but can't ping any internet ip when I hard set the ip Streme Linux - Wireless Networking 4 04-13-2004 10:18 AM
I can't ping anything on my network fostiator Linux - Networking 24 04-12-2003 03:15 PM


All times are GMT -5. The time now is 11:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration