路由与交换——配置手工模式链路聚合

配置手工模式链路聚合

链路聚合

指将多个物理端口汇聚在一起,形成一个逻辑端口,以实现出/入流量吞吐量在各成员端口的负荷分担,交换机根据用户配置的端口负荷分担策略决定网络封包从哪个成员端口发送到对端的交换机。

实验环境:华为ENSP
实验拓扑:

具体实验内容

①在LSW1和LSW2上分别创建Eth-Trunk接口,并加入成员接口E0/0/10、E0/0/20,以增加链路带宽;
②在LSW1和LSW2上分别创建VLAN10、VLAN20,并将接口E0/0/1加入VLAN10、接口E0/0/2加入VLAN20;
③在LSW1和LSW2上均配置负载分担为源MAC地址与目的地址方式,实现流量在Eth-Trunk各成员接口间的负载分担,增加可靠性。

配置
LSW1
<Huawei>sys
[Huawei]sysn LSW 1
[LSW 1]vlan batch 10 20
[LSW 1]int e0/0/1
[LSW 1-Ethernet0/0/1]port link-type access 
[LSW 1-Ethernet0/0/1]port default vlan 10
[LSW 1-Ethernet0/0/1]stp edged-port enable 
[LSW 1-Ethernet0/0/1]stp bpdu-filter enable 
[LSW 1-Ethernet0/0/1]q
[LSW 1]int e0/0/2
[LSW 1-Ethernet0/0/2]port link-type access
[LSW 1-Ethernet0/0/2]port default vlan 20
[LSW 1-Ethernet0/0/2]stp edged-port enable
[LSW 1-Ethernet0/0/2]stp bpdu-filter enable
[LSW 1-Ethernet0/0/2]q
[LSW 1]int	
[LSW 1]interface eth-trunk 1	//创建Eth-trunk接口
[LSW 1-Eth-Trunk1]trunkport e0/0/10		//将E0/0/10加入Eth-trunk接口
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW 1-Eth-Trunk1]trunkport e0/0/20		//将E0/0/20加入Eth-trunk接口
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW 1-Eth-Trunk1]port link-type trunk
[LSW 1-Eth-Trunk1]port trunk allow-pass vlan 10 20
[LSW 1-Eth-Trunk1]load-balance src-dst-mac 	//配置负载分担为源MAC地址与目的地址方式
[LSW 1-Eth-Trunk1]q

查看配置结果
在这里插入图片描述

LSW2
LSW2的配置与LSW1 的配置基本一致

查看配置结果
在这里插入图片描述
到这里,手工模式的链路聚合配置就基本完成了,实现了e0/0/10与e0/0/20的链路聚合。

根据你的描述,我将为你提供在每个设备中配置 OSPF 的命令。请按照以下顺序配置 OSPF: 1. 在 R1 上配置 OSPF: ``` R1(config)# router ospf 1 R1(config-router)# network 3.3.3.3 0.0.0.0 area 0 R1(config-router)# network 192.168.1.0 0.0.0.255 area 1 ``` 2. 在 R2 上配置 OSPF: ``` R2(config)# router ospf 1 R2(config-router)# network 4.4.4.4 0.0.0.0 area 0 R2(config-router)# network 192.168.2.0 0.0.0.255 area 1 ``` 3. 在 R3 上配置 OSPF: ``` R3(config)# router ospf 1 R3(config-router)# network 5.5.5.5 0.0.0.0 area 0 R3(config-router)# network 77.1.1.0 0.0.0.255 area 2 ``` 4. 在 LSW3 上配置 OSPF: ``` LSW3(config)# router ospf 1 LSW3(config-router)# network 2.2.2.2 0.0.0.0 area 0 LSW3(config-router)# network 1.1.1.1 0.0.0.0 area 1 ``` 5. 在 LSW6 上配置 OSPF: ``` LSW6(config)# router ospf 1 LSW6(config-router)# network 1.1.1.1 0.0.0.0 area 1 ``` 6. 在 LSW7 上配置 OSPF: ``` LSW7(config)# router ospf 1 LSW7(config-router)# network 77.1.1.1 0.0.0.0 area 2 ``` 请注意,PC1、PC2、PC3、PC4、PC5、PC6 不需要配置 OSPF,因为它们是终端设备,只需要配置正确的 IP 地址即可。 此外,还需要在 LSW1LSW2配置相应的接口和 VLAN,以实现 PC1、PC2 和 PC3、PC4 的访问。 在 LSW1配置 PC1 和 PC2 所在的 VLAN 及其接口: ``` LSW1(config)# vlan 10 LSW1(config-vlan)# name VLAN10 LSW1(config)# interface Ethernet 0/1 LSW1(config-if)# switchport mode access LSW1(config-if)# switchport access vlan 10 ``` 在 LSW2配置 PC3 和 PC4 所在的 VLAN 及其接口: ``` LSW2(config)# vlan 20 LSW2(config-vlan)# name VLAN20 LSW2(config)# interface Ethernet 0/1 LSW2(config-if)# switchport mode access LSW2(config-if)# switchport access vlan 20 ``` 此外,还需要在 LSW3 和 LSW6 上进行链路聚合配置。 希望这些指导可以帮助你实现 PC1、PC2、PC3、PC4、PC5、PC6 之间的互通。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值