How to implement multiple network cards Bonding under Linux

xiaoxiao2021-03-06  98

Use multiple network card virtual to become a network card with the same IP address. This technology is actually existed in Sun and Cisco, known as Trunking and EtherChannel technology, in Linux, this technology is called Bonding.  Because Bonding is already included in the kernel 2.4.x, you only need to select the Bonding Driver Support in the Network Device Option when compiling.  Then, recompile the core, restart the computer, execute the following command: ismod bondingfconfig eth0 downifconfig eth1 downifConfig bond0 ipaddressifenslave bond0 eth1    now two The NIC is already as well as a piece. This can improve the data transfer between the cluster node.  You'd better write these sentences into a script, then call /tc/rc.d/rc.local, so that it will take effect on it. Bonding is a better choice for the server. When there is no Gigabit NIC, use two three 100 mega network cards to make Bonding, which greatly enhances the bandwidth between the server to the switch. But you need to set the connection Bonding Network card on the switch. Two port mappings are the same virtual interface.

转载请注明原文地址:https://www.9cbs.com/read-104992.html

New Post(0)