[Openstack] openvswitch configuraion

Yngvi Páll Þorfinnsson yngvith at siminn.is
Wed Mar 25 16:24:19 UTC 2015


Hi Akshay

I went through this again, and now I rebooted the server, instead of only restarting
network services.
And now it works ☺
I can ping the default gateway, as well as other sites,  i.e.  openstack.org  which did not work before.

ping openstack.org
PING openstack.org (162.242.140.107) 56(84) bytes of data.
64 bytes from 162.242.140.107: icmp_seq=1 ttl=47 time=135 ms

Thanks a lot for your advise, it seems to have solved my problems.
I‘n new to openstack, so it‘s really important to get such good advise ☺

Best regards
Yngvi


From: Akshay Bhandari [mailto:akshayb.2693 at gmail.com]
Sent: 25. mars 2015 12:03
To: Yngvi Páll Þorfinnsson
Cc: openstack at lists.openstack.org
Subject: Re: [Openstack] openvswitch configuraion

Hello Yngvi,

You can make changes in /etc/network/interfaces as follows:
1. Define interface br-ex, give it static IP same as em3.
2. Add em3 to promiscuous mode.

Your interfaces file should look something like:
auto br-ex
iface br-ex inet static
address X.X.X.X
netmask X.X.X.X
network X.X.X.X
dns-nameservers X.X.X.X
dns-search example.com<http://example.com>
gateway X.X.X.X

auto em3
iface em3 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ip link set $IFACE promisc off
down ifconfig $IFACE down


Hope this helps!

--
Regards,
Akshay
On Wed, Mar 25, 2015 at 4:00 PM, Yngvi Páll Þorfinnsson <yngvith at siminn.is<mailto:yngvith at siminn.is>> wrote:
Hi Andreas
Yes you're absolutely correct about this, when I use
ifconfig em3 0
ifconfig br-ex 172.22.17.12/24<http://172.22.17.12/24>
I can ping the default gateway 172.22.7.1

But, how would you configure this permanently?  i.e. how would you edit the network configuration file:
/etc/network/interfaces
To make this a permanent configuration?

Thanks a lot for your help !

Best regards
Yngvi

-----Original Message-----
From: Andreas Scheuring [mailto:scheuran at linux.vnet.ibm.com<mailto:scheuran at linux.vnet.ibm.com>]
Sent: 24. mars 2015 15:31
To: Yngvi Páll Þorfinnsson
Cc: openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Subject: Re: [Openstack] openvswitch configuraion

Hi Yngyi,

this absolutely makes sense.

As soon as you add a port to a bridge (doesn't matter if linux- or
ovs-bridge) it cannot be used as ip interface anymore. What you have to do after you've added this interface to br-ex, you have to "move up" the ip address to the br-ex.

e.g.
> ifconfig em3 0
> ifconfig br-ex 172.22.17.12/24<http://172.22.17.12/24>

And you should be fine


Hope this helps!

--
Andreas
(irc: scheuran)


On Tue, 2015-03-24 at 14:31 +0000, Yngvi Páll Þorfinnsson wrote:
> Hi,
>
> I‘ll just give you an update on this „problem“.
>
> I can go back and ping the default gateway etc.
>
> if I go back one step, and delete the port config for br-ex
>
>
>
> ovs-vsctl del-port br-ex em3
>
>
>
> best regards
>
> Yngvi
>
>
>
> From: Yngvi Páll Þorfinnsson
> Sent: 23. mars 2015 16:45
> To: openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
> Subject: [Openstack] openvswitch configuraion
>
>
>
>
> Hi,
>
> I‘m trying to configure neutron on the networking node.
>
>
>
> My problem is:
>
> The 3rd interface is somehow not working after I configure
> openvswitch.
>
>
>
> I‘m using the manual
>
> „OpenStack Installation Guide for Ubuntu 14.04“  - Juno
>
> Everything has gone well until I reached the configuration of the Open
> vSwitch (OVS)mechanism.
>
> i.e.
>
> To configure the Modular Layer 2 (ML2) plug-in
>
> The ML2 plug-in uses theOpen vSwitch (OVS)mechanism (agent) to build
> the virtual networking
>
> framework for instances. However, the controller node does not need
> the OVS
>
> components because it does not handle instance network traffic.
>
>
>
> And as I‘ve edited the configuration file
>
> /etc/neutron/plugins/ml2/ml2_conf.ini
>
> Accordingly to the instructions.
>
>
>
> IP address for the 3rd interface is 172.22.17.12
>
>
>
> ip addr show
>
>
>
> 4: em3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master
> ovs-system state UP group default qlen 1000
>
>     link/ether d4:85:64:cc:a2:2e brd ff:ff:ff:ff:ff:ff
>
>     inet 172.22.17.12/24<http://172.22.17.12/24> brd 172.22.17.255 scope global em3
>
>        valid_lft forever preferred_lft forever
>
>     inet6 fe80::d685:64ff:fecc:a22e/64 scope link
>
>        valid_lft forever preferred_lft forever
>
>
>
>
>
> But now when I‘m trying to ping default gateway or openstack.org<http://openstack.org> it
> does not work anymore.
>
>
>
> route -n
>
> Kernel IP routing table
>
> Destination     Gateway         Genmask         Flags Metric Ref
> Use Iface
>
> 0.0.0.0         172.22.17.1     0.0.0.0         UG    0      0
> 0 em3
>
> 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0
> 0 em2
>
> 172.22.14.0     0.0.0.0         255.255.255.0   U     0      0
> 0 em1
>
> 172.22.15.0     0.0.0.0         255.255.255.0   U     0      0
> 0 em2
>
> 172.22.17.0     0.0.0.0         255.255.255.0   U     0      0
> 0 em3
>
>
>
> root at opst-netwrk1-dev:~# ping 172.22.17.1
>
> PING 172.22.17.1 (172.22.17.1) 56(84) bytes of data.
>
> From 172.22.17.12 icmp_seq=1 Destination Host Unreachable
>
>
>
> root at opst-netwrk1-dev:~# ping 162.242.140.107
>
> PING 162.242.140.107 (162.242.140.107) 56(84) bytes of data.
>
> From 172.22.17.12 icmp_seq=1 Destination Host Unreachable
>
>
>
> It worked perfectly before this step.  And it works very well still on
> the controller and computer nodes.
>
>
>
> The network card is 10 years old, as the server:
>
> HP Proliant DL380 G7
>
>
>
> Does anyone know if this openvswitch configuration is supported for
> such an old network card?
>
> Could this be the problem?
>
>
>
> Best regards
>
> Yngvi
>
>
>
> Kveðja,
>
> Yngvi Páll Þorfinnsson
> Engineer
>
> Sími +354 550 7457
> GSM +354 896 7457
> Fax +354 511 7070
>
>
> Síminn - Ármúli 25 - 108 Reykjavík - Iceland - siminn.is<http://siminn.is>
>
>
> Síminn - Ármúli 25 - 108 Reykjavík - Iceland - siminn.is<http://siminn.is>
>
> Ábyrgð þín varðandi tölvupóst.
>
>
>
>
>
>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150325/052b7f9e/attachment.html>


More information about the Openstack mailing list