OpenVZ Forum


Home » General » Support » Why venet0 and venet0:0 ?
Why venet0 and venet0:0 ? [message #4378] Sat, 08 July 2006 10:09 Go to next message
hvdkamer is currently offline  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 #26635 is a reply to message #4378] Tue, 29 January 2008 16:49 Go to previous messageGo to next message
vzjay is currently offline  vzjay
Messages: 3
Registered: January 2008
Junior Member
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 17:31 Go to previous messageGo to next message
hvdkamer is currently offline  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 #26667 is a reply to message #26637] Wed, 30 January 2008 13:24 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
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 06:32 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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 22:03 Go to previous messageGo to next message
SSJGotenks
Messages: 2
Registered: March 2010
Junior Member
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 09:34 Go to previous message
hvdkamer is currently offline  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:

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: Mon Mar 04 01:21:33 GMT 2024

Total time taken to generate the page: 0.03024 seconds