Centos 7 - Can't ping or ssh
Centos 7 - Can't ping or ssh
Hi,
today at 3AM(CEST) my VPS went down(problem on OVH's side), they moved my VPS to another host or something. Problem is, that after server went down a can no longer access(ssh or ping) my server(only in rescue mode). They are saying that if server is accessible in rescue mode, it's problem in OS configuration.
Since I can't even ping the server, problem must be in networking? I compared rescue mode resolv.conf and hosts with normal mode and they are the same -_-
Can somebody help me to solve this?
Thanks
today at 3AM(CEST) my VPS went down(problem on OVH's side), they moved my VPS to another host or something. Problem is, that after server went down a can no longer access(ssh or ping) my server(only in rescue mode). They are saying that if server is accessible in rescue mode, it's problem in OS configuration.
Since I can't even ping the server, problem must be in networking? I compared rescue mode resolv.conf and hosts with normal mode and they are the same -_-
Can somebody help me to solve this?
Thanks
Re: Centos 7 - Can't ping or ssh
It could be that the NIC got a new MAC address, and that you have to update the network script in /etc/sysconfig/network-scripts/
Run ifconfig and compare to the script.
Run ifconfig and compare to the script.
Re: Centos 7 - Can't ping or ssh
Hi, thanks for the reply.
Which script do you mean?
Here is ipconfig in rescue mode:
Here is output of ifcfg-eth0
Here is output of ifcfg-eth0:1
Which script do you mean?
Here is ipconfig in rescue mode:
Code: Select all
root@rescue-pro:~# ifconfig
eth0 Link encap:Ethernet HWaddr fa:16:3e:81:81:1b
inet addr:54.**.**.1 Bcast:54.**.**.**1 Mask:255.255.255.255
inet6 addr: fe80::.../64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18163 errors:0 dropped:0 overruns:0 frame:0
TX packets:12325 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:42287385 (40.3 MiB) TX bytes:1418759 (1.3 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9908 (9.6 KiB) TX bytes:9908 (9.6 KiB)
Code: Select all
BOOTPROTO=dhcp
DEVICE=eth0
HWADDR=fa:16:3e:81:81:1b
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
ZONE=
Code: Select all
DEVICE="eth0:1"
IPADDR="54.**.**.**9"
NETMASK="255.255.255.255"
ONBOOT=yes
Last edited by kironet on 2018/04/20 11:00:45, edited 1 time in total.
Re: Centos 7 - Can't ping or ssh
Unless you're in rescue mode right at the moment, your server is responding to ssh already.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Centos 7 - Can't ping or ssh
Yes, my server is not responding to ssh in normal mode.
I can't even ping to that server in normal mode.
I can do whatever I want in rescue, but when I switch to normal, server is dead.
I can't even ping to that server in normal mode.
I can do whatever I want in rescue, but when I switch to normal, server is dead.
Re: Centos 7 - Can't ping or ssh
It is responding right now.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Centos 7 - Can't ping or ssh
Check it right now, I switched to normal mode.
Hope I didn't confuse you.
When I'm in rescue mode I can: ssh, ping
When I'm in normal mode I can: nothing(can't ssh, can't ping)
Hope I didn't confuse you.
When I'm in rescue mode I can: ssh, ping
When I'm in normal mode I can: nothing(can't ssh, can't ping)
Re: Centos 7 - Can't ping or ssh
Do you have console access to it? Is it booting at all?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke