首页 > 系统服务 > 详细

Linux主机双网卡绑定

时间:2015-10-22 14:22:25      阅读:225      评论:0      收藏:0      [点我收藏+]

$ cat ifcfg-bond0 
DEVICE=bond0 
ONBOOT=yes 
BOOTPROTO=static 
IPADDR= ip地址

NETMASK=255.255.255.0 
GATEWAY= 网关地址

$ cat ifcfg-eth0 
DEVICE=eth0 
USERCTL=no 
ONBOOT=yes 
MASTER=bond0 
SLAVE=yes 
BOOTPROTO=none 

$ cat ifcfg-eth1 
DEVICE=eth1 
USERCTL=no 
ONBOOT=yes 
MASTER=bond0 
SLAVE=yes 
BOOTPROTO=none 

redhat 4版本

$ cat /etc/modprobe.conf 

redhat 6.4版本:/etc/modprobe.d/dist.conf  
alias eth0 bnx2 
alias eth1 bnx2 
alias scsi_hostadapter cciss 
alias scsi_hostadapter1 ata_piix 
alias usb-controller uhci-hcd 
alias usb-controller1 ehci-hcd 
alias bond0 bonding 
options bond0 mode=1 miimon=100 

$ cat /etc/rc.d/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 
route add -net ip地址 netmask 255.255.255.0 bond0


本文出自 “守候者” 博客,请务必保留此出处http://shouhouzhe.blog.51cto.com/2351955/1705161

Linux主机双网卡绑定

原文:http://shouhouzhe.blog.51cto.com/2351955/1705161

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!