*SOLVED* bridged virtual ethernets netif_add, veth_add [message #10925] |
Wed, 07 March 2007 14:26 |
pjspjs
Messages: 2 Registered: March 2007
|
Junior Member |
|
|
I can do something like:
vzctl set 101 --veth_add veth201.0,01:23:45:67:89:0A,eth2,01:23:45:67:89:0B --save
followed by brctl addbr br0
and then brctl addif br0 veth201.0
and this works,
but using the "preferred --netif_add", this creates a device which is not capable of joining a bridge.
any ideas, my concern is that --veth_add is "old style" and may disappear in the future?
[Updated on: Tue, 13 March 2007 07:46] by Moderator Report message to a moderator
|
|
|
|
Re: bridged virtual ethernets netif_add, veth_add [message #10929 is a reply to message #10925] |
Wed, 07 March 2007 15:22 |
|
curx
Messages: 739 Registered: February 2006 Location: Nürnberg, Germany
|
Senior Member |
|
|
the syntax of --netif_add differs to --veth_add
--netif_add ifname[,mac,host_ifname,host_mac]
ifname is the ethernet device name in the VE,
mac is its MAC address,
host_ifname is the ethernet device name on the host (VE0)
host_mac is its MAC address
as example:
vzctl set 101 --veth_add veth201.0,01:23:45:67:89:0A,eth2,01:23:45:67:89:0B
is same like:
vzctl set 101 --netif_add eth2,01:23:45:67:89:0B,veth201.0,01:23:45:67:89:0A
|
|
|
|
|