Networking issues with VMware interfaces, after yum upgrade

Issues related to configuring your network
hunter86_bg
Posts: 1372
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Networking issues with VMware interfaces, after yum upgrade

Post by hunter86_bg » 2018/05/27 11:55:52

One interesting question is why your CentOS is using
Kernel modules: shpchp
instead of vmxnet3. Did you disable ACPI ?!?
Maybe you should try to load manually the vmxnet3 module:

Code: Select all

modprobe vmxnet3

HotChocolate
Posts: 7
Joined: 2018/05/22 14:36:40

Re: Networking issues with VMware interfaces, after yum upgrade

Post by HotChocolate » 2018/06/07 17:49:53

Hi all

I like to share the source and the fix for my issue, in case somebody will encounter the same problem.
Simple and plain.

Before the upgrade:

Code: Select all

[root@stynetvm03v ~]# sysctl -a | grep -w rp_filter
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.ens192.rp_filter = 2
net.ipv4.conf.ens193.rp_filter = 2
net.ipv4.conf.ens194.rp_filter = 2
net.ipv4.conf.ens224.rp_filter = 2
net.ipv4.conf.ens225.rp_filter = 2
net.ipv4.conf.ens256.rp_filter = 2
net.ipv4.conf.ens257.rp_filter = 2
After the upgrade:

Code: Select all

[root@stynetvm03v ~]# sysctl -a | grep -w rp_filter
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.ens192.rp_filter = 1
net.ipv4.conf.ens193.rp_filter = 1
net.ipv4.conf.ens194.rp_filter = 1
net.ipv4.conf.ens224.rp_filter = 1
net.ipv4.conf.ens225.rp_filter = 1
net.ipv4.conf.ens256.rp_filter = 1
net.ipv4.conf.ens257.rp_filter = 1
I never changed it to 2. I guess it was set when I added the NICs on the VM. Also there is nothing set in the /etc/sysctl.conf file.
To be honest, till now I don't know where it's set, because

Code: Select all

sysctl -a | grep ens
shows a lot of values, but

Code: Select all

grep ens /etc/sysctl.conf
is empty.
Nevertheless adding the rp_filter values = 2 to the /etc/sysctl.conf for alle VM NICs solved the issue.

Thanks a lot to the CentOS forum and the Red Hat Support, in particular Hangbin Liu which provided the solution!

Kind regards.

HotC

User avatar
TrevorH
Forum Moderator
Posts: 23653
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Networking issues with VMware interfaces, after yum upgrade

Post by TrevorH » 2018/06/07 19:30:23

There is an /etc/sysctl.d/ directory that supplements /etc/sysctl.conf. Try looking there.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

hunter86_bg
Posts: 1372
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Networking issues with VMware interfaces, after yum upgrade

Post by hunter86_bg » 2018/06/09 18:20:16

The strangest in your setup is that for example ens192 can receive a packet but there is no route to the source from ens192 ?!? Have you checked your virtualization settings?

Post Reply