--_000_E3028A1067B0412D83F3DFD15D668622sluse_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 sh=
ould 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=3D838816
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 -> brid=
ge. Let=B4s just say that=B4s for people who are up for a challenge. But lu=
ckily, I=B4m 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=3Dbond0
NM_CONTROLLED=3Dno
USERCTL=3Dno
BOOTPROTO=3Dnone
BONDING_OPTS=3D"mode=3D4 miimon=3D100"
TYPE=3DEthernet
MTU=3D9000
EOF
Then "enslave" the physical NICs to the bond:
# cat > /etc/sysconfig/network-scripts/ifcfg-em1 << EOF
NM_CONTROLLED=3D"no"
BOOTPROTO=3D"none"
DEVICE=3D"em1"
ONBOOT=3D"yes"
USERCTL=3Dno
MASTER=3Dbond0
SLAVE=3Dyes
EOF
# cat > /etc/sysconfig/network-scripts/ifcfg-em2 << EOF
NM_CONTROLLED=3D"no"
BOOTPROTO=3D"none"
DEVICE=3D"em2"
ONBOOT=3D"yes"
USERCTL=3Dno
MASTER=3Dbond0
SLAVE=3Dyes
EOF
Then create VLAN interfaces ontop of the bond. In this example, I=B4m using=
VLAN ID 1 and 2:
# cat > /etc/sysconfig/network-scripts/ifcfg-bond0.1 << EOF
DEVICE=3Dbond0.1
VLAN=3Dyes
BOOTPROTO=3Dnone
NM_CONTROLLED=3Dno
BRIDGE=3Dbr1
MTU=3D1500
EOF
# cat > /etc/sysconfig/network-scripts/ifcfg-bond0.2 << EOF
DEVICE=3Dbond0.2
VLAN=3Dyes
BOOTPROTO=3Dnone
NM_CONTROLLED=3Dno
BRIDGE=3Dovirtmgmt
MTU=3D9000
EOF
Lastly, create the bridges ontop of the VLAN interfaces. The names, as I ha=
ve understood it, can be whatever you want, but one needs to be called "ovi=
rtmgmt" of course:
# cat > /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt << EOF
TYPE=3DBridge
NM_CONTROLLED=3D"no"
BOOTPROTO=3D"none"
DEVICE=3D"ovirtmgmt"
ONBOOT=3D"yes"
IPADDR=3DXXX.XXX.XXX.XXX
NETMASK=3D255.255.255.0
EOF
# cat > /etc/sysconfig/network-scripts/ifcfg-br0 << EOF
TYPE=3DBridge
NM_CONTROLLED=3D"no"
BOOTPROTO=3D"none"
DEVICE=3D"br0"
ONBOOT=3D"yes"
IPADDR=3DXXX.XXX.XXX.XXX
NETMASK=3D255.255.255.0
EOF
Gateway goes into:
# cat > /etc/sysconfig/network << EOF
GATEWAY=3DXXX.XXX.XXX.XXX
EOF
This way, you can have almost(4096) as many interfaces as you want with onl=
y 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. J=
umbo most only be active on interfaces that isn=B4t routed, since the defau=
lt 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(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
Med V=E4nliga H=E4lsningar
---------------------------------------------------------------------------=
----
Karli Sj=F6berg
Swedish University of Agricultural Sciences
Box 7079 (Visiting Address Kron=E5sv=E4gen 8)
S-750 07 Uppsala, Sweden
Phone: +46-(0)18-67 15 66
karli.sjoberg@slu.se<mailto:karli.sjoberg@adm.slu.se>
--_000_E3028A1067B0412D83F3DFD15D668622sluse_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html><head></head><body style=3D"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=3D"Apple-interchange-newline">=
<blockquote type=3D"cite"><div>On 13/08/2012, at 10:55 PM, Ricardo
Esteves =
wrote:<br><blockquote
type=3D"cite">Hi,<br></blockquote><blockquote type=3D=
"cite"><br></blockquote><blockquote
type=3D"cite">I the attached picture "n=
et1.jpg" i have my initial network
configuration.<br></blockquote><blockquo=
te type=3D"cite"><br></blockquote><blockquote
type=3D"cite">Physical card (=
em1) with vlan 10 (em1.10) bridged to the ovirtmgmt with IP 192.168.10.25 a=
nd default gw 192.168.10.254. <br></blockquote><blockquote
type=3D"cite"><b=
r></blockquote><blockquote type=3D"cite">Now i want to bond em1
card with p=
1p1 card (attached picture net2.jpg)<br></blockquote><blockquote
type=3D"ci=
te"><br></blockquote><blockquote type=3D"cite">But if
i fill the default gw=
it gives me this error: The default gateway should be set only on engine n=
etwork.<br></blockquote><blockquote
type=3D"cite"><br></blockquote><blockqu=
ote type=3D"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 au=
tomaticaly reboots.<br></blockquote><blockquote
type=3D"cite"><br></blockqu=
ote><blockquote type=3D"cite">Anyone had this kind of
problem?<br></blockqu=
ote><br>Two thoughts here: ;)<br><br> * The "lose connection to
the server"=
bit sort of sounds like<br> this bug:<br><br>
&nbs=
p; <a
href=3D"https://bugzilla.redhat.com/show_bug.cgi?id=3D838816"&g...
tps://bugzilla.redhat.com/show_bug.cgi?id=3D838816</a><br><...
=
Reckon that's a match?<br><br><br> * Aside from that, you might have
to man=
ually configure<br> networking for the hosts from the command
l=
ine. Using the<br> normal Linux commands I mean, not
oVir=
t 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.
&nbs=
p;Network layer breaks when<br> adding a 2nd interface, but
was=
able to work around it<br> by manually creating the bridges
fr=
om cli, after having<br> defined the logical networks in the
oV=
irt 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>lookin=
g 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=
=B4s just say that=B4s for people who are up for a challenge. But luckily, =
I=B4m one for sharing:</div><div><br></div><div>Start by
defining to load b=
onding at boot:</div><div><div># cat >
/etc/modprobe.d/bonding.conf <=
< EOF</div><div>alias bond0
bonding</div><div><br></div><div>EOF</div><d=
iv><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=3Dbond0</div><div>NM_CONTROLLED=3Dno</div><div>USERCTL=3Dno</d=
iv><div>BOOTPROTO=3Dnone</div><div>BONDING_OPTS=3D"mode=3D4
miimon=3D100"</=
div><div>TYPE=3DEthernet</div><div>MTU=3D9000</div></div><div><br></div><di=
v>EOF</div><div><br></div><div>Then "enslave"
the physical NICs to the bond=
:</div><div><div># cat > /etc/sysconfig/network-scripts/ifcfg-em1
<&l=
t;
EOF</div><div><div>NM_CONTROLLED=3D"no"</div><div>BOOTPROTO=3D"none"</di=
v><div>DEVICE=3D"em1"</div><div>ONBOOT=3D"yes"</div><div>USERCTL=3Dno</div>=
<div>MASTER=3Dbond0</div><div>SLAVE=3Dyes</div><div><br></div></div><div>EO=
F</div><div><br></div><div><div># cat >
/etc/sysconfig/network-scripts/i=
fcfg-em2 <<
EOF</div><div><div>NM_CONTROLLED=3D"no"</div><div>BOOTPRO=
TO=3D"none"</div><div>DEVICE=3D"em2"</div><div>ONBOOT=3D"yes"</div><div>USE=
RCTL=3Dno</div><div>MASTER=3Dbond0</div><div>SLAVE=3Dyes</div><div><br></di=
v></div><div>EOF</div><div><br></div><div>Then
create VLAN interfaces ontop=
of the bond. In this example, I=B4m using VLAN ID 1 and
2:</div><div><div>=
# cat
> /etc/sysconfig/network-scripts/ifcfg-bond0.1 <<
=
EOF</div><div><div><div>DEVICE=3Dbond0.1</div><div>VLAN=3Dyes</div><div>BOO=
TPROTO=3Dnone</div><div>NM_CONTROLLED=3Dno</div><div>BRIDGE=3Dbr1</div><div=
MTU=3D1500</div></div><div><br></div></div><div>EOF</div><div><br></div><d=
iv><div># cat
> /etc/sysconfig/network-scripts/ifcfg-bond0.2 <&l=
t;
EOF</div><div><div><div>DEVICE=3Dbond0.2</div><div>VLAN=3Dyes</div><div>=
BOOTPROTO=3Dnone</div><div>NM_CONTROLLED=3Dno</div><div>BRIDGE=3Dovirtmgmt<=
/div><div>MTU=3D9000</div></div><div><br></div></div><div>EOF</div><div><br=
</div><div>Lastly, create the bridges ontop of the VLAN
interfaces. The na=
mes, as I have understood it, can be whatever you want, but one
needs to be=
called "ovirtmgmt" of course:</div><div><div># cat
> /etc/sysconfi=
g/network-scripts/ifcfg-ovirtmgmt <<
EOF</div><div><div><div><div>TYP=
E=3DBridge</div><div>NM_CONTROLLED=3D"no"</div><div>BOOTPROTO=3D"none"</div=
<div>DEVICE=3D"ovirtmgmt"</div><div>ONBOOT=3D"yes"</div><div>IPADDR=3DXXX.=
XXX.XXX.XXX</div><div>NETMASK=3D255.255.255.0</div></div></div><div><br></d=
iv></div><div>EOF</div><div><br></div><div><div>#
cat > /etc/syscon=
fig/network-scripts/ifcfg-br0 <<
EOF</div><div><div><div><div>TYPE=3D=
Bridge</div><div>NM_CONTROLLED=3D"no"</div><div>BOOTPROTO=3D"none"</div><di=
v>DEVICE=3D"br0"</div><div>ONBOOT=3D"yes"</div><div>IPADDR=3DXXX.XXX.XXX.XX=
X</div><div>NETMASK=3D255.255.255.0</div></div></div><div><br></div></div><=
div>EOF</div><div><br></div><div>Gateway goes
into:</div><div><div><span cl=
ass=3D"Apple-style-span"># cat
> </span>/etc/sysconfig/network<span=
class=3D"Apple-style-span"> <<
EOF</span></div><div>GATEWAY=3DX=
XX.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 onl=
y 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. J=
umbo most only be active on interfaces that isn=B4t routed, since the defau=
lt routing size is
1500.</div><div><br></div><div>/Karli</div><div><br></di=
v></div></div></div></div></div></div></div><blockquote
type=3D"cite"><div>=
<br> <a
href=3D"http://wiki.ovirt.org/wiki/Installing_VDSM_from_rpm#C=
onfiguring_the_bridge_Interface">http://wiki.ovirt.org/wiki/Insta...
_from_rpm#Configuring_the_bridge_Interface</a><br><br>Is any of that
helpfu=
l?<br><br>Regards and best wishes,<br><br>Justin
Clift<br><br><br><blockquo=
te type=3D"cite">Best regards,<br></blockquote><blockquote
type=3D"cite">Ri=
cardo Esteves.<br></blockquote><br>--<br>Aeolus Community
Manager<br><a hre=
f=3D"http://www.aeolusproject.org">http://www.aeolusproject.org</a><br><br>=
_______________________________________________<br>Users mailing list<br>Us=
ers@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/users<br></div></b=
lockquote></div><br><div>
<div><br
class=3D"Apple-interchange-newline"><br></div><div>Med
V=E4nliga H=
=E4lsningar<br>------------------------------------------------------------=
-------------------<br>Karli Sj=F6berg<br>Swedish University of Agricultura=
l Sciences<br>Box 7079 (Visiting Address Kron=E5sv=E4gen 8)<br>S-750 07 Upp=
sala, Sweden<br>Phone: +46-(0)18-67 15 66</div><div><a
href=3D"mailto=
:karli.sjoberg@adm.slu.se">karli.sjoberg@slu.se</a></div>
</div>
<br></body></html>=
--_000_E3028A1067B0412D83F3DFD15D668622sluse_--