I wonder if someone can help me out here. I have a CentOS 7.1.1503 virtual machine running and every hour at about 1 minute past the hour the device goes into a disconnected state.
I run a command 'nmtui connect eth0' to get the interface up. This brings it up till 1 minute past the next hour.
I have a feeling it may be a cron job which is doing this, but can't find anything in the cron.hourly:
0anacron:
Code: Select all
#!/bin/sh
# Check whether 0anacron was run today already
if test -r /var/spool/anacron/cron.daily; then
day='cat /var/spool/anacron/cron.daily'
fi
if [ 'date +%Y%m%d' = "$day" ]; then
exit 0;
fi
# Do not run jobs when on battery power
if test -x /usr/bin/on_ac_power; then
/usr/bin/on_ac_power >/dev/null 2>&1
if test $? -eq 1; then
exit 0
fi
fi
/usr/sbin/anacron -s
Code: Select all
#!/bin/bash
# Only run if this flag is set. The flag is created by the yum-cron init
# script when the service is started -- this allowsx one to use chkconfig and
# the standard "service stop¦start" commands to enable or disable yum-cron.
if [[ ! -f /var/lock/subsys/yum-cron ]]; then
exit 0
fi
# Action!
exec /usr/sbin/yum-cron-hourly.conf
Code: Select all
TYPE=ETHERNET
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eth0
UUID=67b698bb-7bc8-42ef-9f6d-9b79b93bd123
DEVICE=eth0
ONBOOT=yes
DNS1=8.8.8.8
HWADDR=00:15:5D:1F:4F:91
IPADDR=10.200.8.30
PREFIX=24
GATEWAY=10.200.8.254
USERS=root
NM_Controlled=yes
Any thoughts on what i could check which may be causing this?NetworkManager[832]: <info> (eth0): device state change: deactivating -> disconnected (reason 'connection-removed') [110 30 38]
NetworkManager[832]: <info> (eth0): deactivating device (reason 'connection-removed') [38]
NetworkManager[832]: <info> NetworkManager state is now DISCONNECTED