[Openstack] help openvswitch network configuration problems

applyhhj applyhhj at 163.com
Wed Sep 16 01:56:42 UTC 2015


Hi Everyone,
I am now configuring openvswitch for openstack cloud. I have a network node in the cloud and it has 3 network cards. When I did as the Openstack Install Guidance said to add port eth2, which is the interface that connects to the internet in dhcp mode, to the external bridge br-ex, the whole network node become disconnected from the internet. 
Here is the network interface file:
 
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
 
# management interface
auto eth0
iface eth0 inet static
address 10.0.0.21
netmask 255.255.255.0
#gateway 10.0.0.1
 
# tunnels interface
auto eth1
iface eth1 inet static
address 10.0.1.21
netmask 255.255.255.0
 
# external network interface
auto eth2
iface eth2 inet dhcp
        up ip link set dev $IFACE up
        down ip link set dev $IFACE down
 
After add eth2 to br-ex, ifconfig presents the following configuration:
 
 

Note: A lot of drop in bridge.
 
Openvswitch configuration:
 
# ovs-vsctl show
40981b45-f9ed-478c-8e25-288598238dc3
    Bridge br-ex
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port br-ex
            Interface br-ex
                type: internal
        Port "eth2"
            Interface "eth2"
    Bridge br-int
        fail_mode: secure
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port br-int
            Interface br-int
                type: internal
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
    Bridge br-tun
        fail_mode: secure
        Port br-tun
            Interface br-tun
                type: internal
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
ovs_version: "2.3.2"
 
# ovs-ofctl show br-ex
OFPT_FEATURES_REPLY (xid=0x2): dpid:00006c0b8442b1b5
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 1(phy-br-ex): addr: a mac addr
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 2(eth2): addr: mac of eth2
     config:     0
     state:      0
     current:    1GB-FD COPPER AUTO_NEG
     advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG
     supported:  10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG
     speed: 1000 Mbps now, 1000 Mbps max
 LOCAL(br-ex): addr: mac of eth2
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
 
# ovs-vsctl br-exists br-ex
Shows noting
 
If I remove eth2 from br-ex, then everything goes well.
By the way I use NAT to connect all other node in the cloud to the internet, but even if I cancel NAT noting changes. And also I have enabled ipv4 forwarding.
Any suggestion is warmly welcomed! Thank you very much!!

Regards
hjh!

2015-09-16



applyhhj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150916/125fe911/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 11.jpg
Type: image/jpeg
Size: 63798 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150916/125fe911/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 22.jpg
Type: image/jpeg
Size: 31022 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150916/125fe911/attachment-0001.jpg>


More information about the Openstack mailing list