Network Link Redundancy
Folow these steps to create a Link redundancy in a server with two ethernet cards in Debian 4.0Etch.
- 1. apt-get install ifenslave (ifenslave-2.6)
- 2. Create a file called aliases-bond in /etc/modprobe.d/ with the next content:
|alias bond0 bonding|
|options bond0 mode=1 arp_internal=2000 arp_ip_target=”the gateway”|
- 3. load bonding with this command -> modprobe bonding
- 4. add “bonding” to /etc/modules
- 5. Edit /etc/network/interfaces
|auto bond0|
|iface bond0 inet static|
|pre-up modprobe bond0|
|hwaddress ether “the mac address of one of the ethernet card”|
|address “ip address”|
|netmask “subnet mask”|
|gateway “gateway”|
|dns-nameservers X.X.X.X X.X.X.X|
|up ifenslave bond0 eth0 eth1|
|down ifenslave -d bond0 eth0 eth1|
It Works!!
Categories: Linux, Networking
Debian, Linux, Networking
nice documentation, dude!
keep the good works…
Interesting text!, man