On 18/6/2012 12:06 μμ, Nikolaos Milas wrote:
Why doesn't it run correctly when run from /etc/sysconfig/network-scripts/ifcfg-eth0:1?
In /var/log/messages I see:
Jun 18 14:38:58 vpnserver NetworkManager[1125]: ifcfg-rh: updating /etc/sysconfig/network-scripts/ifcfg-eth0:1 Jun 18 14:38:58 vpnserver NetworkManager[1125]: ifcfg-rh: error: Couldn't parse file '/etc/sysconfig/network-scripts/ifcfg-eth0:1' Jun 18 14:38:58 vpnserver NetworkManager[1125]: ifcfg-rh: removed /etc/sysconfig/network-scripts/ifcfg-eth0:1. Jun 18 14:39:20 vpnserver ntpd[1247]: Deleting interface #19 eth0:1, xxx.xxx.xxx.131#123, interface stats: received=0, sent=0, dropped=0, active_time=6722 secs Jun 18 14:40:01 vpnserver NetworkManager[1125]: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0:1 ... Jun 18 14:40:01 vpnserver NetworkManager[1125]: ifcfg-rh: read connection 'System eth0:1' Jun 18 14:40:01 vpnserver NetworkManager[1125]: ifcfg-rh: updating /etc/sysconfig/network-scripts/ifcfg-eth0:1 Jun 18 14:40:39 vpnserver NetworkManager[1125]: <info> (eth0): device state change: 8 -> 3 (reason 39) Jun 18 14:40:39 vpnserver NetworkManager[1125]: <info> (eth0): deactivating device (reason: 39).
when issuing a "service network restart".
Notes:
# ls -la /etc/sysconfig/network-scripts/ total 212 drwxr-xr-x. 2 root root 4096 Jun 18 14:40 . drwxr-xr-x. 7 root root 4096 Jun 2 22:31 .. -rw-r--r--. 1 root root 460 Jun 12 10:14 ifcfg-eth0 -rw-r--r-- 1 root root 114 Jun 18 14:40 ifcfg-eth0:1 -rw-r--r-- 1 root root 254 Oct 7 2011 ifcfg-lo
# getenforce Disabled
Latest effort (unsuccessful):
# cat /etc/sysconfig/network-scripts/ifcfg-eth0:1 NAME="" DEVICE="eth0:1" ONBOOT="yes" ONPARENT="yes" BOOTPROTO=none IPADDR=xxx.xxx.xxx.131 NETMASK=255.255.255.248
Any ideas please?
Thanks, Nick