第一范文网 - 专业文章范例文档资料分享平台

神码生成树,端口聚合实验

来源:用户分享 时间:2025/5/26 12:51:55 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

生成树、端口聚合实验 2010-05-15 10:29:04| 分类: 网络设备 | 标签: |字号大 中

小 订阅 设备:DCS-3950一台,DCRS-5650一台(两台3950也可,不涉及三层功能),PC两台,Console线1-2根,直通线4根

初始准备:将PC1连至3950,3950连5650,5650连PC2,配置IP地址,Ping通

实验过程:

拿出另一根网线,连接3950与5650,数秒后交换机3个接口灯狂闪,原本ping通的变为不通

注:有些交换机默认启用生成树,可以先show spanning-tree查看,是否开启,如果开启,先行关闭。

在3950上输入

DCS-3950-26C(config)#spanning-tree

MSTP is starting now, please wait............. MSTP is enabled successfully. DCS-3950-26C(config)#

可以看到,端口不再狂闪,数秒后网络恢复正常,再等待数秒后,再次狂闪,网络再次瘫痪

DCS-3950-26C#show spanning-tree

-- MSTP Bridge Config Info --

Standard : IEEE 802.1s

Bridge MAC : 00:03:0f:13:56:3b

Bridge Times : Max Age 20, Hello Time 2, Forward Delay 15 Force Version: 3

########################### Instance 0 ########################### Self Bridge Id : 32768 - 00:03:0f:13:56:3b Root Id : this switch Ext.RootPathCost : 0

Region Root Id : this switch Int.RootPathCost : 0 Root Port ID : 0

Current port list in Instance 0:

Ethernet0/0/1 Ethernet0/0/6 Ethernet0/0/17 (Total 3)

PortName ID ExtRPC IntRPC State Role DsgBridge DsgPort

-------------- -------- --------- --------- --- ---- ------------------ -------

Ethernet0/0/1 128.001 0 0 FWD DSGN 32768.00030f13563b 128.001 Ethernet0/0/6 128.006 0 0 FWD DSGN 32768.00030f13563b 128.006 Ethernet0/0/17 128.017 0 0 FWD DSGN 32768.00030f13563b 128.017

在5650上也开启spanning-tree,再次查看3950 DCS-3950-26C#show span

-- MSTP Bridge Config Info --

Standard : IEEE 802.1s

Bridge MAC : 00:03:0f:13:56:3b

Bridge Times : Max Age 20, Hello Time 2, Forward Delay 15 Force Version: 3

########################### Instance 0 ########################### Self Bridge Id : 32768 - 00:03:0f:13:56:3b Root Id : this switch Ext.RootPathCost : 0

Region Root Id : this switch Int.RootPathCost : 0 Root Port ID : 0

Current port list in Instance 0:

Ethernet0/0/1 Ethernet0/0/6 Ethernet0/0/17 (Total 3)

PortName ID ExtRPC IntRPC State Role DsgBridge DsgPort -------------- -------- --------- --------- --- ---- ------------------ -------

Ethernet0/0/1 128.001 0 0 FWD DSGN 32768.00030f13563b 128.001 Ethernet0/0/6 128.006 0 0 FWD DSGN 32768.00030f13563b 128.006 Ethernet0/0/17 128.017 0 0 FWD DSGN 32768.00030f13563b 128.017

在5650上show span 查看结果

DCRS-5650-28#show span

-- MSTP Bridge Config Info --

Standard : IEEE 802.1s

Bridge MAC : 00:03:0f:13:61:6b

Bridge Times : Max Age 20, Hello Time 2, Forward Delay 15 Force Version: 3

########################### Instance 0 ########################### Self Bridge Id : 32768 - 00:03:0f:13:61:6b Root Id : 32768.00:03:0f:13:56:3b Ext.RootPathCost : 200000 Region Root Id : this switch Int.RootPathCost : 0

Root Port ID : 128.15

Current port list in Instance 0:

Ethernet0/0/3 Ethernet0/0/10 Ethernet0/0/15 (Total 3)

PortName ID ExtRPC IntRPC State Role DsgBridge DsgPort -------------- ------- --------- --------- --- ---- ------------------ -------

Ethernet0/0/3 128.003 200000 0 FWD DSGN 32768.00030f13616b 128.003 Ethernet0/0/10 128.010 0 0 BLK ALTR 32768.00030f13563b 128.006 Ethernet0/0/15 128.015 0 0 FWD ROOT 32768.00030f13563b 128.001 DCRS-5650-28#

可见在5650上,第10个端口变成了阻塞状态

查看ping,网络恢复互通,交换机灯不再狂闪

生成树运行成功

*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************

端口聚合

端口聚合可以使两个或者多个端口逻辑上当作一个端口来使用,与生成树不同的是,生成树

是逻辑上阻塞一个或多个端口的工作,保持只有一个端口工作,交换机间的带宽不变;而端口聚合是将多个物理端口逻辑看作一个端口来使用,带宽变为 n*端口带宽。

关闭span,不久网络不通,在3950上开启port-group DCS-3950-26C(config)#port-group 1

DCS-3950-26C(config)#int e0/0/1

DCS-3950-26C(config-if-ethernet0/0/1)#port-group 1 mode on DCS-3950-26C(config-if-ethernet0/0/1)#int e0/0/5

DCS-3950-26C(config-if-ethernet0/0/5)#port-group 1 mode on

接下来,在5650上开启port-group

DCRS-5650-28(config)#port-group 1 DCRS-5650-28(config)#int e0/0/10

DCRS-5650-28(Config-If-Ethernet0/0/10)#port-group 1 mode on DCRS-5650-28(Config-If-Ethernet0/0/10)#int e0/0/15 DCRS-5650-28(Config-If-Ethernet0/0/15)#port

DCRS-5650-28(Config-If-Ethernet0/0/15)#port-group 1 mo on

the port Ethernet0/0/15 successfully added to the group1 as on mode

DCRS-5650-28(Config-If-Ethernet0/0/15)#%Jan 01 00:34:48 2006 %LINK-3-UPDOWN: Interface Port-Channel1, changed state to administratively DOWN

%Jan 01 00:34:48 2006 %LINK-5-CHANGED: Interface Port-Channel1, changed state to UP

%Jan 01 00:34:48 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-Channel1, changed state to DOWN

%Jan 01 00:34:48 2006 create the trunk group Port-Channel1 successfully.

%Jan 01 00:34:49 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-Channel1, changed state to UP

%Jan 01 00:34:49 2006 %DUPLEX-7-CHANGE: Interface Port-Channel1, DUPLEX changed state to FULL

%Jan 01 00:34:49 2006 %SPEED-8-CHANGE: Interface Port-Channel1, SPEED changed state to 100M

DCRS-5650-28(Config-If-Ethernet0/0/15)# DCRS-5650-28#show port-g b Port-group number : 1

the attributes of the port-group are as follows:

Number of ports in port-group : 2 Maxports in port-channel = 8 Number of port-channels : 1 Max port-channels : 1

DCRS-5650-28#show vlan

VLAN Name Type Media Ports

---- ------------ ---------- --------- ----------------------------------------

1 default Static ENET Ethernet0/0/1 Ethernet0/0/2 Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/8 Ethernet0/0/9 Ethernet0/0/11 Ethernet0/0/12 Ethernet0/0/13 Ethernet0/0/14 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 Ethernet0/0/25 Ethernet0/0/26 Ethernet0/0/27 Ethernet0/0/28 Port-Channel1 DCRS-5650-28#

此处的端口聚合模式为on,即手动执行,也可以使用LACP协议自动协商

即,在一台交换机上,设置为 port-group 1 mode active(将on改为active)

另一台交换机上,设置为 port-group 1 mode passive(将on改为passive)

基于IEEE802.3ad标准的LACP(Link Aggregation Control Protocol,链路汇聚控制协议)是一种实现链路动态汇聚的协议。LACP协议通过LACPDU(Link Aggregation Control Protocol Data Unit,链路汇聚控制协议数据单元)与对端交互信息。

搜索更多关于: 神码生成树,端口聚合实验 的文档
神码生成树,端口聚合实验.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c1g5gz9fetj6msol1o42j_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top