<div dir="ltr">Hello Yngvi,<br><br>You can make changes in /etc/network/interfaces as follows:<br>1. Define interface br-ex, give it static IP same as em3.<br>2. Add em3 to promiscuous mode.<div><br></div><div>Your interfaces file should look something like:<br><br><div><i>auto br-ex</i></div><div><i>iface br-ex inet static</i></div><div><i>address X.X.X.X</i></div><div><i>netmask </i><i>X.X.X.X</i></div><div><i>network </i><i>X.X.X.X</i></div><div><i>dns-nameservers </i><i>X.X.X.X</i></div><div><i>dns-search <a href="http://example.com">example.com</a></i></div><div><i>gateway </i><i>X.X.X.X</i></div></div><div><i><br></i></div><div><div><i>auto em3</i></div><div><i>iface em3 inet manual</i></div><div><i>up ifconfig $IFACE 0.0.0.0 up</i></div><div><i>up ip link set $IFACE promisc on</i></div><div><i>down ip link set $IFACE promisc off</i></div><div><i>down ifconfig $IFACE down</i></div></div><div><br></div><div class="gmail_extra"><br>Hope this helps!</div><div class="gmail_extra"><br></div><div class="gmail_extra">--</div><div class="gmail_extra">Regards,<br>Akshay<br><br><div class="gmail_quote">On Wed, Mar 25, 2015 at 4:00 PM, Yngvi Páll Þorfinnsson <span dir="ltr"><<a href="mailto:yngvith@siminn.is" target="_blank">yngvith@siminn.is</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andreas<br>
Yes you're absolutely correct about this, when I use<br>
<span class="">ifconfig em3 0<br>
ifconfig br-ex <a href="http://172.22.17.12/24" target="_blank">172.22.17.12/24</a><br>
</span>I can ping the default gateway 172.22.7.1<br>
<br>
But, how would you configure this permanently?  i.e. how would you edit the network configuration file:<br>
/etc/network/interfaces<br>
To make this a permanent configuration?<br>
<br>
Thanks a lot for your help !<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888">Yngvi<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: Andreas Scheuring [mailto:<a href="mailto:scheuran@linux.vnet.ibm.com">scheuran@linux.vnet.ibm.com</a>]<br>
Sent: 24. mars 2015 15:31<br>
To: Yngvi Páll Þorfinnsson<br>
Cc: <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Subject: Re: [Openstack] openvswitch configuraion<br>
<br>
Hi Yngyi,<br>
<br>
this absolutely makes sense.<br>
<br>
As soon as you add a port to a bridge (doesn't matter if linux- or<br>
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.<br>
<br>
e.g.<br>
> ifconfig em3 0<br>
> ifconfig br-ex <a href="http://172.22.17.12/24" target="_blank">172.22.17.12/24</a><br>
<br>
And you should be fine<br>
<br>
<br>
Hope this helps!<br>
<br>
--<br>
Andreas<br>
(irc: scheuran)<br>
<br>
<br>
On Tue, 2015-03-24 at 14:31 +0000, Yngvi Páll Þorfinnsson wrote:<br>
> Hi,<br>
><br>
> I‘ll just give you an update on this „problem“.<br>
><br>
> I can go back and ping the default gateway etc.<br>
><br>
> if I go back one step, and delete the port config for br-ex<br>
><br>
><br>
><br>
> ovs-vsctl del-port br-ex em3<br>
><br>
><br>
><br>
> best regards<br>
><br>
> Yngvi<br>
><br>
><br>
><br>
> From: Yngvi Páll Þorfinnsson<br>
> Sent: 23. mars 2015 16:45<br>
> To: <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Subject: [Openstack] openvswitch configuraion<br>
><br>
><br>
><br>
><br>
> Hi,<br>
><br>
> I‘m trying to configure neutron on the networking node.<br>
><br>
><br>
><br>
> My problem is:<br>
><br>
> The 3rd interface is somehow not working after I configure<br>
> openvswitch.<br>
><br>
><br>
><br>
> I‘m using the manual<br>
><br>
> „OpenStack Installation Guide for Ubuntu 14.04“  - Juno<br>
><br>
> Everything has gone well until I reached the configuration of the Open<br>
> vSwitch (OVS)mechanism.<br>
><br>
> i.e.<br>
><br>
> To configure the Modular Layer 2 (ML2) plug-in<br>
><br>
> The ML2 plug-in uses theOpen vSwitch (OVS)mechanism (agent) to build<br>
> the virtual networking<br>
><br>
> framework for instances. However, the controller node does not need<br>
> the OVS<br>
><br>
> components because it does not handle instance network traffic.<br>
><br>
><br>
><br>
> And as I‘ve edited the configuration file<br>
><br>
> /etc/neutron/plugins/ml2/ml2_conf.ini<br>
><br>
> Accordingly to the instructions.<br>
><br>
><br>
><br>
> IP address for the 3rd interface is 172.22.17.12<br>
><br>
><br>
><br>
> ip addr show<br>
><br>
><br>
><br>
> 4: em3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master<br>
> ovs-system state UP group default qlen 1000<br>
><br>
>     link/ether d4:85:64:cc:a2:2e brd ff:ff:ff:ff:ff:ff<br>
><br>
>     inet <a href="http://172.22.17.12/24" target="_blank">172.22.17.12/24</a> brd 172.22.17.255 scope global em3<br>
><br>
>        valid_lft forever preferred_lft forever<br>
><br>
>     inet6 fe80::d685:64ff:fecc:a22e/64 scope link<br>
><br>
>        valid_lft forever preferred_lft forever<br>
><br>
><br>
><br>
><br>
><br>
> But now when I‘m trying to ping default gateway or <a href="http://openstack.org" target="_blank">openstack.org</a> it<br>
> does not work anymore.<br>
><br>
><br>
><br>
> route -n<br>
><br>
> Kernel IP routing table<br>
><br>
> Destination     Gateway         Genmask         Flags Metric Ref<br>
> Use Iface<br>
><br>
> 0.0.0.0         172.22.17.1     0.0.0.0         UG    0      0<br>
> 0 em3<br>
><br>
> 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0<br>
> 0 em2<br>
><br>
> 172.22.14.0     0.0.0.0         255.255.255.0   U     0      0<br>
> 0 em1<br>
><br>
> 172.22.15.0     0.0.0.0         255.255.255.0   U     0      0<br>
> 0 em2<br>
><br>
> 172.22.17.0     0.0.0.0         255.255.255.0   U     0      0<br>
> 0 em3<br>
><br>
><br>
><br>
> root@opst-netwrk1-dev:~# ping 172.22.17.1<br>
><br>
> PING 172.22.17.1 (172.22.17.1) 56(84) bytes of data.<br>
><br>
> From 172.22.17.12 icmp_seq=1 Destination Host Unreachable<br>
><br>
><br>
><br>
> root@opst-netwrk1-dev:~# ping 162.242.140.107<br>
><br>
> PING 162.242.140.107 (162.242.140.107) 56(84) bytes of data.<br>
><br>
> From 172.22.17.12 icmp_seq=1 Destination Host Unreachable<br>
><br>
><br>
><br>
> It worked perfectly before this step.  And it works very well still on<br>
> the controller and computer nodes.<br>
><br>
><br>
><br>
> The network card is 10 years old, as the server:<br>
><br>
> HP Proliant DL380 G7<br>
><br>
><br>
><br>
> Does anyone know if this openvswitch configuration is supported for<br>
> such an old network card?<br>
><br>
> Could this be the problem?<br>
><br>
><br>
><br>
> Best regards<br>
><br>
> Yngvi<br>
><br>
><br>
><br>
> Kveðja,<br>
><br>
> Yngvi Páll Þorfinnsson<br>
> Engineer<br>
><br>
> Sími +354 550 7457<br>
> GSM +354 896 7457<br>
> Fax +354 511 7070<br>
><br>
><br>
> Síminn - Ármúli 25 - 108 Reykjavík - Iceland - <a href="http://siminn.is" target="_blank">siminn.is</a><br>
><br>
><br>
> Síminn - Ármúli 25 - 108 Reykjavík - Iceland - <a href="http://siminn.is" target="_blank">siminn.is</a><br>
><br>
> Ábyrgð þín varðandi tölvupóst.<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe :<br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
</div></div></blockquote></div><br></div></div>