使用ifenslave快速创建网卡的bonding

To create a bond device, simply follow these three steps :
- ensure that the required drivers are properly loaded :
# modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>
- assign an IP address to the bond device :
# ifconfig bond0 <addr> netmask <mask> broadcast <bcast>
- attach all the interfaces you need to the bond device :
# ifenslave [{-f|--force}] bond0 eth0 [eth1 [eth2]...]
If bond0 didn't have a MAC address, it will take eth0's. Then, all
interfaces attached AFTER this assignment will get the same MAC addr.
(except for ALB/TLB modes)
To set the bond device down and automatically release all the slaves :
# ifconfig bond0 down
To detach a dead interface without setting the bond device down :
# ifenslave {-d|--detach} bond0 eth0 [eth1 [eth2]...]
To change active slave :
# ifenslave {-c|--change-active} bond0 eth0
To show master interface info
# ifenslave bond0
To show all interfaces info
# ifenslave {-a|--all-interfaces}
To be more verbose
# ifenslave {-v|--verbose} ...
# ifenslave {-u|--usage} Show usage
# ifenslave {-V|--version} Show version
# ifenslave {-h|--help} This message
- jarson's blog
- Login or register to post comments

最新回应
27 weeks 4 days 之前
39 weeks 5 days 之前
39 weeks 5 days 之前
47 weeks 22 hours 之前
49 weeks 9 hours 之前
52 weeks 10 hours 之前
1 year 1 week 之前
1 year 2 weeks 之前
1 year 2 weeks 之前
1 year 14 weeks 之前