Chinaunix首页 | 论坛 | 博客
  • 博客访问: 67396
  • 博文数量: 11
  • 博客积分: 208
  • 博客等级: 二等列兵
  • 技术积分: 110
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-28 11:14
文章分类

全部博文(11)

文章存档

2013年(1)

2011年(10)

我的朋友

分类: 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

阅读(1443) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~