Re: [CentOS] Cannot set alias IP address

2012-06-18 Thread John Doe
From: Nikolaos Milas > On 18/6/2012 3:52 μμ, John Doe wrote: >> Do you really need NetworkManager...? > > Not really, but in my CentOS 6 machines (only recently started using it) I > had > problems setting up network (never had any with CentOS 5), because > resolv.conf > was being overwritt

Re: [CentOS] Cannot set alias IP address

2012-06-18 Thread Nikolaos Milas
On 18/6/2012 3:52 μμ, John Doe wrote: > Do you really need NetworkManager...? Not really, but in my CentOS 6 machines (only recently started using it) I had problems setting up network (never had any with CentOS 5), because resolv.conf was being overwritten. After being overwhelmed experimenti

Re: [CentOS] Cannot set alias IP address

2012-06-18 Thread John Doe
From: Nikolaos Milas > Following the above error, I thought that I should change config as > follows: > > DEVICE="eth0:1" > NM_CONTROLLED="yes" > ONBOOT="yes" > ONPARENT="yes" > BOOTPROTO=none > IPADDR=xxx.xxx.xxx.131 > NETMASK=255.255.255.248 > > Now, I get the error (in /var/log/messages): >

Re: [CentOS] Cannot set alias IP address

2012-06-18 Thread Nikolaos Milas
On 18/6/2012 2:59 μμ, Nikolaos Milas wrote: > Jun 18 14:38:58 vpnserver NetworkManager[1125]:ifcfg-rh: error: > Couldn't parse file '/etc/sysconfig/network-scripts/ifcfg-eth0:1' Following the above error, I thought that I should change config as follows: DEVICE="eth0:1" NM_CONTROLLED="yes"

Re: [CentOS] Cannot set alias IP address

2012-06-18 Thread Nikolaos Milas
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

Re: [CentOS] Cannot set alias IP address

2012-06-18 Thread Nikolaos Milas
On 18/6/2012 11:31 πμ, Nikolaos Milas wrote: > I cannot set an alias IP address. Note that if I issue: # ifconfig eth0:1 xxx.xxx.xxx.131 netmask 255.255.255.248 then it works fine. Then I can ping .131 without problems. Why doesn't it run correctly when run from /etc/sysconfig/network-scripts

[CentOS] Cannot set alias IP address

2012-06-18 Thread Nikolaos Milas
Hi, I have an eth0 interface (it's a CentOS 6 guest VM on a KVM host) which is configured as follows (see below) with a primary public IP address of xxx.xxx.xxx.130 (which works fine). I cannot set an alias IP address. I want eth0 to also use another IP address (xxx.xxx.xxx.131, so I create /e