centos changed locations, IP changd, Cannot ping gateway

Issues related to configuring your network
Post Reply
vancouverbc
Posts: 2
Joined: 2015/02/19 19:59:32

centos changed locations, IP changd, Cannot ping gateway

Post by vancouverbc » 2015/02/19 20:33:56

I have moved. My previosly running centos with freepbx was running prior to the move. The new location is on a different router. The patch cable attached to the wall works on a windows pc. So this has to be a possible missed configuration or other issue. Can ping loop back and assigned up. Cannot ping another host PC with the same Network ID/host ip. Cannot ping the Gateway getting a destination hist unreachable.
When doing a network service restart "brining up interface eth0" is a little slow to respond.

Here are my settings:


Ifconfig:
Link encap:ethernet
inet addr:192.168.0.100 broadcast:192.168.0.255 mask:255.255.255.0
scope:Link UP Broadcast running multicast mtu:1500 Metric:1
RX packets:16 errors:0 dropped:0 overuns:0 frame:0
TC packets:102 errors:0 dropped:0 overuns:0 carrier:0
collisions:0 txquelength:1000
RX bytes:5702 TX bytes:10822
interupt:169


/etc/sysconfig/network

NETWORKING=YES
NETWORKING_IPV=yes
HOSTNAME=server.pbx1.com
GATEWAY=192.168.0.1

/etc/resolv.conf

DNS1=64.59.144.18
DNS2=64.59.144.134
DOMAIN=lab.foo.com bar.foo.com
NAMESERVER=192.168.0.254
NAMESERVER=8.8.8.8 <- this is googles dns server

hosts:
127.0.0.1
::1

route:
192.168.0.0 * 255.255.255.0 eth0
169.254.0.0 * 255.255.0.0 eth0
default 192.168.0.1 <-- This was REALLY slow to come up!!

So, what have I missed?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: centos changed locations, IP changd, Cannot ping gateway

Post by gerald_clark » 2015/02/19 20:44:12

Your /etc/resolv.conf is complete garbage.

man resolv.conf

vancouverbc
Posts: 2
Joined: 2015/02/19 19:59:32

Re: centos changed locations, IP changd, Cannot ping gateway

Post by vancouverbc » 2015/02/19 21:15:37

Repaired it. Just commentated the DNS1=64.59.xxx.xx/DNS2=64.59.xxx.xxx and deleted the rest. This however, will not resolve the no ping reply from a adjoining ip address on the same router. Also, startup script named.conf error line 10 and 12. Looking at those.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: centos changed locations, IP changd, Cannot ping gateway

Post by aks » 2015/02/20 17:01:51

I'd suggest using nm-connection-editor to review your networking systems (I'm assuming you're using the default NetworkManager in CentOS 7).
The output of your route command (what did you use, route or ip route sh?) has some bits missing. I'd expect something like:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default x.x.x.x 0.0.0.0 UG 1024 0 0 xxx
# ip route sh
default via x.x.x.x dev xxx proto static metric 1024
I don't see the interface mentioned in the output for the default route you posted.
Also in Centos 7 interface names are not (generally) ethx but rather related to the driver you're using (ethx is a fall back mind).
To make this a bit clearer, would you please post the output of:
1) ip link sh
2) ip addr sh
3) ip route sh
4) nmcli -p d
5) nmcli -p c
6) nmcli -p n

Post Reply