centos 7 network stops working unless I use ping

Issues related to configuring your network
Post Reply
netanelp
Posts: 3
Joined: 2021/12/12 14:09:14

centos 7 network stops working unless I use ping

Post by netanelp » 2021/12/12 14:23:45

Hey,
I'm having this weird issue in my Centos 7 VM, this is the first one I'm having this with.
For some odd reason my network wont work after rebooting or just a certain amount of time.
Not working meaning that I'm not able to ping or connect to the vm.

I found out a few things:
-To fix this I can log in to the vm directly and restart the network server or ping a public IP. (for example 8.8.8.8)
-If I continuously ping the machine from somewhere the connection will stay up and I will be able to connect to it normally.

I've attached the network configuration:

Code: Select all

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens192
UUID=ee5e158c-7db7-4500-97dd-d9667b7f2500
DEVICE=ens192
ONBOOT=yes
HWADDR=00:50:56:90:fe:d0
IPADDR=10.202.60.200
PREFIX=24
GATEWAY=10.202.60.253
DNS1=10.210.190.1
DNS2=10.210.190.2
DOMAIN=xxxx.local
EDIT:
This is running on a VMware environment on an ESXi running ver 6.5
this is the only machine im having issues with

Would really appreciate your help
Thanks!
Last edited by netanelp on 2021/12/13 15:11:26, edited 1 time in total.

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

Re: centos 7 network stops working unless I use ping

Post by TrevorH » 2021/12/12 15:32:29

What's the output from uname -a ?
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

netanelp
Posts: 3
Joined: 2021/12/12 14:09:14

Re: centos 7 network stops working unless I use ping

Post by netanelp » 2021/12/13 06:53:03

TrevorH wrote:
2021/12/12 15:32:29
What's the output from uname -a ?
Linux <machine.domain.local> 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: centos 7 network stops working unless I use ping

Post by tunk » 2021/12/13 14:44:39

Don't know what your problem is, but it may help if you say what
VM software you're using and how the VM switch/router is setup.

netanelp
Posts: 3
Joined: 2021/12/12 14:09:14

Re: centos 7 network stops working unless I use ping

Post by netanelp » 2021/12/13 15:12:44

tunk wrote:
2021/12/13 14:44:39
Don't know what your problem is, but it may help if you say what
VM software you're using and how the VM switch/router is setup.
Thanks
edited


This is running on a VMware environment on an ESXi running ver 6.5
I will add that when I try to ping from the machine to external IP it takes a few second before the first ping is 'displayed' as an output.

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

Re: centos 7 network stops working unless I use ping

Post by TrevorH » 2021/12/13 17:01:04

I've got a vague recollection of others having this problem in the past and it was a vmware thing. Might want to ask them.
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

Post Reply