[Users] oVIrt 3.1 - Network Bonding

Karli Sjöberg Karli.Sjoberg at slu.se
Tue Aug 14 05:59:49 UTC 2012


13 aug 2012 kl. 23.56 skrev Justin Clift:

On 13/08/2012, at 10:55 PM, Ricardo Esteves wrote:
Hi,

I the attached picture "net1.jpg" i have my initial network configuration.

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.

Now i want to bond em1 card with p1p1 card (attached picture net2.jpg)

But if i fill the default gw it gives me this error: The default gateway should be set only on engine network.

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.

Anyone had this kind of problem?

Two thoughts here: ;)

* The "lose connection to the server" bit sort of sounds like
  this bug:

    https://bugzilla.redhat.com/show_bug.cgi?id=838816

  Reckon that's a match?


* Aside from that, you might have to manually configure
  networking for the hosts from the command line.  Using the
  normal Linux commands I mean, not oVirt specific ones.

    i.e. creating the bridging and everything manually.

  This is the approach I had to take last week when trying
  out Aeolus with oVirt 3.1.  Network layer breaks when
  adding a 2nd interface, but was able to work around it
  by manually creating the bridges from cli, after having
  defined the logical networks in the oVirt Web UI.

The "configure things manually" approach isn't all that
documented either.  I kind of stumbled my way through, by
looking at the examples here:

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:

Start by defining to load bonding at boot:
# cat > /etc/modprobe.d/bonding.conf << EOF
alias bond0 bonding

EOF

Then define the bond. This is LACP mode:
# cat > /etc/sysconfig/network-scripts/ifcfg-bond0 << EOF
DEVICE=bond0
NM_CONTROLLED=no
USERCTL=no
BOOTPROTO=none
BONDING_OPTS="mode=4 miimon=100"
TYPE=Ethernet
MTU=9000

EOF

Then "enslave" the physical NICs to the bond:
# cat > /etc/sysconfig/network-scripts/ifcfg-em1 << EOF
NM_CONTROLLED="no"
BOOTPROTO="none"
DEVICE="em1"
ONBOOT="yes"
USERCTL=no
MASTER=bond0
SLAVE=yes

EOF

# cat > /etc/sysconfig/network-scripts/ifcfg-em2 << EOF
NM_CONTROLLED="no"
BOOTPROTO="none"
DEVICE="em2"
ONBOOT="yes"
USERCTL=no
MASTER=bond0
SLAVE=yes

EOF

Then create VLAN interfaces ontop of the bond. In this example, I´m using VLAN ID 1 and 2:
# cat > /etc/sysconfig/network-scripts/ifcfg-bond0.1 << EOF
DEVICE=bond0.1
VLAN=yes
BOOTPROTO=none
NM_CONTROLLED=no
BRIDGE=br1
MTU=1500

EOF

# cat > /etc/sysconfig/network-scripts/ifcfg-bond0.2 << EOF
DEVICE=bond0.2
VLAN=yes
BOOTPROTO=none
NM_CONTROLLED=no
BRIDGE=ovirtmgmt
MTU=9000

EOF

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:
# cat > /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt << EOF
TYPE=Bridge
NM_CONTROLLED="no"
BOOTPROTO="none"
DEVICE="ovirtmgmt"
ONBOOT="yes"
IPADDR=XXX.XXX.XXX.XXX
NETMASK=255.255.255.0

EOF

# cat > /etc/sysconfig/network-scripts/ifcfg-br0 << EOF
TYPE=Bridge
NM_CONTROLLED="no"
BOOTPROTO="none"
DEVICE="br0"
ONBOOT="yes"
IPADDR=XXX.XXX.XXX.XXX
NETMASK=255.255.255.0

EOF

Gateway goes into:
# cat > /etc/sysconfig/network << EOF
GATEWAY=XXX.XXX.XXX.XXX

EOF

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.

/Karli


 http://wiki.ovirt.org/wiki/Installing_VDSM_from_rpm#Configuring_the_bridge_Interface

Is any of that helpful?

Regards and best wishes,

Justin Clift


Best regards,
Ricardo Esteves.

--
Aeolus Community Manager
http://www.aeolusproject.org

_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



Med Vänliga Hälsningar
-------------------------------------------------------------------------------
Karli Sjöberg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjoberg at slu.se<mailto:karli.sjoberg at adm.slu.se>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20120814/9ba427a0/attachment-0001.html>


More information about the Users mailing list