OpenVZ Forum


Home » Mailing lists » Users » automatic veth setup
Re: automatic veth setup [message #7444 is a reply to message #7416] Fri, 13 October 2006 12:51 Go to previous message
Bowser Bizowser is currently offline  Bowser Bizowser
Messages: 3
Registered: October 2006
Junior Member
On 10/13/06, Kirill Korotaev <dev@sw.ru> wrote:
>
> AFAICS,
>
> vznetcfg is to configure host end of veth device.
> you can put it into the bridge or setup the routing - whatever you want.
> Just add routing with something like:
> # ip r a <ve ip> dev <out-device>


How to add routing isn't so much of the problem, but where to add it, and
where to get the ip used to add it. The above ip command should work fine,
and I'm fine with putting it in the vznetcfg script, but the question is
"where do I get the veip from?" Like I said, it seems the IP_ADDRESS in the
.conf would be the place for it. However, with the ip there, it tries to
add to venet, and the vps _does not start_ without the venet interface
setup. I could create another variable for the IP, or get it in another
roundabout fashion, but it seems that there should be an elegant way for
vznetcfg to get the ip. Even a way to disable IP_ADDRESS from being added
to venet would work. (or a way that causes it to just fail at venet network
setup instead of preventing the vps from starting at all).

However, the second veth device in VE should be configured as well.
> And this can be done with srd distribution scripts.
> for example, in Redhat based distributions you can
> create appropriate ifcfg-vethX file with settings.


I have no problems setting up the interface on the VE side.
 
Read Message
Read Message
Read Message
Previous Topic: automatic veth setup
Next Topic: vps does not start anymore after upgrade
Goto Forum:
  


Current Time: Tue Aug 20 07:53:21 GMT 2024

Total time taken to generate the page: 0.03156 seconds