导航:首页 > 程序命令 > 链路聚合配置命令

链路聚合配置命令

发布时间:2024-10-28 00:40:52

1. CISCO 链路聚合的怎么回事求原理 求配置命令

链路聚合是将两个或更多数据信道结合成一个单个的信道,该信道以一个单个的更高带宽的逻辑链路出现。链路聚合一般用来连接一个或多个带宽需求大的设备,例如连接骨干网络的服务器或服务器群
一、 实验要求
设备 IP Mask 端口
交换机 A 192.168.1.11 255.255.255.0 0/0/1-2 trunking
交换机 B 192.168.1.12 255.255.255.0 0/0/3-4 trunking
PC1 192.168.1.101 255.255.255.0 交换机 A0/0/23
PC2 192.168.1.102 255.255.255.0 交换机 B0/0/24
如果链路聚合成功,则 PC1 可以ping 通 PC2。
二、 实验步骤
第一步:正确连接网线,交换机全部恢复出厂设置,做初始配置,避免广播风暴出现
交换机A: switch#config
switch(Config)#hostname switchA
switchA(Config)#interface vlan 1
switchA(Config-If-Vlan1)#ip address 192.168.1.11 255.255.255.0
switchA(Config-If-Vlan1)#no shutdown
switchA(Config-If-Vlan1)#exit
switchA(Config)#spanning-tree
MSTP is starting now, please wait...........
MSTP is enabled successfully.
switchA(Config)#
交换机B: switch#config
switch(Config)#hostname switchB
switchB(Config)#interface vlan 1
switchB(Config-If-Vlan1)#ip address 192.168.1.12 255.255.255.0
switchB(Config-If-Vlan1)#no shutdown
switchB(Config-If-Vlan1)#exit
switchB(Config)#spanning-tree
MSTP is starting now, please wait...........
MSTP is enabled successfully.
switchB(Config)#
第二步:创建port group
交换机A: switchA(Config)#port-group 1
switchA(Config)#
验证配置: switchA#show port-group detail Sorted by the ports in the group 1: --------------------------------------------
switchA#show port-group brief Port-group number : 1 Number of ports in port-group : 0 Maxports in port-channel = 8 Number of port-channels : 0 Max port-channels : 1 switchA#
交换机B
switchB(Config)#port-group 2
switchB(Config)#
第三步:手工生成链路聚合组(第三、四步任选其一操作)
交换机A: switchA(Config)#interface ethernet 0/0/1-2
switchA(Config-Port-Range)#port-group 1 mode on
switchA(Config-Port-Range)#exit
switchA(Config)#interface port-channel 1
switchA(Config-If-Port-Channel1)#
验证配置: switchA#show vlan VLAN Name Type Media Ports ---- ------------ ---------- --------- ------------------- 1 default Static ENET Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/8 Ethernet0/0/9 Ethernet0/0/10 Ethernet0/0/11 Ethernet0/0/12 Ethernet0/0/13 Ethernet0/0/14 Ethernet0/0/15 Ethernet0/0/16 Ethernet0/0/17 Ethernet0/0/18 Ethernet0/0/19 Ethernet0/0/20 Ethernet0/0/21 Ethernet0/0/22 Ethernet0/0/23 Ethernet0/0/24 Port-Channel1 switchA# !port-channel1已经存在 交换机B: switchB(Config)#int e 0/0/3-4 switchB(Config-Port-Range)#port-group 2 mode on switchB(Config-Port-Range)#exit switchB(Config)#interface port-channel 2 switchB(Config-If-Port-Channel2)# 验证配置: switchB#show port-group brief Port-group number : 2 Number of ports in port-group : 2 Maxports in port-channel = 8 Number of port-channels : 1 Max port-channels : 1 switchB# 第四步: LACP动态生成链路聚合组(第三、四步任选其一操作) switchA(Config)#interface ethernet 0/0/1-2 switchA(Conifg-Port-Range)#port-group 1 mode active switchA(Config)#interface port-channel 1 switchA(Config-If-Port-Channel1)# 验证配置: switchA#show vlan VLAN Name Type Media Ports ---- ------------ ---------- --------- ------------------- 1 default Static ENET Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/8 Ethernet0/0/9 Ethernet0/0/1 Ethernet0/0/11 Ethernet0/0/1 Ethernet0/0/13 Ethernet0/0/1 Ethernet0/0/15 Ethernet0/0/1 Ethernet0/0/17 Ethernet0/0/1 Ethernet0/0/19 Ethernet0/0/2 Ethernet0/0/21 Ethernet0/0/2 Ethernet0/0/23 Ethernet0/0/2 Port-Channel1 switchA# !port-channel1已经存在 交换机B: switchB(Config)#interface ethernet 0/0/3-4 switchB(Conifg-Port-Range)#port-group 2 mode passive switchB(Config)#interface port-channel 2 switchB(Config-If-Port-Channel2)# 验证配置: switchB#show port-group brief Port-group number : 2 Number of ports in port-group : 2 Maxports in port-channel = 8 Number of port-channels : 1 Max port-channels : 1 switchB# 第五步:使用ping命令验证 使用PC1 ping PC2 交换机A 交换机B 结果 原因 0/0/1 0/0/3 通 链路聚合组连接正确 0/0/2 0/0/4 0/0/1 0/0/3 通 拔掉交换机B端口4的网线,仍然可 0/0/2 以通(需要一点时间),此时用show

2. 交换机怎么配置 ,使链路带宽增倍速度更快

本期我们一起来详细了解下。
一、配置链路聚合,实现提升带
链路聚合将
两个或更多物理端口汇聚在一起,形成一个逻辑端口
,该端口以一个单个的更高带宽的逻辑链路出现。链路聚合一般用来连接一个或多个
带宽需求大的设备
,例如连接骨干网络的服务器或服务器群。它可以用于扩展链路带宽,提供更高的连接可靠性。
一、举例
公司有2层楼,分别运行着不同的业务,本来两个楼层的网络是分开的,但都是一家公司难免会有业务往来,这时我们就可以打通两楼之前的网络,使具有相互联系的部门之间高速通信。
如下图:
如上图所示,SwitchA和SwitchB通过以太链路分别都连接VLAN10和VLAN20的网络,
且SwitchA和SwitchB之间有较大的数据流量。
用户希望SwitchA和SwitchB之间能够提供
更大的链路带宽来使相同VLAN间互相通信。
同时用户也希望能够提供一定的冗余度,
保证数据传输和链路的可靠性。
二、配置思路
采用如下的思路配置手工模式链路聚合:
创建Eth-Trunk接口并加入成员接口,实现增加链路带宽。创建VLAN并将接口加入VLAN。配置负载分担方式,实现流量在Eth-Trunk各成员接口间的负载分担,增加可靠性。
我们以
华为s5700交换机
的配置为实例,(s5700常用作项目的核心交换机)
三、实现配置步骤:
1、在SwitchA和SwitchB上创建Eth-Trunk接口并加入成员接口
Quidway system-view
sysname SwitchA
interface eth-trunk 1 //创建ID为1的Eth-Trunk接口
trunkport gigabitethernet 1/0/1 to 1/0/3 //在Eth-Trunk1接口中加入GE1/0/1到GE1/0/3三个成员接口
quit
code>
Quidway system-view
sysname SwitchB
interface eth-trunk 1 //创建ID为1的Eth-Trunk接口
trunkport gigabitethernet 1/0/1 to 1/0/3 //在Eth-Trunk1接口中加入GE1/0/1到GE1/0/3三个成员接口
quit
code>
2、在SwitchA和SwitchB,创建VLAN并将接口加入VLAN
# 创建VLAN10和VLAN20并分别加入接口。
vlan batch 10 20
interface gigabitethernet 1/0/4
port link-type trunk //设置接口链路类型为trunk,接口缺省链路类型不是trunk口
port trunk allow-pass vlan 10
quit
interface gigabitethernet 1/0/5
port link-type trunk //设置接口链路类型为trunk,接口缺省链路类型不是trunk口
port trunk allow-pass vlan 20
quit
vlan batch 10 20
interface gigabitethernet 1/0/4
port link-type trunk //设置接口链路类型为trunk,接口缺省链路类型不是trunk口
port trunk allow-pass vlan 10
quit
interface gigabitethernet 1/0/5
port link-type trunk //设置接口链路类型为trunk,接口缺省链路类型不是trunk口
port trunk allow-pass vlan 20
quit
code>
# 在SwitchA和SwitchB,配置Eth-Trunk1接口允许VLAN10和VLAN20通过。
interface eth-trunk 1
port link-type trunk //设置接口链路类型为trunk,接口缺省链路类型不是trunk口
port trunk allow-pass vlan 10 20
quit
code>
interface eth-trunk 1
port link-type trunk //设置接口链路类型为trunk,接口缺省链路类型不是trunk口
port trunk allow-pass vlan 10 20
quit
code>
3、在SwitchA和SwitchB,配置Eth-Trunk1的负载分担方式。SwitchB的配置与SwitchA类似,不再赘述。
interface eth-trunk 1
load-balance src-dst-mac //配置Eth-Trunk1基于源MAC地址与目的MAC地址进行负载分担
quit
interface eth-trunk 1
load-balance src-dst-mac //配置Eth-Trunk1基于源MAC地址与目的MAC地址进行负载分担
quit
code>
4、验证配置结果
在任意视图下执行display eth-trunk 1命令,检查Eth-Trunk是否创建成功,及成员接口是否正确加入。
display eth-trunk 1
从以上信息看出Eth-Trunk 1中包含3个成员接口GigabitEthernet1/0/1、GigabitEthernet1/0/2和GigabitEthernet1/0/3,成员接口的状态都为Up。Eth-Trunk 1的“Operate status”为up。

阅读全文

与链路聚合配置命令相关的资料

热点内容
做服饰的app叫什么名字 浏览:48
java表驱动 浏览:324
如何编辑网站源码 浏览:971
吉利远景压缩机不工作 浏览:477
程序员最高端的学校 浏览:921
三星手机如何开启app推送 浏览:391
淘宝视频压缩软件 浏览:559
隐藏软件加密的密码怎么改 浏览:998
ug100数控编程坐标系设定 浏览:404
布林线玩法源码 浏览:479
如何将功能玩法加载到服务器 浏览:609
戴尔服务器业务口怎么登录 浏览:187
grublinux参数 浏览:452
杭州电脑云控系统源码 浏览:424
水仙防红源码 浏览:493
wifi显示连接加密不可上网 浏览:220
汽车安卓大屏怎么改主题 浏览:402
木工空气压缩机图片 浏览:606
php标签过滤 浏览:292
单片机红外电平捕捉信号 浏览:238