Linux双网卡绑定(Redhat)
来源:互联网 发布:java应用服务器开发 编辑:程序博客网 时间:2024/04/30 11:04
首先检查是否支持绑定:
cat /boot/config-2.6.18-238.el5 |grep -i bonding
ethtool -i eth0
mii-tool
Step #1: Create a bond0 configuration file
Red Hat Linux stores network configuration in /etc/sysconfig/network-scripts/ directory.
First, you need to create bond0 config file:
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
Append following lines to it:DEVICE=bond0
IPADDR=192.168.1.20
NETWORK=192.168.1.0
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
Replace above IP address with your actual IP address. Save file and exit to shell prompt.
Step #2: Modify eth0 and eth1 config files:
Open both configuration using vi text editor and make sure file read as follows for eth0 interface
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Modify/append directive as follows:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Open eth1 configuration file using vi text editor:
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
Make sure file read as follows for eth1 interface:
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Save file and exit to shell prompt.
Step # 3: Load bond driver/module
Make sure bonding module is loaded when the channel-bonding interface (bond0) is brought up. You need to modify kernel modules configuration file:
# vi /etc/modprobe.conf rhel5
#vi /etc/modprobe.d/dist.conf rhel6
Append following two lines:
alias bond0 bonding
options bond0 mode=balance-alb miimon=100
Save file and exit to shell prompt. You can learn more about all bounding options in kernel source documentation file (click here to read file online).
Step # 4: Test configuration
First, load the bonding module:
# modprobe bonding
Restart networking service in order to bring up bond0 interface:
# service network restart
Verify everything is working:
# less /proc/net/bonding/bond0- Linux双网卡绑定(Redhat)
- redhat 双网卡绑定
- Redhat Linux网卡配置与绑定
- Redhat Linux网卡配置与绑定
- Redhat Linux网卡配置与绑定
- Redhat Linux网卡配置与绑定
- Redhat Linux网卡配置与绑定
- Redhat Linux网卡配置与绑定
- Redhat AS 5.4 双网卡绑定
- RedHat 6.1 网卡绑定
- Linux双网卡绑定
- Linux双网卡绑定
- linux双网卡绑定
- Linux双网卡绑定
- Linux 双网卡绑定
- Linux双网卡绑定
- Linux双网卡绑定
- Linux 双网卡绑定
- [2009国家集训队]小Z的袜子(hose)
- js字符串转日期格式
- linux防火墙禁IP命令
- 网站商务通使用总结:
- 由push_back引起的复制构造函数
- Linux双网卡绑定(Redhat)
- 火狐浏览器所有的快捷键
- flex image加载图片
- 什么是WINSXS文件夹 关于VS2005程序发布的问题
- PHOTOSHOP中处理后缀为“.rgb”的文件
- VC ado调用oracle执行存储过程获取记录集
- 跪求Visio Premium 2010的产品密钥,在线等,谢谢!
- C# C/S程序获取MAC地址三种方法
- 求PI的值