Ask Your Question
1

Can't add external bridge using OVS

asked 2014-08-08 14:12:10 -0600

mdiehl gravatar image

updated 2014-08-08 15:24:19 -0600

smaffulli gravatar image

I'm plodding through the installation manual and I've gotten to http://docs.openstack.org/icehouse/in...

But, when I issue the command:

 ovs-vsctl add-port br-ex eth0

My server looses all access to the LAN. Rebooting doesn't restore connectivity. I have to do a:

ovs-vsctl del-port br-ex eth0

To get connectivity back. What am I missing?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-08-08 14:23:27 -0600

mpetason gravatar image

updated 2014-08-08 15:22:34 -0600

smaffulli gravatar image

I found the RDO documentation to be very helpful when I was going through the OVS setup. The OpenStack documentation did not have the configuration options that were included in the network scripts setup by RDO:

http://openstack.redhat.com/Neutron_w...

I had luck configuring the interfaces this way then using the ovs-vsctl add-port option:

Make /etc/sysconfig/network-scripts/ifcfg-br-ex resemble: (note this file shouldn't exist, but does due to a bug)

DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=192.168.122.212 # Old eth0 IP since we want the network restart to not kill the connection, otherwise pick something outside your dhcp range
NETMASK=255.255.255.0  # your netmask
GATEWAY=192.168.122.1  # your gateway
DNS1=192.168.122.1     # your nameserver
ONBOOT=yes

Make /etc/sysconfig/network-scripts/ifcfg-eth0 resemble (no BOOTPROTO!):

DEVICE=eth0
HWADDR=52:54:00:92:05:AE # your hwaddr
TYPE=OVSPort
DEVICETYPE=ovs
OVS_BRIDGE=br-ex
ONBOOT=yes

If you only have one interface and need to make sure that you do not drop your connection you could look at adding sub interfaces then working off of those with the br-ex:

 eth0:0
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-08-08 14:12:10 -0600

Seen: 737 times

Last updated: Aug 08 '14