[Users] automatic veth setup

Kirill Korotaev dev at sw.ru
Fri Oct 13 04:27:30 EDT 2006


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.


> 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?
> ------------------------------------------------------------------------
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users

More information about the Users mailing list