<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>Just adding to what Charles mentioned the patch that allowed this on the host side: <a href="https://gerrit.ovirt.org/#/c/66127/">https://gerrit.ovirt.org/#/c/66127/</a><br></div><br></div>Note that for a tipical VM network, one would not usually define an IP address, as it exposes the host to the VM/s.<br></div>When a vnic is connected to the network, it will have L2 connectivity through it and you should be able to define on the VM that holds it an IP.<br><br></div>Thanks,<br></div>Edy.<br><div><div><div><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 30, 2017 at 3:42 PM, Charles Tassell <span dir="ltr"><<a href="mailto:ctassell@gmail.com" target="_blank">ctassell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Martin,<br>
<br>
oVirt 4.1 (and maybe earlier versions that I just didn't notice) use policy based routing. You can see these routes by typing "ip rule show" on one of the hosts.<br>
<br>
In situations such as yours, where you are connected to multiple networks and need to specify which one has the gateway, there is a little trick you need to use on the admin box (usually the hosted engine VM, it' sthe same box that runs the GUI) ssh into that box and then run the following two commands:<br>
<br>
engine-config -g UserDefinedNetworkCustomProper<wbr>ties<br>
engine-config -s UserDefinedNetworkCustomProper<wbr>ties='default_route=^(true|fal<wbr>se)$'<br>
<br>
Next, go into the GUI and onto the Hosts tab. Click on your first host then on the Network Interfaces tab, and "Setup Host Networks" Click on the little pencil icon next to your VM network (the one that should have the default route) and then on the Custom Properties tab. Add the property "default_route" and set it to true and hit OK. Then click on all of the other networks you have and add the same property with the value of false. Then hit OK to save the network config. Repeat this process for all hosts.<br>
<br>
Note that I think when I did this I had a problem getting it to save for the host that was running the HostedEngine. You may have to put each host into Maintenance Mode in order to apply the setting.<br>
<br>
This bug has some more details on the setup I think: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1400366" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/sh<wbr>ow_bug.cgi?id=1400366</a><br>
<br>
<br>
<br>
On 2017-04-30 09:00 AM, <a href="mailto:users-request@ovirt.org" target="_blank">users-request@ovirt.org</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Message: 1<br>
Date: Sun, 30 Apr 2017 13:03:28 +0200<br>
From: martin chamambo <<a href="mailto:chamambom@gmail.com" target="_blank">chamambom@gmail.com</a>><br>
To: Yaniv Kaul <<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>><br>
Cc: users <<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>><br>
Subject: Re: [ovirt-users] how does ovirt deal with multiple networks<br>
with multiple gateways<br>
Message-ID:<br>
<CAHbWOdZRBsTuqWKTzU6Aa4e=<a href="mailto:e1RXH30fQpg58dT3mOVWZgVAKg@mail.gmail.com" target="_blank">e1RX<wbr>H30fQpg58dT3mOVWZgVAKg@mail.gm<wbr>ail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I am using ovirt 4.1.1.X.X version on both nodes and Engine.<br>
There are no static routes and the network topology is is such a way that<br>
only the VMnetwork logical network is on a network with internet and has<br>
got a default gateway .<br>
<br>
so i have<br>
192.168.1.X with a gateway of say 192.168.1.50 (This has internet) and<br>
this is the VM network<br>
192.168.2.X , no gateway and is the ovirtmangnt<br>
192.168.3.X no gateway and its the display<br>
,192.168.4.X , no gateway and its the Migration network<br>
192.168.5.X , no gateway and its the Storage<br>
<br>
when i set up these networks using the Ovirt engine GUI , ovirt seems to<br>
create routes and rule files for each specific network ,but for some reason<br>
, i cant ping anything besides the networks defined<br>
<br>
On Sun, Apr 30, 2017 at 8:45 AM, Yaniv Kaul <<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Can you share some more details?<br>
- What version are you using?<br>
- What is the network topology? Are any static routes defined? The fact<br>
oVirt sets a specific network for storage does not imply it'll use it for<br>
storage automatically - unless routing is properly defined for it.<br>
<br>
TIA,<br>
Y.<br>
<br>
On Sun, Apr 30, 2017 at 8:11 AM, martin chamambo <<a href="mailto:chamambom@gmail.com" target="_blank">chamambom@gmail.com</a>><br>
wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello<br>
<br>
I am testing ovirt and i have configured it with 5 networks as shown<br>
below<br>
<br>
Display , Migration , VMnetwork ,Storage and the default ovirtmngmnt<br>
network<br>
<br>
These networks are represented by individual phyiscal interfaces on the<br>
ovirt nodes and for some reason the default gateway is not being set<br>
correctly<br>
<br>
it always seem to prefer the ovirtmngmnt interface as the default<br>
<br>
The only network thats supposed to have internet is the VMnetwork role<br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br>
<br>
</blockquote></blockquote></blockquote>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</blockquote></div><br></div></div></div></div></div></div></div></div></div></div></div></div></div>