Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an issue with CentOS route... maybe someone can help me to figure it out, how to simple configure route... I have an dedicated ip adress e.g. my netmask is and gw is all I want to do to connect to the internet... Now I have route like this:

Destination             Gateway       Genmask          Flags   Metric   Ref    Use   Iface             *     U       0        0        0   seth0
default                 UG      0        0        0   seth0

I can't understand from where comes IP adress? in network configuration files (ifcfg...) everything seems correct, also I set NOZEROCONF=yes.

With DNS everything seems correct, I can resolve address, but I can't ping...

Maybe, someone could help me?

share|improve this question
2 is the start of your subnet that you reside in - in case, a /26 subnet. Can you at least ping the gateway? – Rilindo Oct 6 '11 at 17:53
Thanks for answering me. I can't ping my default gateway. Maybe other suggestions? Thanks in advance. – Brian Oct 6 '11 at 20:17
If you can`t ping the gateway it propably is no gateway. Where did you get the gateway-address from? – Nils Oct 6 '11 at 20:49
from my data center, on other servers working without any issue... Thank You. – Brian Oct 6 '11 at 20:54
ups... I forgot to swich off firewall, no it's ok. I can ping default gateway. Thanks! – Brian Oct 6 '11 at 21:02
up vote 1 down vote accepted

According to your config

Hosts/Net: 62 is network address for /26 net. Route table always contain route to base net

I can resolve address, but I can't ping...

If DNS-resolver placed inside your /26 net - your packets for resolving doesn't leave it. For ICMP-pings situation differ - pACKETS must go after default-gw. Possible troubles

  • icmp echo-reply disabled on gw (traceroute some-kbown-exrertal-ip for test)
  • IP-forward disabled on GW (traceroute again)
  • smth. more, have to think
share|improve this answer
Thank you for answering me. I will try to call to my data center, maybe they add some restrictions or smth to this server. Thank you! – Brian Oct 6 '11 at 23:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.