搜索
写经验 领红包
 > 社会

带宽不够如何解决(带宽不够会出现产生什么影响)

导语:带宽不够怎么办,链路捆绑分分钟搞定,现网项目中常用的网络技术

链路聚合(捆绑)实战【将两条链路捆绑成逻辑一条链路带宽翻倍】

1、实战目的

(1) Etherchannel 的工作原理

(2) Etherchannel 的配置

2. 实验拓扑

3. 实验步骤

思科使用EtherChannel技术,华为使用Eth-Trunk。构成EtherChannel的端口必须具有相同的特性,如双工模式、速度、Trunking的状态等。配置EtherChannel有手动配置和自动配置(PAGP或者LAGP)两种方法,自动配置就是让EtherChannel协商协议自动协商EtherChannel的建立。

(1) 手动配置EtherChannel

S1 (config) interface f0/13

S1(config-if) interface f0/14

S1(config-if) int port-channel 1

S1(config-if) speed 100

S1(config-if) interface port-channel 1

S2(config) channel-group 1 mode on

S2(config) channel-group 1 mode on

S2(config) switchport mode trunk

S2(config-if) duplex full

S1(config) port-channel load-balance dst-mac

//以上是配置EtherChannel的负载平衡方式,命令格式为“ port-channel load-balance

method ”, 负载平衡的方式有:dst-ip、dst-mac、src-dst-ip、src-dst-mac等。

(3) 查看etherchannel信息

S1 interface range f0/13 -14

S1(config-if) interface range f0/13 -14

S2(config-if) show etherchannel summary

Flags: D - down P - in port-channel

I - stand-alone s - suspended

H - Hot-standby (LACP only)

R - Layer3 S - Layer2

U - in use f - failed to allocate aggregator

u - unsuitable for bundling

w - waiting to be aggregated

d - default port

Number of channel-groups in use: 1

Number of aggregators: 1

Group Port-channel Protocol Ports

------+-------------+-----------+-----------------------------------------------

1 Po1(SU) PAgP Fa0/13(P) Fa0/14(P)

//可以看到 etherchannel 协商成功。注意应在链路的两端都进行检查,确认两端都形成以

太通道才行。

4、交换网络中常用命令参考

命令 作用

vlan database 进入到 vlan database 配置模式

vlan 2 name VLAN2 创建 vlan 2

switch access vlan 2 把端口划分到 VLAN 2 中

interface range f0/2 - 3 批量配置接口的属性

show vlan 查看 VLAN 的信息

switchport trunk encanpsulation 配置 trunk 链路的封装类型

switch mode trunk 把接口配置为 trunk

show interface f0/13 trunk查看交换机端口的 trunk 状态

switchport nonegotiate Trunk 链路上不发送 trunk 协商包

vtp mode server 配置交换机为 VTP server

vtp domain VTP-TEST 配置 VTP 域名

vtp password cisco 配置 VTP 的密码

vtp mode client 配置交换机为 VTP client

vtp transparent 配置交换机为 VTP transparent

show vtp status 显示 vtp 的状态

vtp pruning 启用 VTP 修剪

vtp version 2 VTP 版本为 2

interface port-channel 1 创建以太通道

channel-group 1 mode on 把接口加入到以太网通道中,并指明以太通道模式

port-channel load-balance dst-mac 配置 etherChannel 的负载平衡方式

show etherchannel summary 查看 etherchannel 的简要信息

以下是华为数通路由交换方向完整技术分享,欢迎对华为网络技术感兴趣的小伙伴们订阅。

【可在专栏中进行查看订阅】

华为新版HCIA数通路由交换

华为新版HCIP数通路由交换

华为新版HCIE数通路由交换

本文内容由小思整理编辑!