OpenVZ Forum


Home » Mailing lists » Users » automatic veth setup
Re: automatic veth setup [message #7416 is a reply to message #7353] Fri, 13 October 2006 08:23 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

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>

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.

Kirill

> I'm trying to setup a veth only server, and I think I'm just about
> there. The new vznetcfg script is helpful for setting up the vethX.0
> interface when running vzctl start. I have modified this script to
> setup forwarding & proxy arp as well. I would like to assign the route
> at the same time, but if I specify IP_ADDRESS in the .conf file, it
> tries to assign it to venet (which isn't there) and fails. I'm not
> sure what other place would be good to stick the ip. It seems like the
> vznetcfg is the place to setup the route, as it is after vethX.0 has
> been setup on the host, but still runs in the host context. (using a
> .mount script wouldn't work because vethX.0 isn't up yet)
>
> It seems like the infrastructure for veth is still being worked out..
> Is there a standard way to set this up that I'm missing?
>
>
>
> ------------------------------------------------------------ ------------
>
 
Read Message
Read Message
Read Message
Previous Topic: automatic veth setup
Next Topic: vps does not start anymore after upgrade
Goto Forum:
  


Current Time: Thu Oct 31 10:34:45 GMT 2024

Total time taken to generate the page: 0.05010 seconds