[LARTC] Load Balance RX/TX data on the same NICs.

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1B027.1E60D480
Content-Type: text/plain;
	charset="iso-8859-1"

Hello,
I have a Compaq Proliant i850R, running RedHat 7.1.
There are 3 NICs attached to it, 2 eepro100, and 1
ThunderLAN driver v1.14a.
This box is being prepped to be a download server.

GOAL:
Requests are sent to each NIC via seperate IP addresses.
All 3 are on the same subnet.
All requests are load balanced via a DNS server.
We want all requests to exit the same NIC that they
entered.

PROBLEM:
All requests are satisfied via the last NIC (eth2).
eth2 does 99% of the transmissions.

With the configuration below it is possible to do load-balancing,
both in and out, but it is not possible to secure shell to the
box.  If the "ip rule" lines are commented out, login is possible,
but no outbound load balancing.

OUR CONFIGURATION:
ip route add 206.17.228.231 dev eth1
ip route add 206.17.228.232 dev eth2
ip route add 206.17.228.230 dev eth0
/sbin/route del default 2> /dev/null
/sbin/ip route add default equalize nexthop via 206.17.228.2 dev eth1
nexthop via 206.17.228.2 dev eth2 

ip route add 206.17.228.231 dev eth1 table 231
ip route add default via 206.17.228.2 dev eth1 src 206.17.228.231 table 231
ip route flush cache
ip route add 206.17.228.232 dev eth2 table 232
ip route add default via 206.17.228.2 dev eth1 src 206.17.228.232 table 232
ip route flush cache
ip route add 206.17.228.230 dev eth0 table 230
ip route add default via 206.17.228.2 dev eth1 src 206.17.228.230 table 230
ip route flush cache

ip rule add from 206.17.228.231 table 231
ip rule add from 206.17.228.232 table 232
ip rule add from 206.17.228.230 table 230


WHAT AM I DOING WRONG?

Robert Richardson

------_=_NextPart_001_01C1B027.1E60D480
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>Load Balance RX/TX data on the same NICs.</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">I have a Compaq Proliant i850R, =
running RedHat 7.1.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">There are 3 NICs attached to it, 2 =
eepro100, and 1</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ThunderLAN driver v1.14a.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">This box is being prepped to be a =
download server.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">GOAL:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Requests are sent to each NIC via =
seperate IP addresses.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">All 3 are on the same subnet.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">All requests are load balanced via a =
DNS server.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">We want all requests to exit the same =
NIC that they</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">entered.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">PROBLEM:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">All requests are satisfied via the =
last NIC (eth2).</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">eth2 does 99% of the =
transmissions.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">With the configuration below it is =
possible to do load-balancing,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">both in and out, but it is not =
possible to secure shell to the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">box.&nbsp; If the &quot;ip rule&quot; =
lines are commented out, login is possible,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">but no outbound load =
balancing.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">OUR CONFIGURATION:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route add 206.17.228.231 dev =
eth1</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route add 206.17.228.232 dev =
eth2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route add 206.17.228.230 dev =
eth0</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">/sbin/route del default 2&gt; =
/dev/null</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">/sbin/ip route add default equalize =
nexthop via 206.17.228.2 dev eth1 nexthop via 206.17.228.2 dev eth2 =
</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">ip route add 206.17.228.231 dev eth1 =
table 231</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route add default via 206.17.228.2 =
dev eth1 src 206.17.228.231 table 231</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route flush cache</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route add 206.17.228.232 dev eth2 =
table 232</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route add default via 206.17.228.2 =
dev eth1 src 206.17.228.232 table 232</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route flush cache</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route add 206.17.228.230 dev eth0 =
table 230</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route add default via 206.17.228.2 =
dev eth1 src 206.17.228.230 table 230</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip route flush cache</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">ip rule add from 206.17.228.231 table =
231</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip rule add from 206.17.228.232 table =
232</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">ip rule add from 206.17.228.230 table =
230</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">WHAT AM I DOING WRONG?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Robert Richardson</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1B027.1E60D480--


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux