OpenVZ Forum - RDF feed
type: channel
items: Why venet0 and venet0:0 ?
items: Re: Why venet0 and venet0:0 ?

Why venet0 and venet0:0 ?
type: item
description: 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...
creator: hvdkamer
date: 2006-07-08T10:09:09-00:00

Re: Why venet0 and venet0:0 ?
type: item
description: 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.
creator: vzjay
date: 2008-01-29T16:49:17-00:00

Re: Why venet0 and venet0:0 ?
type: item
description: 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...
creator: hvdkamer
date: 2008-01-29T17:31:03-00:00

Re: Why venet0 and venet0:0 ?
type: item
description: 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?
creator: maratrus
date: 2008-01-30T13:24:58-00:00

Re: Why venet0 and venet0:0 ?
type: item
description: 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?
creator: kir
date: 2008-05-07T06:32:13-00:00

Re: Why venet0 and venet0:0 ?
type: item
description: 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!
creator: SSJGotenks
date: 2010-03-11T22:03:02-00:00

Re: Why venet0 and venet0:0 ?
type: item
description: 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
creator: hvdkamer
date: 2010-03-12T09:34:21-00:00