[one-users] help: with 8021q driver, network configuration won't work, after host reboot (???)

Andreas Calvo Gómez andreas.calvo at scytl.com
Fri Nov 30 04:33:26 PST 2012


We've been using 802.1Q under CentOS 6 without problems for quite a long 
time.
Can you post a detailed description of what is happening?

Thanks
On 30/11/12 07:57, users-request at lists.opennebula.org wrote:
>
> Message: 2
> Date: Fri, 30 Nov 2012 14:56:47 +0800
> From: ??? <yuchj at neusoft.com>
> To: users <users at lists.opennebula.org>
> Subject: [one-users] help: with 8021q driver,	network configuration
> 	won't work after host reboot
> Message-ID: <201211301456470519356 at neusoft.com>
> Content-Type: text/plain; charset="gb2312"
>
> As i said, with 8021q driver, network configuration won't work after host reboot. Does One notice this?
>
> Here is my solution for rhel below: (Is this ok?)
> # cat $ONE_LOCATION/var/remotes/vnm/802.1Q/HostManaged.rb
> require 'OpenNebulaNetwork'
> ...
> def create_bridge(bridge)
>      OpenNebula.exec_and_log_no_exit("#{COMMANDS[:brctl]} addbr #{bridge}")
>      OpenNebula.exec_and_log_no_exit("sudo sh -c 'echo brctl addbr #{bridge} >> /etc/rc.d/rc.local'")
> end
> ...
> def create_dev_vlan(dev, vlan)
>      OpenNebula.exec_and_log("#{COMMANDS[:vconfig]} add #{dev} #{vlan}")
>      OpenNebula.exec_and_log("sudo sh -c 'echo vconfig add #{dev} #{vlan} >> /etc/rc.d/rc.local'")
> end
> ...
> def attach_brigde_dev(bridge, dev, vlan=nil)
>      dev = "#{dev}.#{vlan}" if vlan
>      OpenNebula.exec_and_log("#{COMMANDS[:brctl]} addif #{bridge} #{dev}")
>      OpenNebula.exec_and_log("sudo sh -c 'echo brctl addif #{bridge} #{dev} >> /etc/rc.d/rc.local'")
> end
> ...
> def ifup(dev, vlan=nil)
>      dev = "#{dev}.#{vlan}" if vlan
>      OpenNebula.exec_and_log("#{COMMANDS[:ip]} link set #{dev} up")
>      OpenNebula.exec_and_log("sudo sh -c 'echo ip link set #{dev} up >> /etc/rc.d/rc.local'")
> end
> ...
>
>
>
>
> ??? |  ??
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
> is intended only for the use of the intended recipient and may be confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this communication in error,please
> immediately notify the sender by return e-mail, and delete the original message and all copies from
> your system. Thank you.
> ---------------------------------------------------------------------------------------------------
>

-- 
Andreas Calvo Gómez
Systems Engineer
Scytl Secure Electronic Voting
Plaça Gal·la Placidia, 1-3, 1st floor · 08006 Barcelona
Phone: + 34 934 230 324
Fax:   + 34 933 251 028
http://www.scytl.com

NOTICE: The information in this e-mail and in any of its attachments is
confidential and intended solely for the attention and use of the named
addressee(s). If you are not the intended recipient, any disclosure,
copying,
distribution or retaining of this message or any part of it, without the
prior
written consent of Scytl Secure Electronic Voting, SA is prohibited and
may be
unlawful. If you have received this in error, please contact the sender
and
delete the material from any computer.



More information about the Users mailing list