Why venet0 and venet0:0 ? [message #4378] |
Sat, 08 July 2006 10:09 |
hvdkamer
Messages: 40 Registered: July 2006
|
Member |
|
|
Is there a good explanation why in a Debian VE (may be other distro's too?) a venet0 and venet0:0 present? Or is it just that this is more easily created by the script if there are more than one IP-addresses needed?
I have created a simpler script which adds just a venet0 if there is need for one IP-address and a venet0:1 and so further if more than one is needed. It seems to work exactly the same, only the ifconfig output and /etc/network/interfaces in the VE just looks nicer and to mee also more logical.
I have attached the new debian-add_ip.sh for who is interested...
Henk van de Kamer
auteur Het Lab
http://www.hetlab.tk/
|
|
|
|
Re: Why venet0 and venet0:0 ? [message #26637 is a reply to message #26635] |
Tue, 29 January 2008 17:31 |
hvdkamer
Messages: 40 Registered: July 2006
|
Member |
|
|
I've never further investigated why this is happening. On three different OpenVZ servers I now use my own adaptation and never run into a problem which could be attributed to this change. So I think it is safe to strip the venet0:0...
Henk van de Kamer
auteur Het Lab
http://www.hetlab.tk/
|
|
|
|
|
|
Re: Why venet0 and venet0:0 ? [message #39068 is a reply to message #39063] |
Fri, 12 March 2010 09:34 |
hvdkamer
Messages: 40 Registered: July 2006
|
Member |
|
|
You mus create a centos-add_ip.sh script with code that creates the correct files in your centos template. I don't know anything about centos, so I can't help there. In the meanwhile I did something similar for Arch Linux which had also the strange and unnecessary venet0:0.
After creating the script, you change the centos.conf to use your new script. At the moment it points to a Red Hat script:
Henk van de Kamer
auteur Het Lab
http://www.hetlab.tk/
|
|
|