Mac address allocation to virtual interfaces [message #36887] |
Mon, 27 July 2009 14:36 |
siraj
Messages: 6 Registered: July 2009
|
Junior Member |
|
|
Hi
In an experiment i need to assign contiguous MAC addresses to
openvz containers
e.g container 401 eth0: aa:bb:cc:dd:ee:01
container 402 eth0:aa:bb:cc:dd:ee:02
According to vzctl documentation available at
http://openvz.org/documentation/mans/vzctl.8
-----------------------
"
--veth_add dev_name,dev_addr,dev_name_ve,dev_addr_ve
Adds virtual ethernet device to a given VE. Here dev_name is an Ethernet device name in host system, dev_addr is its MAC address, dev_name_ve is an Ethernet device name in VE, and dev_addr_ve is its MAC address. MAC addresses must be entered in XX:XX:XX:XX:XX:XX format. Note that this option is incremental, so devices are added to already existing ones. "
--------------------------------------------------
i used it accordingly
root@sirajhn# vzctl set 401 --veth_add veth401.0 aa:bb:cc:dd:ee:a0 eth0 aa:bb:cc:dd:ee:01
Output: Bad Parameter for --veth_add:veth401.2
i am using "2.6.18-14-ovz-amd64-smp" version of openvz. Host
machine is running ubuntu 8.04 server. Can some one kindly
explain the reason of this error.
Regards
Siraj
|
|
|