价格优化网站建设,网络营销的推广工具有哪些,莱芜市在线论坛话题,如何利用js来做网站表单LACP#xff1a;Link Aggregation Control protocol 链路聚合控制协议
将多条以太网物理链路捆绑在一起成为一条逻辑链路#xff0c;从而实现增加链路带宽的目的。同时#xff0c;这些捆绑在一起的链路通过相互间的动态备份#xff0c;可以有效地提高链路的可靠性
一、配…LACPLink Aggregation Control protocol 链路聚合控制协议
将多条以太网物理链路捆绑在一起成为一条逻辑链路从而实现增加链路带宽的目的。同时这些捆绑在一起的链路通过相互间的动态备份可以有效地提高链路的可靠性
一、配置手工trunk可直接在trunk下配
int eth-trunk 1 mode manual load-balance #默认不显示 trunkport G0/0/23 #最多8条链路 trunkport G0/0/24 load-balance src-dst-ip | src-dst-mac | src-ip |src-mac | dst-ip | dst-mac #选择负载模式 dis eth-trunk 也可以在接口下直接配 int eth-trunk 1 mode manual load-balancing #默认不显示 int G0/0/23 eth-trunk 1 int G0/0/24 eth-trunk 1 * if 在接口下直接敲时要先清空配置clear configuration int G0/0/23否则报错 eth-trunk是lag不是trunk配置了eth-trunk还需要按需配置接口类型 dis port vlan eth-trunk 1 #如上配置后显示是一个hybrid接口现在把它配置为trunk: int eth-trunk 1 port link-type trunk port trunk allow pass vlan 10 20 这时dis stp brief可看到eth-trunk1为一个逻辑接口
二、静态/动态LACP
可以通过协议选举激活端口和备份端口 端口选举 lacp master主 lacp slave从 静态 lacp (也称M:N模式, 同时实现 负载分担和冗余备份的功能, 配置如下 lacp priority x #全局下配置lacp优先级默认32768 undo int eth-trunk 1 #取消eth-trunk 1 int eth-trunk 1 mode lacp-static trunkport G0/0/22 trunkport G0/0/23 trunkport G0/0/24 max active-linknumber 2 #定义活动接口数量, 在主动方上配 lacp preempt enable #默认active端口恢复后不抢占, 这里配置为抢占默认抢占等待时间为30s lacp premmpt delay x #默认active端口down掉后恢复时间 int G0/0/22 lacp priority x #设置端口优先级越小越优
三、静态 lacp 和 动态 lacp 区别 静态一旦 LACP 协商失败eth-trunk 直接 down 掉不能转发数据 动态LACP 协商失败后eth-trunk 转为 down但成员口继承 eth-trunk 的 vlan 属性变为 Indep可独立进行二层数据转发。动态 lacp 仅用于华为设备与服务器直连场景
四、常用配置命令
lacp priority n #配置lacp优先级系统下或者接口下默认32768越小越优系统下优先级相同则mac地址越小越优 lacp select priority | speed #接口下按优先级选或者按速率选 活动接口 lacp system-id mac_addr #配置system-id默认为桥ID mac-address mac_addr #仅当需要转发三层流量时在接口下配置eth-trunk的mac地址 undo local-preference disable #使能eth-trunk接口流量本地转发优先默认已开 int eth-trunk n mode manual | load-balance #配置eth-trunk 工作模式缺省为 load-balance least active-linknumber n #配置活动接口数量默认为1 int eth-trunk X.Y #配置eth-trunk三层子接口子接口范围1~99999999 lacp alarm-control link-failure #使能lacp告警控制功能 trunk member-port-inspect #使能eth-trunk成员接口检测功能默认未开 dis load-balance forwarding-path unicast int eth-trunk 1 dis port forwarding-path dis eth-trunk X load-balance profile X #配置eth-trunk负载分担(CE交换机) eth-trunk hash-mode X #默认为1 load-balance packet | flow #S系列交换机的负载分担 dis lacp statistics eth-trunk X #查看eth-trunk报文收发统计信息 lacp priority 100 int eth-trunk 1 mode lacp-static | lacp-dynamic lacp max active-linknumber 2 trunk-port port-number G0/0/1 to G0/0/3 dis eth-trunk membership 1 dis load-balance profile dis forward eth-trunk mode
五、扩展
E-trunkEnhanced Trunk可以做跨设备链路聚合把链路可靠性从单板级升级到设备级如CE和两家ISP做双归的E-trunk