Can't acces to server with Centos 7

Issues related to configuring your network
Post Reply
Cammi
Posts: 5
Joined: 2018/06/27 12:50:11

Can't acces to server with Centos 7

Post by Cammi » 2018/06/27 13:06:16

Hi
I have 4 servers with Centos 7
Today i kill one of them enola. I have to restart him and now ia cant login from outside.
I connect to second by putty and from this connet to enola by ssh.

i tried ifup en01 and get "....4 packets transmitted, 0 recived, =4 errors, 100% packet lost .."

i tried systemctl restart network and again failed Failed to start LSB: Bring up/down networking

I'm looking for a solution all day. I try different solutions and nothing.
I don't know what should i check
I checked “/etc/sysconfig/network-scripts/”

TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno1
UUID=e76ad970-077b-4f5d-809b-cfc2a6db11a5
DEVICE=eno1
ONBOOT=yes

i try this
systemctl stop NetworkManager
systemctl disable NetworkManager

and next
systemctl restart network

and still nothin

i know that i don't know nothing about Centos but i have to restore access to this server from outside
maybe someone will take up challenges and guide me
pls

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't acces to server with Centos 7

Post by TrevorH » 2018/06/27 13:08:50

Is there only a single network card in the machine? I presume the machine that you are using as a jump host is on the same network subnet as the one with the problem? And that the machine you use when you cannot connect is not?
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

Cammi
Posts: 5
Joined: 2018/06/27 12:50:11

Re: Can't acces to server with Centos 7

Post by Cammi » 2018/06/27 13:15:58

Yes - single network card in enola
All of them ( 4 serwers) are on the same network

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't acces to server with Centos 7

Post by TrevorH » 2018/06/27 13:21:27

So it sounds like you have lost your default route from the server and it can only talk to things that are in the same subnet as itself. Since it appears to be using DHCP, check that the DHCP server is handing out the right route. Check using `ip route` to see what the routes are at the moment.
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

Cammi
Posts: 5
Joined: 2018/06/27 12:50:11

Re: Can't acces to server with Centos 7

Post by Cammi » 2018/06/27 19:07:41

Thx. I will check it tomorrow ASAP.

Cammi
Posts: 5
Joined: 2018/06/27 12:50:11

Re: Can't acces to server with Centos 7

Post by Cammi » 2018/06/28 06:51:54

Hi you are right
enola

10.0.0.0/16 dev bond0 proto kernel scope link src 10.0.5.10
169.254.0.0/16 dev enp0s20u1u5 scope link metric 1008
169.254.0.0/16 dev bond0 scope link metric 1009
169.254.95.0/24 dev enp0s20u1u5 proto kernel scope link src 169.254.95.120

other server
default via 10.132.28.1 dev eno1
10.0.0.0/16 dev bond0 proto kernel scope link src 10.0.5.40
10.132.28.0/24 dev eno1 proto kernel scope link src 10.132.28.228
169.254.0.0/16 dev eno1 scope link metric 1002
169.254.0.0/16 dev bond0 scope link metric 1006

on enola shoul be something like second line 10.132.28.0/24
what can i do to receive this?

Cammi
Posts: 5
Joined: 2018/06/27 12:50:11

Re: Can't acces to server with Centos 7

Post by Cammi » 2018/06/28 08:35:57

i don't know what exactly but something worked.
I have to back to begining - How to move disk space from centos-home to centos-root?
Problems have started from that. In what department can I find help?

Post Reply