Linux的双网卡绑定(即bond0)
来源:互联网 发布:mysql高并发访问 编辑:程序博客网 时间:2024/05/29 16:05
http://www.linuxidc.com/Linux/2012-05/59738.htm
bond网卡的制作
一:在机其上安装两块网卡,并修改相应的网络配置文件
vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
MASTER=bond0
vim /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
MASTER=bond0
vim /etc/sysconfig/network-scripts/ ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=IP地址
NETMASK=子网掩码
Modprobe bonding
二。vim /etc/modprobe.conf 加载相关的网卡驱动
开机脚本
三:vim /etc/rc.d/rc.local 增加一行
四:查看状态 cat /proc/net/bonding/bond0并进行测试
使用桥接模式
Ping bond0的ip地址
当中在虚拟机中eth0断开模拟网卡损坏是的情景,可以看到网卡的替换过程,过程十分的短暂
C:\Documents and Settings\Administrator>ping -t 192.168.10.111
Pinging 192.168.10.111 with 32 bytes of data:
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Request timed out.
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
Reply from 192.168.10.111: bytes=32 time<1ms TTL=64
- Linux的双网卡绑定(即bond0)
- Linux下的双网卡绑定bond0 em1 em2
- Linux下的双网卡绑定bond0 em1 em2
- 双网卡绑定-bond0
- 双网卡绑定bond0
- Linux下双网卡绑定bond0
- 虚拟机下面实现双网卡绑定<bond0>
- 虚拟机下面实现双网卡绑定<bond0>
- 中标麒麟6.0双网卡绑定bond0
- CentOS6.5 双网卡绑定bond0
- Round-Robin负载均衡算法及其实现原理& Linux下双网卡绑定bond0
- heartbeat 双网卡bond0的配置
- linux bond0 简易绑定篇
- linux的双网卡绑定
- centos 7 网卡绑定 bond0 开机无法自启
- Linux双网卡绑定
- Linux双网卡绑定
- linux双网卡绑定
- vc采集网页内所有元素(不指定具体table/form/frame)
- 怎样获取网页选择框的所选item的文本信息
- 正则表达式获取网页链接
- HTTP协议上传文件到web
- 如何用SVN从github上检出代码的不同版本
- Linux的双网卡绑定(即bond0)
- 又一次总结数据库
- 系统常见快捷键
- CentOS中的中文乱码问题的解决
- 生产力工具(git&skydrive)
- Linux内核设计与实现——7 中断与中断处理(8)——中断控制
- 为什么找不到服务器(Vault)
- git命令
- 回信:对要考研学生的几点交待