Hi everyone,
I really need your help. I am desperate and not able to solve this problem.
Posted help at elastix and freepbx and no one answered. Probably Centos is a better forum to ask this.
Looked at all centos documentation,forums and blogs. Can't figure out what's missing here.
I have 2 server boxes (brand new).
First I installed the elastix 2.3 distro 64 bit to the 1st server (followed exactly from the installation guide). All okay and managed to login. But I can't seem to ping to google.com or even my gateway 192.168.1.1. I thought probably my network card had issue.
note: elastix 2.3 comes with centos 5.7
Then I tested the same on the 2nd server box, same problem happens.
In order to verify this, I installed HylaFax distro (got this working on other machine) on the same boxes above. It works, I can't access to the hylafax installation website and also within it I can ping to any sites.
I need to setup IP address for this one (no DHCP here).
My settings as follows:-
/etc/resolv.conf
search local
nameserver 8.8.8.8
nameserver 8.8.4.4 (tried opendns & unifi dns, makes no difference too)
route -n
192.168.1.0 | 0.0.0.0 ...
169.254.0.0 | 0.0.0.0 ...
0.0.0.0 | 192.168.1.1 (added this via route add default gw 192.168.1.1)
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=some-random-alphanumerics
IPADDR=192.168.1.5 (tried different IP too)
NETMASK=255.255.255.0
ONBOOT=yes (tried no too)
BOOTPROTO=none (tried static too)
GATEWAY=192.168.1.1 (removed this makes no difference)
TYPE=Ethernet
NM_CONTROLLED=yes (test no or remove too)
Note: i tried few type of settings, don't make any differences too
/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=freepbx
/etc/hosts
127.0.0.1 localhost freepbx localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
127.0.1.1 freepbx (copied similar to hylafax installation which work, but no differences)
ping google.com
- ping: unknown host google.com
ping 8.8.8.8
... Destination Host Unreachable
ping 192.168.1.1
... Destination Host Unreachable
ping 127.0.0.1 (works here)
ping 192.168.1.5 (works, same IP with server)
at the same time, i flushed IPtables or stop the service makes no differences too.
Note: I tried other flavors like freepbx distro and not getting it to work either. Just why is HylaFax distro working? If not mistaken, it's using Centos 5.8 probably not too far away from freepbx centos distro.
Anyone mind to help? Thanks so much.
Centos 5.7 server can't connect to gateway and internet
-
- Posts: 5
- Joined: 2012/07/19 06:22:10
-
- Posts: 5
- Joined: 2012/07/19 06:22:10
Re: Centos 5.7 server can't connect to gateway and internet
For better clarity, check the screenshots below.
i) iptables & disabled (ping still can't work)
http://imageshack.us/photo/my-images/801/img0206su.jpg/
ii) ping fails
http://img193.imageshack.us/img193/6281/img0204mg.jpg
iii) selinux disabled
http://img337.imageshack.us/img337/3259/img0202dg.jpg
iv) orders bind
http://img411.imageshack.us/img411/2476/img0201xt.jpg
v) /etc/sysconfig/network-scripts/ifcfg-eth0
http://img210.imageshack.us/img210/5130/img0200ac.jpg
vi) ifconfig
http://img816.imageshack.us/img816/4771/img0199y.jpg
vii) /etc/resolv.conf
http://img707.imageshack.us/img707/9946/img0198yw.jpg
viii) /etc/sysconfig/network
http://img194.imageshack.us/img194/3593/img0197lr.jpg
ix) hosts
http://img706.imageshack.us/img706/1078/img0207ld.jpg
x) route -n
http://img860.imageshack.us/img860/291/img0208po.jpg
xi) mii-tools eth0
http://img26.imageshack.us/img26/8575/img0209qa.jpg
any help? thanks.
i) iptables & disabled (ping still can't work)
http://imageshack.us/photo/my-images/801/img0206su.jpg/
ii) ping fails
http://img193.imageshack.us/img193/6281/img0204mg.jpg
iii) selinux disabled
http://img337.imageshack.us/img337/3259/img0202dg.jpg
iv) orders bind
http://img411.imageshack.us/img411/2476/img0201xt.jpg
v) /etc/sysconfig/network-scripts/ifcfg-eth0
http://img210.imageshack.us/img210/5130/img0200ac.jpg
vi) ifconfig
http://img816.imageshack.us/img816/4771/img0199y.jpg
vii) /etc/resolv.conf
http://img707.imageshack.us/img707/9946/img0198yw.jpg
viii) /etc/sysconfig/network
http://img194.imageshack.us/img194/3593/img0197lr.jpg
ix) hosts
http://img706.imageshack.us/img706/1078/img0207ld.jpg
x) route -n
http://img860.imageshack.us/img860/291/img0208po.jpg
xi) mii-tools eth0
http://img26.imageshack.us/img26/8575/img0209qa.jpg
any help? thanks.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Centos 5.7 server can't connect to gateway and internet
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.
Please do not use images when text would be [b]much[/b] better. What you have posted is quite confusing. How have you tried to configure the networks? By hand or with system-config-network? If the latter, the GUI or text version? Please [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh" (using [url=http://en.wikipedia.org/wiki/Sneakernet]sneakernet[/url] as required) and showing us the output file.
Please do not use images when text would be [b]much[/b] better. What you have posted is quite confusing. How have you tried to configure the networks? By hand or with system-config-network? If the latter, the GUI or text version? Please [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=28723&forum=54]provide more information about your system[/url] by running "./getinfo.sh" (using [url=http://en.wikipedia.org/wiki/Sneakernet]sneakernet[/url] as required) and showing us the output file.