OpenVZ Forum
Forum Search:

Home » General » Support » Why venet0 and venet0:0 ?
Why venet0 and venet0:0 ? [message #4378] Sat, 08 July 2006 06:09 Go to next message
hvdkamer  is currently offline hvdkamer
Messages: 35
Registered: July 2006
Member
From: *armorica.tk
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 #26635 is a reply to message #4378 ] Tue, 29 January 2008 11:49 Go to previous messageGo to next message
vzjay  is currently offline vzjay
Messages: 3
Registered: January 2008
Junior Member
From: *walt.ma.towerstream.com
I don't mean to dig up an old thread, but did you ever figure this out? It appears that this only occurs on Debian based distros.

Re: Why venet0 and venet0:0 ? [message #26637 is a reply to message #26635 ] Tue, 29 January 2008 12:31 Go to previous messageGo to next message
hvdkamer  is currently offline hvdkamer
Messages: 35
Registered: July 2006
Member
From: *direct-adsl.nl.0.163.77.in-addr.arpa
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 #26667 is a reply to message #26637 ] Wed, 30 January 2008 08:24 Go to previous messageGo to next message
maratrus  is currently offline maratrus
Messages: 1487
Registered: August 2007
Location: Moscow
Senior Member
From: *sw.ru
Hi,

I haven't been testing a lot of time but let's assume that we add two ip (with --ipadd parameter) to our VPS and then decide to remove the first ip (with --ipdel parameter). Does this operation process correctly?
Re: Why venet0 and venet0:0 ? [message #30047 is a reply to message #4378 ] Wed, 07 May 2008 02:32 Go to previous messageGo to next message
kir  is currently offline kir
Messages: 1430
Registered: August 2005
Location: Moscow, Russia
Senior Member
From: *sw.ru
There is a bug filed for this case: http://bugzilla.openvz.org/883

hvdkamer, can you please add yourself into Cc for this bug so we can move the discussion there?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
icon10.gif  Re: Why venet0 and venet0:0 ? [message #39063 is a reply to message #4378 ] Thu, 11 March 2010 17:03 Go to previous messageGo to next message
SSJGotenks
Messages: 2
Registered: March 2010
Junior Member
From: *sis.ca
How can I apply this script to a centos machine? I checked the script and it modifies locations debian specific "debian-add_ip.sh". I love your script!
Re: Why venet0 and venet0:0 ? [message #39068 is a reply to message #39063 ] Fri, 12 March 2010 04:34 Go to previous message
hvdkamer  is currently offline hvdkamer
Messages: 35
Registered: July 2006
Member
From: *direct-adsl.nl
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:

ADD_IP=redhat-add_ip.sh


Henk van de Kamer
auteur Het Lab
http://www.hetlab.tk/
Previous Topic:Dont' work any (official) template
Next Topic:IPTables Hashlimit and NAT
Goto Forum:
  


Current Time: Thu Sep 2 11:14:15 EDT 2010
.:: Contact :: Home ::.

Powered by: FUDforum 2.8.1.
Copyright ©2001-2009 FUDforum Bulletin Board Software