Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-12-2013, 06:18 PM
|
#1
|
LQ Newbie
Registered: Jan 2013
Posts: 12
Rep: 
|
Ping to google hangs
Hi,
I am using CentOS.
I'm trying to set a static ipaddress
Every time I ping google.com I get the following..
OUTPUT: PING google.com (74.125.224.41) 56(84) bytes of data.
And it just hangs there..
Here is my /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=AA:AA:AA:AA:AA:AA
IPADDR=10.1.0.80
NETMASK=255.255.0.0
ONBOOT=yes
NM_CONTROLLED=no
GATEWAY=10.1.0.49
Here is my /etc/resolv.conf (all are DNS servers)
search domain.org
nameserver 10.1.0.49
nameserver 10.1.0.181
nameserver 10.4.0.180
Here is my /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 locahost4.localdomain4
::1 localhost localhost.localdomain localhost6 locahost6.localdomain6
After I configure all settings
/etc/init.d/network restart
I am doing all this under root.
What should I change? Could this be a router problem?
Last edited by Electromancer; 02-12-2013 at 07:52 PM.
|
|
|
02-13-2013, 12:46 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,220
|
what is your routing table?
|
|
|
02-13-2013, 11:57 AM
|
#3
|
LQ Newbie
Registered: Jan 2013
Posts: 12
Original Poster
Rep: 
|
---------- Post added 02-13-13 at 12:58 PM ----------
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.0.0 * 255.255.0.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
default huey.domain.org 0.0.0.0 UG 0 0 0 eth0
Last edited by Electromancer; 02-13-2013 at 12:32 PM.
|
|
|
02-13-2013, 01:13 PM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,220
|
it can be still a firewall problem either on the router or on the host.
|
|
|
02-13-2013, 02:12 PM
|
#5
|
LQ Newbie
Registered: Jan 2013
Posts: 12
Original Poster
Rep: 
|
The machine can reach and recognize google.com, but will not receive any packets. It hangs.
I can reach other machines on another subnet, but can't receive any packets.
I turned off the host firewall and no luck.
So I will try to turn off the hardware firewall.
Last edited by Electromancer; 02-13-2013 at 02:17 PM.
|
|
|
02-13-2013, 08:31 PM
|
#6
|
LQ Newbie
Registered: Jan 2013
Posts: 12
Original Poster
Rep: 
|
Okay I found the problem, which I'm very embarrassed and ashamed of myself.
I was pointing my gateway to my first dns server and I changed the gateway to point to the router instead.
All is good now, what was I thinking..
Anyhow, pan64 I appreciate your support during the process of troubleshooting this.
|
|
|
02-14-2013, 12:05 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,220
|
glad to help you
if you really want to say thanks just press YES (bottom right corner)
|
|
|
All times are GMT -5. The time now is 01:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|