- 论坛徽章:
- 13
|
- > more tuning-NIC-visit-count.txt
- #Two network interface cards are bonded into a single virtual interface,and bonding device driver will alternate between interface cards when sending and receiving packets on the virtual interface.
- 1>: Install NICs on separate busses
- 2>: In /etc/modprobe.conf
- alias bond0 bonding
- options bond0 mode=6 miimon=100 use_carrier=0
- 3>: In /etc/sysconfig/network-scripts/
- ifcfg-bond0 ifcfg-eth0 ifcfg-eth1
- ----------- ---------- ----------
- DEVICE=bond0 DEVICE=eth0 DEVICE=eth1
- IPADDR-192.168.0.1 MASTER=bond0 MASTER=bond0
- NETMASK=255.255.255.0 SLAVE=yes SLAVE=yes
- GATEWAY=192.168.0.254 ONBOOT=yes ONBOOT=yes
- NOBOOT=yes BOOTPROTO=none BOOTPROTO=none
- BOOTPROTO=none
- #PS: The option mode=6 sets the load-balancing mode for the module.Mode 6 does not require special switch support. It causes the bonding driver to load-balance both transmit and receive between the slave devices.Outgoing traffic reflects the MAC address of the correct slave.
复制代码 |
|