分类: 系统运维
2014-12-31 14:50:41
/etc/init.d/NetworkManager stop ; chkconfig NetworkManager off ;chkconfig --list NetworkManager
chkconfig network on ; chkconfig --list network
cd /etc/sysconfig/network-scripts/
vim ifcfg-bond0
# Broadcom Corporation NetXtreme II BCM5716 Gigabit Ethernet
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.101.0.25
NETMASK=255.255.255.0
GATEWAY=10.101.0.1
cat ifcfg-em1
DEVICE=em1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=yes
cat ifcfg-em2
DEVICE=em2
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=yes
[root@localhost modprobe.d]# tail -3 /etc/modprobe.d/dist.conf
#bonding
alias bond0 bonding
options bond0 miimon=100 mode=0