Hi!

Thank you for response, I have already found a eth0->eth1 mistake, but this was 
not enough.
The complete solution, after a number of experiments is:

# The order is important: eth1 must be after br0!
auto br0 eth1 br0:1

allow-ovs br0
iface br0 inet static
  address 192.168.111.1
  netmask 255.255.255.0 
  ovs_type OVSBridge    
  ovs_ports eth1
# Starting up openvswitch daemon if it was not started already
  pre-up /etc/init.d/openvswitch-switch start

allow-br0 eth1
iface eth1 inet manual
  ovs_bridge br0
  ovs_type OVSPort
  pre-up ifconfig $IFACE up
  post-down ifconfig $IFACE down

allow-br0 br0:1
iface br0:1 inet static
    address 192.168.111.2
    netmask 255.255.255.0

##################################

I think, this tricks with "pre-up /etc/init.d/openvswitch-switch start" and 
"auto" order must be documented.

Pavel.


>> On Jul 8, 2014, at 3:08 AM, "Pavel V. Kaygorodov" <pa...@inasan.ru> wrote:
>> 
>> Hi!
>> 
>> I have installed openvswitch-2.3.90 on Debian wheezy, and changed 
>> /etc/network/interfaces:
>> 
>> auto lo eth1 br0
>> iface lo inet loopback
>> 
>> # The primary network interface
>> allow-hotplug eth0
>> iface eth0 inet dhcp
>> 
>> allow-ovs br0
>>  iface br0 inet static 
>>  address 192.168.111.1
>>  netmask 255.255.255.0
>>  ovs_type OVSBridge
>>  ovs_ports eth1
>> 
>> allow-br0 eth1
>>  iface eth0 inet manual
> You probably want eth1 above.
>>  ovs_bridge br0  
>>  ovs_type OVSPort
>>  pre-up ifconfig $IFACE up
>>  post-down ifconfig $IFACE down
>> 
>> after reboot I see br0 interface with proper IP address, but without eth1 
>> port added:
>> 
>> # ovs-vsctl show
>> 3ec07e03-5a5a-44ec-8543-3a9bc380bfdb
>>    Bridge "br0"
>>        Port "br0"
>>            Interface "br0"
>>                type: internal
>>    ovs_version: "2.3.90"
>> 
>> I think this is because openvswitch-switch isn't started before network 
>> interface configuration stage, I see following errors on boot screen:
>> 
>> <PastedGraphic-1.png>
>> 
>> How can I fix this?
>> 
>> Pavel.
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> discuss mailing list
>> discuss@openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to