[ovs-discuss] openvswitch bridge Configuration

韩金朋 hanjp at neusoft.com
Mon Dec 3 03:35:02 UTC 2012


hi: Cong Wang
I rhel / README.RHEL configuration, but after the restart network the VM NIC still missing.How to configure to restart network or reboot the host after data still restart before. 
eth0 configuration:
DEVICE=eth0
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br0
ONBOOT="yes"
BOOTPROTO=none
HOTPLUG=no
br0 configuration:
DEVICE=br0
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=192.168.1.40
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
HOTPLUG=no
before restart network:
Bridge "br0"
Port "vnet0" 
Interface "vnet0"
Port "br0"
Interface "br0"
type: internal
Port "eth0"
Interface "eth0"
Port "vnet1"
Interface "vnet1"
ovs_version: "1.7.1"
after restart network:
Bridge "br0"
Port "br0"
Interface "br0"
type: internal
Port "eth0"
Interface "eth0"
ovs_version: "1.7.1"
vnet0 and vnet1 is VM's interface.





韩金朋

From: Cong Wang
Date: 2012-12-02 20:07
To: hanjp
CC: bugs
Subject: Re: [ovs-discuss] openvswitch bridge Configuration
On Fri, Nov 30, 2012 at 7:37 PM, 韩金朋 <hanjp at neusoft.com> wrote:
> Hi all:
> I use the RPM packages installed on Red Hat 6.2 with OpenvSwitch 1.7.1,then
> I created a bridge and bind eth0 made a bridge and eth0 configuration, also
> in the / etc / sysconfig / network-scripts / directory , I create ifcfg-br0
> file(I name the bridge for br0 ).
>
> ifcfg-br0 file contents are as follows :
> DEVICE=br0
> TYPE=Bridge
> BROADCAST=192.168.1.255
> NETMASK=255.255.255.0
> IPADDR=192.168.1.50
> BOOTPROTO=static
> ONBOOT=yes

TYPE=Bridge is for traditional bridges, TYPE=OVSBridge
is for openvswitch bridges.

> I modified the eth0 file (/etc/sysconfig/network-scripts/ifcfg-eth0 )as
> follows :
> DEVICE=eth0
> ONBOOT=yes
> BRIDGE=br0

Ditto, you should use TYPE=OVSPort if you want to use ovs bridge.

Also, please take a look at rhel/README.RHEL.
---------------------------------------------------------------------------------------------------
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. 
---------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20121203/7b65fcb6/attachment-0001.html>


More information about the discuss mailing list