分类: LINUX
2011-02-18 16:08:43
[cse@localhost network-scripts]$ more ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
#BROADCAST=192.168.10.255
IPADDR=192.168.10.10
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=192.168.10.1
[cse@localhost network-scripts]$ more ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
MASTER=bond0
SLAVE=yes
[cse@localhost network-scripts]$ more ifcfg-eth1
DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
MASTER=bond0
SLAVE=yes
[cse@localhost etc]$ more modprobe.conf
alias eth0 e1000
alias eth1 e1000
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptscsi
alias scsi_hostadapter2 mptfc
alias scsi_hostadapter3 mptspi
alias scsi_hostadapter4 mptsas
alias scsi_hostadapter5 mptscsih
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
alias bond0 bonding
options bond0 miimon=100 mode=0
[cse@localhost etc]$ more rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
ifenslave bond0 eth0 eth1