1、Eth-Trunk(链路聚合技术 )
1, Eth-Trunk( connection polymerization technology & #xff09;
1)eth-trunk可以把多个独立的物理接口绑定在一起,作为一个大带宽的逻辑接口使用。
1xff09; Eth-trunk can bind several separate physical interfaces together xff0c; used as a logical interface with a large bandwidth.
2、Eth-Trunk优势:
2, Eth-Trunk Strength #xff1a;
1)增加设备之间的互联带宽
1 & #xff09; increase interconnectivity between devices
2)提高设备之间的可靠性
2xff09; increasing reliability between equipment
3)对流量负载均衡,提高链路利用率
3xff09; load balance on trafficxff0c; increased use of links
3、Eth-Trunk链路聚合模式
3. Eth-Trunk link polymerization mode
1)手工模式
1 & #xff09; manual mode
2)LACP模式
2xff09; LACP mode
4、手工模式:如下图
Manual mode xff1a; figure below
1)手工模式下3条活动链路都参与数据转发并分担流量
1xff09; all 3 activity links under manual mode are involved in data forwarding and distribution of traffic
2)当一条链路故障时,在剩余的2条活动链路中分担流量
2xff09; xff0c when a link malfunctions; sharing the flow among the remaining 2 active links
?5、Eth-Trunk接口配置流程
?5, Eth-Trunk interface configuration process
1)创建eth-trunk
1xff09; createeth-trunk
2)选择链路聚合模式
2)selection of chain aggregation mode
3)在eth-trunk中加入成员接口
3) add membership interface in eth-trunk
6、配置手工模式Eth-trunk
6. Configure manual mode Eth-trunk
需求
Needs
? ? 1)对交换机之间的链路进行链路捆绑,增加互联带宽
♪ 1 #xff09; links between switches ♪ #xff0c; increased bandwidth
? ? 2)确保同 VLAN的 PC 之间互通
♪ 2xff09; ensuring communication with the PC of VLAN
配置步骤
Configure Steps
? ? 1)PC配置IP地址
♪ 1xff09; PC Configure IP Address
? ? 2)所有交换机创建vlan10 和vlan20
♪ 2xff09; all switches create vlan10 and vlan20
? ? 3)交换机和PC互联的接口设置为access ,并加入指定的vlan
♪ 3) switch and PC interface set to access & #xff0c; and add the specified vlan
? ? 4)创建Eth-Trunk
♪ 4 #xff09; creating Eth-Trunk
? ? 5)配置Eth-Trunk的工作模式为手工模式
♪ 5 #xff09; configure Eth-Trunk working mode to manual mode
? ? 6)Eth-Trunk中加入成员接口
♪ 6 #xff09; Add membership interface in Eth-Trunk
?配置命令
**SW1配置:**
[SW1]vlan batch 10 20
[SW1]interface G0/0/3?
[SW1-G0/0/3]port link-type access ? ?
[SW1-G0/0/3]port default vlan 10?
?
[SW1-G0/0/3]interface G0/0/4
[SW1-G0/0/4]port link-type access ? ?
[SW1-G0/0/4]port default vlan 20 ?
[SW1-G0/0/4]quit
? Configure command
SW1 configuration & #xff1a; br/> [SW1]vlan catch 10 20
[SW1] interface G0/0/3?
[SW1-G0/3]port link-type access?
[SW1-G0/3]port default plan 10?
[SW1-G0/3] interface G0/0/4
[SW1-G0/0/4]port link-type access?
[SW1-G0/3]port default plan 20?
[SW1-G0/0/0/4] port link-type access?
[SW1-G0/0/4]port faultvlan 20?
[SW1-G0/0/4]
[SW1]interface eth-trunk 1 ? //创建并进入 eth-trunk 1
[SW1-Eth-Trunk1]mode manual load-balance ? //配置手工模式
[SW1-Eth-Trunk1]trunkport g0/0/1 ? //加入成员端口?
[SW1-Eth-Trunk1]trunkport g0/0/2 ? //加入成员端口?
[SW1-Eth-Trunk1]port link-type trunk ? ? ?//配置 eth-trunk 类型为 trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20 ? //允许所有的 vlan
[SW1] interface eth-trunk 1? / Create and enter eth-trunk 1
[SW1-Eth-Trunk1] mode manual load-ballance? / Configure manual mode
[SW1-Eth-Trunk1] trunkport g0/0/1? / / Create and enter member port
[SW1-Eth-Trunk1] trunk port
[SW1-Trunk1] trunk g0/0/2? / Join member port?
**SW2配置:**
[SW2]vlan batch 10 20
[SW2]interface G0/0/3?
[SW2-G0/0/3]port link-type access ? ?
[SW2-G0/0/3]port default vlan 10 ?
[SW2-G0/0/3]interface G0/0/4
[SW2-G0/0/4]port link-type access ? ?
[SW2-G0/0/4]port default vlan 20 ?
**SW2 Configuration & #xff1a; **
[SW2]vlan catch 10 20
[SW2] interface G0/0/3?
[SW2-G0/0/3)port link-type access?
[SW2-G0/0/3]port defaultvlan10?
[SW2-G0/0/3] interface G0/0/4
[SW2-G0/0/4]port link-type access?
[SW2-G0/0/40]port defaultvlan20?
[SW2]interface eth-trunk 1
[SW2-Eth-Trunk1]mode manual load-balance
[SW2-Eth-Trunk1]trunkport g0/0/1
[SW2-Eth-Trunk1]trunkport g0/0/2
[SW2-Eth-Trunk1]port link-type trunk ?
[SW2-Eth-Trunk1]port trunk allow-pass vlan 10 20 ?
验证与测试:
pc1 ping pc3 ?通
pc2 ping pc4 ?通
Validate and test #xff1a;
pc1 ping pc3? > pc2 ping pc4?
7、LACP模式:如下图:
7. LACP model xff1a; figure xff1a below;
1)LACP模式也称为M:N模式
1xff09; LACP mode also known as M:N mode
2)M条活动链路,N条备份链路
2xff09; M active links xff0c; N back-up links
3)当活动链路出现故障时,备份链路才进行转发
3xff09; retransmission only when the active link is malfunctioning xff0c; backup link
8、LACP模式工作原理
Rationale for the LACP model
确定主动端
Determine Active
确定活动链路
Identification of active links
LACP抢占功能
LACP takes over the function.
9、确定LACP主动端
9. Identification of the LACP Proactive
1)通过比较两端交换机的系统优先级来确定LACP主动端
1xff09; determination of the LACP active end by comparing the system priorities of the two-end switch
2)系统优先级数值越小越优先,默认值是32768
2xff09; system priority values are smaller xff0c; default value is 32768
3)如果系统优先级相同,则比较两端设备的MAC地址,越小越优先
3xff09; if the system has the same priority xff0c; compares the MAC address xff0c for both ends of the device; the smaller the priority
10、确定LACP活动链路
10. Identification of the LACP activity link
1)通过系统优先级选举出LACP主动端后,以主动端的接口优先级来选择活动接口
1xff09; LACP active & #xff0c selected through system priority; active interfaces selected with active interface priority
2)接口优先级数值越小越优先,默认值是32768
2xff09; interface priority values are smaller xff0c; default value is 32768
3)如果主动端设备的接口优先级相同,则根据接口号的大小来选举活动端口,(接口号越小越优先)
3xff09; if the interface for the active device is the same xff0c; if the interface is the same xff0c; if the interface number is the same xff0c; if the interface number is the same xff08; if the interface number is the smaller xff09;
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论