hi all, I am running Debian linux server with 2 lan interfaces , what i need to create a domain name which can point to the 2 lan cards (IPs), if eth0 failed then eth1 will continue to work. example myname.com -> eth0 -> eth1 ( load balanced ) tnx
matty: tnx for the link, but I dont understand what Ip adress i need to put in iface bond0 inet static my interface file looks : Code: auto lo iface lo inet loopback allow-hotplug eth0 auto eth0 iface eth0 inet static address 192.168.1.138 netmask 255.255.255.0 network 192.168.1.1 broadcast 192.168.1.138 gateway 192.168.1.1 auto eth1 iface eth1 inet static address 192.168.0.138 netmask 255.255.255.0 network 192.168.0.1 broadcast 192.168.0.138 gateway 192.168.0.1 eth0 its connected to linksysrouter (ISP 1 ) eth1 its connected to linksysrouter 2 ( ISP 2) Do i need special switch or router to make this work? tnx all
The idea of bonding is to create one virtual nic out of two or more real nics. That means you only really need one IP address (but you can alias others if you want). Comment out your eth0 and eth1 entries, choose one of your IP addresses, and then use the example given while substituting your IP and other network particulars. Have a read through the different modes. They tell you about switch support. If you want a mix of performance and redundancy, mode 5 is a good choice for those of us without specialised hardware. You can plug each nic into different switches if you want.