Bonding & trunking

De BlaxWiki
Révision datée du 2 avril 2009 à 11:10 par Admin (discussion | contributions) (Page créée avec « Cela permet d aggréger les 2 interfaces <pre> /etc/network/interfaces: ------------------------ # The primary network interface #auto eth0 #iface eth0 inet static # ... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigationAller à la recherche

Cela permet d aggréger les 2 interfaces


/etc/network/interfaces:
------------------------

# The primary network interface
#auto eth0
#iface eth0 inet static
#       address 212.43.195.133
#       netmask 255.255.255.0
#       network 212.43.195.0
#       broadcast 212.43.195.255
#       gateway 212.43.195.1
#       # dns-* options are implemented by the resolvconf package, if installed
#       dns-nameservers 212.43.194.2 212.43.194.3
#       dns-search co.fr.clara.net

auto bond0
iface bond0 inet static
       address 212.43.220.45
       netmask 255.255.255.0
       gateway 212.43.220.1
       pre-up ifconfig eth0 up
       pre-up ifconfig eth1 up
       up ifenslave bond0 eth0 eth1
       down ifenslave -d bond0 eth0 eth1
       post-down ifconfig eth0 down
       post-down ifconfig eth1 down
       dns-nameservers 212.43.194.2 212.43.194.3
       dns-search co.fr.clara.net

/etc/modules:
-------------
bonding mode=4 miimon=100

ifconfig -a:
------------

bond0     Lien encap:Ethernet  HWaddr 00:14:85:29:BE:22           inet adr:212.43.220.45  Bcast:212.43.220.255  Masque:255.255.255.0
         UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
         RX packets:540669 errors:0 dropped:0 overruns:0 frame:0
         TX packets:278688 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 lg file transmission:0          RX bytes:794712182 (757.8 MiB)  TX bytes:20612336 (19.6 MiB)

eth0      Lien encap:Ethernet  HWaddr 00:14:85:29:BE:22           UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
         RX packets:258810 errors:0 dropped:0 overruns:0 frame:0
         TX packets:278630 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 lg file transmission:1000          RX bytes:376450410 (359.0 MiB)  TX bytes:20604912 (19.6 MiB)
         Interruption:16
eth1      Lien encap:Ethernet  HWaddr 00:14:85:29:BE:22           UP BROADCAST RUNNING NOARP SLAVE MULTICAST  MTU:1500  Metric:1
         RX packets:281859 errors:0 dropped:0 overruns:0 frame:0
         TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 lg file transmission:1000          RX bytes:418261772 (398.8 MiB)  TX bytes:7424 (7.2 KiB)
         Interruption:17