- Estréllate y Arde - http://www.estrellateyarde.org -
Unión de interfaces de red (channel bonding) en Linux
El channel bonding o unión de interfaces de red consiste en simular un dispositivo de red con gran ancho de banda uniendo varias tarjetas de red independientes, de manera que las aplicaciones sólo verán un interfaz de red. Con el channel bonding conseguimos varias cosas:
En Linux se encarga del channel bonding el módulo Linux Channel Bonding. Veamos cómo activarlo en un equipo con dos interfaces de red (eth0 y eth1):
# apt-get install ifenslave# modprobe bonding miimon=100auto bond0
iface bond0 inet static
address 192.168.0.100
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
slaves eth0 eth1Para que al arrancar sólo se active bond0 eliminaremos las líneas auto eth0 y auto eth1.
# ifup bond0Si las interfaces reales están up las echaremos abajo:
# ifdown eth0 # ifdown eth1
# ifconfig bond0 Link encap:Ethernet HWaddr 00:11:22:33:44:55 inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:1357 errors:0 dropped:0 overruns:0 frame:0 TX packets:793 errors:14 dropped:0 overruns:0 carrier:14 collisions:0 txqueuelen:0 RX bytes:144979 (141.5 KiB) TX bytes:148606 (145.1 KiB) eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55 inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:462 errors:0 dropped:0 overruns:0 frame:0 TX packets:303 errors:14 dropped:0 overruns:0 carrier:14 collisions:0 txqueuelen:1000 RX bytes:51388 (50.1 KiB) TX bytes:51796 (50.5 KiB) Interrupt:17 Base address:0x1800 eth1 Link encap:Ethernet HWaddr 00:11:22:33:44:55 inet6 addr: fe80::211:22ff:fe33:4455/64 Scope:Link UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:895 errors:0 dropped:0 overruns:0 frame:0 TX packets:490 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:93591 (91.3 KiB) TX bytes:96810 (94.5 KiB) Interrupt:16 Base address:0x8400
Article printed from Estréllate y Arde: http://www.estrellateyarde.org
URL to article: http://www.estrellateyarde.org/so/channel-bonding-en-linux
Click here to print.
Copyright © 2010 Estrellate y Arde