去哪个网站可以做写手,手机如何制作网页,flash网站设计概述,广州网站设计公司新闻链路聚合详解 华为交换机链路聚合#xff1a;Linux链路聚合bond配置 华为交换机链路聚合#xff1a;
方式一#xff1a;配置手工负载分担方式的链路聚合
[CORE1] interface Eth-Trunk 1
[CORE1-Eth-Trunk1] trunkport GigabitEthernet 0/0/5 to 0/0/6
[CORE1-Eth-Trunk1] p… 链路聚合详解 华为交换机链路聚合Linux链路聚合bond配置 华为交换机链路聚合
方式一配置手工负载分担方式的链路聚合
[CORE1] interface Eth-Trunk 1
[CORE1-Eth-Trunk1] trunkport GigabitEthernet 0/0/5 to 0/0/6
[CORE1-Eth-Trunk1] port link-type access
[CORE1-Eth-Trunk1] port default vlan 300
[CORE1-Eth-Trunk1] quit
方式二配置LACP模式的链路聚合
[CORE1] interface Eth-Trunk 1
[CORE1-Eth-Trunk1] mode lacp
[CORE1-Eth-Trunk1] trunkport GigabitEthernet 0/0/5 to 0/0/6
[CORE1-Eth-Trunk1] port link-type access
[CORE1-Eth-Trunk1] port default vlan 300
[CORE1-Eth-Trunk1] quit
# 在CORE1上配置系统优先级为100使其成为LACP主动端[CORE1] lacp priority 100
# 在CORE1上配置活动接口上限阈值为2[CORE1] interface Eth-Trunk 1
[CORE1-Eth-Trunk1] max active-linknumber 2
[CORE1-Eth-Trunk1] quit
# 在CORE1上配置接口优先级确定活动链路配置GE0/0/5和GE0/0/6为活动链路[CORE1] interface GigabitEthernet 0/0/5
[CORE1-GigabitEthernet0/0/5] lacp priority 100
[CORE1-GigabitEthernet0/0/5] quit
[CORE1] interface GigabitEthernet 0/0/6
[CORE1-GigabitEthernet0/0/6] lacp priority 100
[CORE1-GigabitEthernet0/0/6] quitLinux链路聚合bond 1、mode0(balance-rr)(平衡抡循环策略)2、mode1(active-backup)(主-备份策略)3、mode2(balance-xor)(平衡策略,根据hash策略平衡)4、mode3(broadcast)(广播策略高可靠较浪费资源)5、mode4(802.3ad)(IEEE 802.3ad 动态链接聚合)6、mode5(balance-tlb)(适配器传输负载均衡)7、mode6(balance-alb)(适配器适应性负载均衡)配置
cat /etc/sysconfig/network-scripts/ifcfg-p2p1
TYPEEthernet
PROXY_METHODnone
BROWSER_ONLYno
BOOTPROTOnone
DEFROUTEyes
NAMEp2p1
DEVICEp2p1
ONBOOTyes
MASTERbond0
SLAVEyes[rootdev2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-p2p2
TYPEEthernet
PROXY_METHODnone
BROWSER_ONLYno
BOOTPROTOnone
DEFROUTEyes
NAMEp2p2
DEVICEp2p2
ONBOOTyes
MASTERbond0
SLAVEyescat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICEbond0
NAMEbond0
TYPEBond
BONDING_MASTERyes
IPADDR192.168.1.2
PREFIX24
GATEWAY192.168.1.254
ONBOOTyes
DNS18.8.8.8
BOOTPROTOnone
BONDING_OPTSmode4 miimon100开机自动加载模块到内核
#echo alias bond0 bonding /etc/modprobe.d/dist.conf
#echo options bonding mode0 miimon200 /etc/modprobe.d/dist.conf
#echo ifenslave bond0 eth0 eth1 /etc/rc.local
miimon100##查看bond0状态
cat /proc/net/bonding/bond0