redhat双网卡绑定

  • A+
所属分类:技术

ZHU:(i)JIANYIPEIZHICHENGZHUBEIMOSHI

(ii)redhatXIAZIDONGSHENGCHENGDEBANGDINGWANGKADOUSHIbondN SUOYOUSHEBEIMINGZUIHAOCONG0KAISHI

(iii)DANGQIANsshDEWANGKAZAISHIYONGZHONG,BUNENGSHEZHIWANGKABANGDING

(iv)XUNIJIXIATIANJIAWANGKA,ZAITIANJIASHEBEIZHONGTIANJIARANHOUZHONGQIos

(vi)WANGKADUANKOUDECESHIZHIJIEZAIXUNIJIZHONGSHEZHIDUANKOULIANJIE

1.XINJIAN/etc/sysconfig/network-scripts/ifcfg-bond0WENJIAN

DEVICE=bond0

IPADDR=192.168.44.100

NETMASK=255.255.255.0

ONBOOT=yes

bedab07ee60e7fce3b95bda4e2bc70c9_GUZTGKRTGAYA

2.更改/etc/sysconfig/network-scripts/ifcfg-eth1网卡属性

DEVICE=eth1

ONBOOT=yes

MASTER=bond0

SLAVE=yes

3.GENGGAI/etc/sysconfig/network-scripts/ifcfg-eth2WANGKADESHUXING

DEVICE=eth2

ONBOOT=yes

MASTER=bond0

SLAVE=yes

4.BIANJI/etc/modprobe.confWENJIAN,JIARUYIXIANEIRONG

alias bond0 bonding

options bond0 miimon=100 mode=1

SHUOMING:

modeZHIDINGLEbond0DEGONGZUOMOSHI,CHANGYONGDESHI0HE1,0BIAOSHIFUZAIJUNHENGFANGSHI,1BIAOSHIZHUCONGFANGSHI,KEGENJUXUYAOZIXINGPEIZHI。

CHANGYONGDEWEI0,1LIANGZHONG。mode=0BIAOSHI load bamlancing (round-robin)WEIFUZAIJUNHENGFANGSHI,LIANGKUAIWANGKADOUGONGZUO。

mode=1BIAOSHIfault-tolerance (active-backup)TIGONGRONGYUGONGNENG,GONGZUOFANGSHISHIZHUBEIDEGONGZUOFANGSHI,

YEJIUSHISHUOMORENQINGKUANGXIAZHIYOUYIKUAIWANGKAGONGZUO,LINGYIKUAIZUOBEIFEN。

bondingZHINENGTIGONGLIANLUJIANCE,JICONGZHUJIDAOJIAOHUANJIDELIANLUSHIFOUJIETONG。

RUGUOZHISHIJIAOHUANJIDUIWAIDELIANLUdownDIAOLE,ERJIAOHUANJIBENSHENBINGMEIYOUGUZHANG,

NEIMEbondingHUIRENWEILIANLUMEIYOUWENTIERJIXUSHIYONG。 miimonSHIYONGLAIJINXINGLIANLUJIANCEDE。

BIRU:miimon=100,NEIMEXITONGMEI100msJIANCEYICILIANLULIANJIEZHUANGTAI,RUGUOYOUYITIAOXIANLUBUTONGJIUZHUANRULINGYITIAOXIANLU。

5.ZHONGQIWANGKAJINXINGCESHI

service network restart

YI、SHOUXIANZAIredhatXIApingTONGZIJIbond0

ER、ZAIBENDIJIQIDEVMware Virtual Ethernet Adapter for VMnet1WANGKASHANGTIANJIAXIANGTONGWANGDUANDEip

CICITIANJIA:192.168.44.1

ZHU:ZAIBENDIWANGKATIANJIATONGWANGDUANDEipBUQIZUOYONG,BENDIpcHEvmSHITONGGUOXUNIWANGKA

VMware Virtual Ethernet Adapter for VMnet1TONGXUNDE,SUOYIBIXUZAIXUNIWANGKA                             SHANGPEIZHITONGWANGDUANIP

SAN、ping 192.168.44.100 QUEDINGSHUANGWANGKABANGDINGCHENGGONG

SI、SHUOMING:cat /proc/net/bonding/bond0KECHAKANbondingZHUANGTAI

Ethernet Channel Bonding Driver: v2.6.1 (October 29, 2004)

Bonding Mode: fault-tolerance (active-backup)

Primary Slave: None

Currently Active Slave: eth0

MII Status: up

MII Polling Interval (ms): 100

Up Delay (ms): 0

Down Delay (ms): 0

Slave Interface: eth0

MII Status: up

Link Failure Count: 0

Permanent HW addr: 00:0c:29:4b:ca:06

Slave Interface: eth1

MII Status: up

Link Failure Count: 0

Permanent HW addr: 00:0c:29:4b:ca:10

WU、DUANDIAODANGQIANGONGZUODEWANGKAJINXINGCESHI

ZHANGpingDAO192.168.44.100

redhatZHIJIEZAIvmZHONGSHEZHIWANGKADELIANJIEZHUANGTAI

RUXIASUOSHI

watch cat /proc/net/bonding/bond0       KECHAKANWANGKAZIDONGQIEHUANXINXI

更多资讯请关注:漫兮网 http://stpetemountainboys.com

免责声明

发文时比特币价格:$10078

当前比特币价格: $18,410.13

当前比特币涨幅: 2.41%

免责声明:

本文不代表漫兮网立场,且不构成投资建议,请谨慎对待。用户由此造成的损失由用户自行承担,与漫兮网没有任何关系;

漫兮网不对网站所发布内容的准确性,真实性等任何方面做任何形式的承诺和保障;

网站内所有涉及到的区块链(衍生)项目,漫兮网对项目的真实性,准确性等任何方面均不做任何形式的承诺和保障;

网站内所有涉及到的区块链(衍生)项目,漫兮网不对其构成任何投资建议,用户由此造成的损失由用户自行承担,与漫兮网没有任何关系;

漫兮区块链研究院声明:漫兮区块链研究院内容由漫兮网发布,部分来源于互联网和行业分析师投稿收录,内容为漫兮区块链研究院加盟专职分析师独立观点,不代表漫兮网立场。

本文是全系列中第13 / 32篇:区块链技术

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • App下载
  • 漫兮网App下载
  • weinxin
漫兮

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: