PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : 2 Netzwerkkarten = 1 IP



12.12.00, 01:21
Hallo
Also ich habe 2 Netzwerkkarten im Rechner eth0 und eth1. Also da 1 100 Mbitkarte grade mal magere 6 MB die sekunde macht und der Rechner oefters auf Lanpartys als Datenserver fungiert, will ich die Durchsatzrate so verdoppeln. Leider abe ich keinen 1000er uebrig fuer einen 1 GBIT Karte http://www.linuxforen.de/ubb/smile.gif Also die gleiche IP Adresse kann ich beiden Karten geben. Is das der richtige Weg ? Mir hat wer gesagt, wenn der Switch Porttrunking unterstützt klappt das... oder gibts ein Proggi mit dem ich die irgendwie "koppeln" kann ?

12.12.00, 14:29
hmpf ... ich wußte es ..
es gibt die möglichkeit, mit bonding, ein kleines prog von ... becker glaube ich, der arbeitet mal bei der nasa, oder so ...
doof is nur, ich weiß es net mehr, wo es ist.

sorry :-(

cu/2 iae

12.12.00, 14:37
´ham wa wieder nich richtig gelesen? ach ich trottel. vergiß was ich schrieb.

ich gebe dir mal ein pfad:
/usr/src/linux/Documentation/networking/bonding.txt
wenn du den durchgelesen hast, dürften deine fragen beantwortet sein, oder *g*

cu/2 iae

ps: bei intelchipsätzen geh besser auf die intelseite, da gibbet eine patch, der is da denn schon wichtig, weil sonst läufts nich

12.12.00, 23:11
Die Datei gibbet leider net http://www.linuxforen.de/ubb/frown.gif

modernart
12.12.00, 23:14
Hallo,

bei mir schon!



diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/Documentation/networking/bonding.txt linux/Documentation/networking/bonding.txt
--- v2.2.14/Documentation/networking/bonding.txt Thu Jan 1 01:00:00 1970
+++ linux/Documentation/networking/bonding.txt Fri Apr 21 12:45:49 2000
@@ -0,0 +1,128 @@
+Installation:
+
+Apply patch. (if your reading this in
+/usr/src/linux/Documentation/networking/bonding.txt, then it's already
+applied.)
+
+Run make menuconfig/xconfig/config, and select 'bonding device' in
+network devices.
+
+Build the new kernel/modules.
+
+Get update ifenslave.c (included in tar file.) (location to be determined.)
+
+install ifenslave.c; do:
+ gcc -O2 -o ifenslave ifenslave.c
+ cp ifenslave /sbin/ifenslave
+
+Modify /etc/conf.modules by adding the line:
+ alias bond0 bonding
+
+If you running a RH5.0 or newer distribution, do:
+
+cd /etc/sysconfig/network-scripts
+cp ifcfg-eth0 ifcfg-bond0
+edit ifcfg-bond0, and make it look the following:
+
+DEVICE=bond0
+USERCTL=no
+ONBOOT=yes
+BOOTPROTO=none
+BROADCAST=XXX.XXX.XXX.255
+NETWORK=XXX.XXX.XXX.0
+NETMASK=255.255.255.0
+IPADDR=XXX.XXX.XXX.XXX
+
+(put the approiate values for you network in where the XXX's are at.)
+
+Then, edit ifcfg-eth0/ifcfg-eth1 (and all the other slave devices), and make them
+look like this:
+
+DEVICE=eth0
+USERCTL=no
+ONBOOT=yes
+MASTER=bond0
+SLAVE=yes
+BOOTPROTO=none
+
+Reboot, and the network should come up bonded together.
+
+For other distributions, you need to do something like:
+
+/sbin/ifconfig bond0 addresss netmask xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx up
+/sbin/ifenslave bond0 eth0
+/sbin/ifenslave bond0 eth1
+
+When properly configured, it will look this:
+
+[root]# /sbin/ifconfig
+bond0 Link encap:Ethernet HWaddr 00:C0:F0:1F:37:B4
+ inet addr:XXX.XXX.XXX.YYY Bcast:XXX.XXX.XXX.255 Mask:255.255.252.0
+ UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
+ RX packets:7224794 errors:0 dropped:0 overruns:0 frame:0
+ TX packets:3286647 errors:1 dropped:0 overruns:1 carrier:0
+ collisions:0 txqueuelen:0
+
+eth0 Link encap:Ethernet HWaddr 00:C0:F0:1F:37:B4
+ inet addr:XXX.XXX.XXX.YYY Bcast:XXX.XXX.XXX.255 Mask:255.255.252.0
+ UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
+ RX packets:3573025 errors:0 dropped:0 overruns:0 frame:0
+ TX packets:1643167 errors:1 dropped:0 overruns:1 carrier:0
+ collisions:0 txqueuelen:100
+ Interrupt:10 Base address:0x1080
+
+eth1 Link encap:Ethernet HWaddr 00:C0:F0:1F:37:B4
+ inet addr:XXX.XXX.XXX.YYY Bcast:XXX.XXX.XXX.255 Mask:255.255.252.0
+ UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
+ RX packets:3651769 errors:0 dropped:0 overruns:0 frame:0
+ TX packets:1643480 errors:0 dropped:0 overruns:0 carrier:0
+ collisions:0 txqueuelen:100
+ Interrupt:9 Base address:0x1400
+
+Questions:
+
+1. Is it SMP safe?
+
+ Yes. The old 2.0.xx channel bonding patch wasn't SMP safe.
+This one was designed from the start to be SMP safe.
+
+2. What type of cards can it work with it?
+
+ Any Ethernet type cards (ie, you can even mix cards - a tulip
+and a 3com 3c905, for example). You can even bond together Gigabit
+Ethernet cards!
+
+3. How many bond devices can I have?
+
+ Just one at this time.
+
+4. How many slaves can a bond device have?
+
+ Limited by the number of cards you can place in your system.
+
+5. What happens when a slave dies?
+
+ Currently, the ethernet drivers don't really handle this
+situation very well. The tulip driver never stalls; it just starts to
+throw packets away!
+
+6. If this was fixed, can bonding be used for High Availability?
+
+ Yes!
+
+7. Which switches/systems does it work with?
+
+ Cisco 5500 series (look for EtherChannel support).
+ SunTrunking software.
+
+8. Where does the bond0 device get it's mac address from?
+
+ It's taken from the first slave device. If you remove that
+first slave device, the MAC address continues to be associated with
+it. If you wish to remove that MAC address, you have to ifconfig
+bond0 down, and then modprobe -r bonding. If you wish, you can also
+assign a MAC address when you ifconfig the bond0 device.
+
+9. Which transmit policy is used?
+
+ Round robin, based on order of enslaving.
\ No newline at end of file



Gruß

13.12.00, 02:44
DAnke fürs posten, aber es ist alles vviiieeelllllll einfacher http://www.linuxforen.de/ubb/smile.gif

einfach 2 Karte reinbauen und folgendes in modules.conf eintragen oder ändern (für meien config folgendes http://www.linuxforen.de/ubb/smile.gif
alias eth0 rtl8139
alias eth1 3c515
options rtl8139,3c515 io=0xe400,0x2a0 irq=10,3

die letzte optionszeile ist wichtig.
dann einfach noch per yast oder ifconfig den devices eth0 und eth1 die gleiche ip geben, fertig http://www.linuxforen.de/ubb/smile.gif

13.12.00, 09:59
*räusper* im endeffekt sagt dat bonding aus *g*

cu/2 iae