<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>13 aug 2012 kl. 23.56 skrev Justin Clift:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 13/08/2012, at 10:55 PM, Ricardo Esteves wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I the attached picture "net1.jpg" i have my initial network configuration.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Physical card (em1) with vlan 10 (em1.10) bridged to the ovirtmgmt with IP 192.168.10.25 and default gw 192.168.10.254. <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Now i want to bond em1 card with p1p1 card (attached picture net2.jpg)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">But if i fill the default gw it gives me this error: The default gateway should be set only on engine network.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If i don't fill the default gw, when i click ok, i loose connection to the server and then after more or less 1 minute the server automaticaly reboots.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Anyone had this kind of problem?<br></blockquote><br>Two thoughts here: ;)<br><br> * The "lose connection to the server" bit sort of sounds like<br> this bug:<br><br> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=838816">https://bugzilla.redhat.com/show_bug.cgi?id=838816</a><br><br> Reckon that's a match?<br><br><br> * Aside from that, you might have to manually configure<br> networking for the hosts from the command line. Using the<br> normal Linux commands I mean, not oVirt specific ones.<br><br> i.e. creating the bridging and everything manually.<br><br> This is the approach I had to take last week when trying<br> out Aeolus with oVirt 3.1. Network layer breaks when<br> adding a 2nd interface, but was able to work around it<br> by manually creating the bridges from cli, after having<br> defined the logical networks in the oVirt Web UI.<br><br>The "configure things manually" approach isn't all that<br>documented either. I kind of stumbled my way through, by<br>looking at the examples here:<br></div></blockquote><div><br></div>I second that! I just trial and errored my way through bond -> vlan -> bridge. Let´s just say that´s for people who are up for a challenge. But luckily, I´m one for sharing:</div><div><br></div><div>Start by defining to load bonding at boot:</div><div><div># cat > /etc/modprobe.d/bonding.conf << EOF</div><div>alias bond0 bonding</div><div><br></div><div>EOF</div><div><br></div><div>Then define the bond. This is LACP mode:</div><div><div># cat > /etc/sysconfig/network-scripts/ifcfg-bond0 << EOF</div><div><div>DEVICE=bond0</div><div>NM_CONTROLLED=no</div><div>USERCTL=no</div><div>BOOTPROTO=none</div><div>BONDING_OPTS="mode=4 miimon=100"</div><div>TYPE=Ethernet</div><div>MTU=9000</div></div><div><br></div><div>EOF</div><div><br></div><div>Then "enslave" the physical NICs to the bond:</div><div><div># cat > /etc/sysconfig/network-scripts/ifcfg-em1 << EOF</div><div><div>NM_CONTROLLED="no"</div><div>BOOTPROTO="none"</div><div>DEVICE="em1"</div><div>ONBOOT="yes"</div><div>USERCTL=no</div><div>MASTER=bond0</div><div>SLAVE=yes</div><div><br></div></div><div>EOF</div><div><br></div><div><div># cat > /etc/sysconfig/network-scripts/ifcfg-em2 << EOF</div><div><div>NM_CONTROLLED="no"</div><div>BOOTPROTO="none"</div><div>DEVICE="em2"</div><div>ONBOOT="yes"</div><div>USERCTL=no</div><div>MASTER=bond0</div><div>SLAVE=yes</div><div><br></div></div><div>EOF</div><div><br></div><div>Then create VLAN interfaces ontop of the bond. In this example, I´m using VLAN ID 1 and 2:</div><div><div># cat > /etc/sysconfig/network-scripts/ifcfg-bond0.1 << EOF</div><div><div><div>DEVICE=bond0.1</div><div>VLAN=yes</div><div>BOOTPROTO=none</div><div>NM_CONTROLLED=no</div><div>BRIDGE=br1</div><div>MTU=1500</div></div><div><br></div></div><div>EOF</div><div><br></div><div><div># cat > /etc/sysconfig/network-scripts/ifcfg-bond0.2 << EOF</div><div><div><div>DEVICE=bond0.2</div><div>VLAN=yes</div><div>BOOTPROTO=none</div><div>NM_CONTROLLED=no</div><div>BRIDGE=ovirtmgmt</div><div>MTU=9000</div></div><div><br></div></div><div>EOF</div><div><br></div><div>Lastly, create the bridges ontop of the VLAN interfaces. The names, as I have understood it, can be whatever you want, but one needs to be called "ovirtmgmt" of course:</div><div><div># cat > /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt << EOF</div><div><div><div><div>TYPE=Bridge</div><div>NM_CONTROLLED="no"</div><div>BOOTPROTO="none"</div><div>DEVICE="ovirtmgmt"</div><div>ONBOOT="yes"</div><div>IPADDR=XXX.XXX.XXX.XXX</div><div>NETMASK=255.255.255.0</div></div></div><div><br></div></div><div>EOF</div><div><br></div><div><div># cat > /etc/sysconfig/network-scripts/ifcfg-br0 << EOF</div><div><div><div><div>TYPE=Bridge</div><div>NM_CONTROLLED="no"</div><div>BOOTPROTO="none"</div><div>DEVICE="br0"</div><div>ONBOOT="yes"</div><div>IPADDR=XXX.XXX.XXX.XXX</div><div>NETMASK=255.255.255.0</div></div></div><div><br></div></div><div>EOF</div><div><br></div><div>Gateway goes into:</div><div><div><span class="Apple-style-span"># cat > </span>/etc/sysconfig/network<span class="Apple-style-span"> << EOF</span></div><div>GATEWAY=XXX.XXX.XXX.XXX</div><div><br></div><div>EOF</div></div><div><br></div><div>This way, you can have almost(4096) as many interfaces as you want with only two physical NICs. I also gave an example on how you tune Jumbo Frames to be active on some interfaces, and have regular windows size on the rest. Jumbo most only be active on interfaces that isn´t routed, since the default routing size is 1500.</div><div><br></div><div>/Karli</div><div><br></div></div></div></div></div></div></div></div><blockquote type="cite"><div><br> <a href="http://wiki.ovirt.org/wiki/Installing_VDSM_from_rpm#Configuring_the_bridge_Interface">http://wiki.ovirt.org/wiki/Installing_VDSM_from_rpm#Configuring_the_bridge_Interface</a><br><br>Is any of that helpful?<br><br>Regards and best wishes,<br><br>Justin Clift<br><br><br><blockquote type="cite">Best regards,<br></blockquote><blockquote type="cite">Ricardo Esteves.<br></blockquote><br>--<br>Aeolus Community Manager<br><a href="http://www.aeolusproject.org">http://www.aeolusproject.org</a><br><br>_______________________________________________<br>Users mailing list<br>Users@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/users<br></div></blockquote></div><br><div>
<div><br class="Apple-interchange-newline"><br></div><div>Med Vänliga Hälsningar<br>-------------------------------------------------------------------------------<br>Karli Sjöberg<br>Swedish University of Agricultural Sciences<br>Box 7079 (Visiting Address Kronåsvägen 8)<br>S-750 07 Uppsala, Sweden<br>Phone: +46-(0)18-67 15 66</div><div><a href="mailto:karli.sjoberg@adm.slu.se">karli.sjoberg@slu.se</a></div>
</div>
<br></body></html>