problem solved For those who are experiencing the same problem, I've solved it by disabling NetworkManager
systemctl stop NetworkManager systemctl disable NetworkManager that's all Il giorno venerdì 25 maggio 2018 16:16:52 UTC+2, Francesco Scarpa ha scritto: > > Hello All, > > I just installed Centos 7 on a VMware virtual machine. > The system works fine except for one of the two network interfaces. > > It seems that, after 30 seconds from the system restart or network service > restart, the interface literally *loose* the static IP assigned. > > I've disabled ipv6 support ((just for test) and this is the network > configuration file : > > *GATEWAY=XXX.XXX.100.1* > *PEERDNS=no* > *IPV6INIT=no* > *IPV6_PEERROUTES=no* > *BROADCAST=XXX.XXX.100.255* > *PEERROUTES=no* > *UUID=b36fc49-439c-489f-ac6e-8164fe9353df* > *IPV6_ADDR_GEN_MODE=stable-privacy* > *BOOTPROTO=none* > *NAME=""* > *MACADDR=""* > *TYPE=Ethernet* > *IPV6_FAILURE_FATAL=no* > *DEVICE=ens224* > *IPV6_AUTOCONF=no* > *NETMASK=255.255.255.0* > *MTU=""* > *IPV6_DEFROUTE=no* > *DEFROUTE=yes* > *IPADDR=XXX.XXX.100.4* > *NETWORK=XXX.XXX.100.0* > *IPV4_FAILURE_FATAL=no* > *ONBOOT=yes* > *IPV6_PEERDNS=no* > > this is the output of ifconfig *before* the interface loses the static IP > > flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 > inet XXX.XXX.100.4 netmask 255.255.255.0 broadcast > XXX.XXX.100.255 > ether 00:50:56:8d:21:d3 txqueuelen 1000 (Ethernet) > RX packets 244 bytes 27361 (26.7 KiB) > RX errors 0 dropped 71 overruns 0 frame 0 > TX packets 111 bytes 449460 (438.9 KiB) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > > *after 30 seconds*, the same command returns this output > > flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 > ether 00:50:56:8d:21:d3 txqueuelen 1000 (Ethernet) > RX packets 251 bytes 33500 (32.7 KiB) > RX errors 0 dropped 71 overruns 0 frame 0 > TX packets 114 bytes 450486 (439.9 KiB) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > > any idea or suggestion? > Thanks! > > > > -- -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup References can be found at: http://goo.gl/anqri Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules) --- You received this message because you are subscribed to the Google Groups "Linux Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
