Proxmox VE 3.0、3.1 要設定網卡 bonding 設定，只能由 /etc/network/interfaces 設定。目前不提供WUI的設定方式。
Which NIC is the active, which is passiv by mode=1?
# cat /etc/proc/bonding/bond0
Which bonding mode is running?
# cat /sys/class/net/bond0/bonding/mode
Switch other NIC active, exm eth2
# ifenslave --change-active bond0 eth2
ifenslave(8) – Linux man page
ifenslave – Attach and detach slave network devices to a bonding device.
ifenslave [-acdfhuvV] [–all-interfaces] [–change-active] [–detach] [–force] [–help] [–usage] [–verbose] [–version] master slave …
ifenslave is a tool to attach and detach slave network devices to a bonding device. A bonding device will act like a normal Ethernet network device to the kernel, but will send out the packets via the slave devices using a simple round-robin scheduler. This allows for simple load-balancing, identical to “channel bonding" or “trunking" techniques used in switches.
The kernel must have support for bonding devices for ifenslave to be useful.
- Show information about all interfaces.-c, –change-active
Change active slave.
Removes slave interfaces from the bonding device.
Force actions to be taken if one of the specified interfaces appears not to belong to an Ethernet device.
Display a help message and exit.
Show usage information and exit.
Print warning and debug messages.
Show version information and exit.
If not options are given, the default action will be to enslave interfaces.
The following example shows how to setup a bonding device and enslave two real Ethernet devices to it:
# modprobe bonding # ifconfig bond0 192.168.0.1 netmask 255.255.0.0 # ifenslave bond0 eth0 eth1
ifenslave was originally written by Donald Becker <firstname.lastname@example.org>, and has since been updated by various kernel developers.
This manual page was written by Guus Sliepen <email@example.com> for the Debian GNU/Linux system.
BSD November 6, 2011 BSD
ubuntu bonding and load-balance