7【工程实验室】【推荐演示】【端口聚合配置】

上传人:豆浆 文档编号:36332663 上传时间:2018-03-27 格式:PDF 页数:9 大小:290.84KB
返回 下载 相关 举报
7【工程实验室】【推荐演示】【端口聚合配置】_第1页
第1页 / 共9页
7【工程实验室】【推荐演示】【端口聚合配置】_第2页
第2页 / 共9页
7【工程实验室】【推荐演示】【端口聚合配置】_第3页
第3页 / 共9页
7【工程实验室】【推荐演示】【端口聚合配置】_第4页
第4页 / 共9页
7【工程实验室】【推荐演示】【端口聚合配置】_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《7【工程实验室】【推荐演示】【端口聚合配置】》由会员分享,可在线阅读,更多相关《7【工程实验室】【推荐演示】【端口聚合配置】(9页珍藏版)》请在金锄头文库上搜索。

1、实验 端口聚合配置 【实验名称】【实验名称】 端口聚合配置。 【实验目的】【实验目的】 理解端口聚合的工作原理,掌握如何在交换机上配置端口聚合。 【背景描述】【背景描述】 假设某企业采用两台交换机组成一个局域网, 由于很多数据流量是跨过交换机进行转发 的,因此需要提高交换机之间的传输带宽,并实现链路冗余备份,为此网络管理员在两台交 换机之间采用两根网线互连, 并将相应的两个端口聚合为一个逻辑端口, 现要在交换机上做 适当配置来实现这一目标。 【需求分析】【需求分析】 需要在两台交换机之间的冗余链路上实现端口聚合,并且在聚合端口上设置 Trunk,以 增加网络骨干链路的带宽。 【实验拓扑】【实验

2、拓扑】 图 4 2 实验拓扑图 按照拓扑图连接网络时注意,两台交换机都配置完端口聚合后,再将两台交换机连接 起来。如果先连线再配置可能会造成广播风暴,影响交换机的正常工作。 【实验设备】【实验设备】 三层交换机 1 台 二层交换机 1 台 【预备知识】【预备知识】 交换机的基本配置方法, VLAN 的工作原理和配置方法, Trunk 的工作原理和配置方法, SVI 端口的配置方法,聚合端口的工作原理和配置方法 【实验原理】【实验原理】 端口聚合(Aggregate-port)又称链路聚合,是指两台交换机之间在物理上将多个端口 连接起来,将多条链路聚合成一条逻辑链路。从而增大链路带宽,解决交换网

3、络中因带宽引 起的网络瓶颈问题。多条物理链路之间能够相互冗余备份,其中任意一条链路断开,不会影 响其他链路的正常转发数据。 端口聚合遵循 IEEE 802.3ad 协议的标准。 【实验步骤】【实验步骤】 第一步:配置两台交换机的主机名和管理第一步:配置两台交换机的主机名和管理 IP 地址地址 S3750#configure terminal Enter configuration commands, one per line. End with CNTL/Z. S3750(config)#hostname L3-SW L3-SW(config)#interface vlan 1 L3-SW(c

4、onfig-if)#Dec 3 01:03:22 L3-SW %7:%LINE PROTOCOL CHANGE: Interface VLAN 1, changed state to UP L3-SW(config-if)#ip address 192.168.1.1 255.255.255.0 L3-SW(config-if)#no shutdown L3-SW(config-if)#exit Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config

5、)#hostname L2-SW L2-SW(config)#interface vlan 1 L2-SW(config-if)#ip address 192.168.1.2 255.255.255.0 L2-SW(config-if)#no shutdown L2-SW(config-if)#exit 第二步:在两台交换机上配置聚合端口第二步:在两台交换机上配置聚合端口 L3-SW(config)#interface range fastEthernet 0/1-2 L3-SW(config-if-range)#port-group 1 !将端口 Fa0/12 加入聚合端口 1,同时创建该聚

6、合端口 L3-SW(config-if-range)#Dec 3 01:03:57 L3-SW %7:%LINE PROTOCOL CHANGE: Interface AggregatePort 1, changed state to UP Dec 3 01:03:58 L3-SW %7:%LINK CHANGED: Interface FastEthernet 0/1, changed state to administratively down Dec 3 01:03:58 L3-SW %7:%LINE PROTOCOL CHANGE: Interface FastEthernet 0/1

7、, changed state to DOWN Dec 3 01:03:58 L3-SW %7:%LINK CHANGED: Interface FastEthernet 0/2, changed state to administratively down L3-SW(config-if-range)#exit L3-SW(config)# L2-SW(config)#interface range fastEthernet 0/1-2 L2-SW(config-if-range)#port-group 1 !将端口 Fa0/12 加入聚合端口 1,同时创建该聚合端口 L2-SW(confi

8、g-if-range)#exit L2-SW(config)# 第三步:将聚合端口设置为第三步:将聚合端口设置为 Trunk L3-SW(config)#interface aggregateport 1 L3-SW(config-if)#switchport mode trunk L3-SW(config-if)#exit L3-SW(config)# L2-SW(config)#interface aggregatePort 1 L2-SW(config-if)#switchport mode trunk L2-SW(config-if)#exit L2-SW(config)# 第四步:设

9、置聚合端口的负载平衡方式第四步:设置聚合端口的负载平衡方式 L3-SW(config)#aggregateport load-balance ? !查看交换机支持的负载平衡方式 dst-ip Destination IP address dst-mac Destination MAC address ip Source and destination IP address src-dst-mac Source and destination MAC address src-ip Source IP address src-mac Source MAC address L3-SW(config)

10、#aggregateport load-balance dst-mac !设置负载平衡方式为依据目的地址进行,默认是依据源和目的地址 L3-SW(config)#exit L2-SW(config)#aggregatePort load-balance ? !查看交换机支持的负载平衡方式 dst-mac Destination MAC address ip Source and destination IP address src-mac Source MAC address L2-SW(config)#aggregatePort load-balance dst-mac !设置负载平衡方式为

11、依据目的地址进行,默认是依据源地址 L2-SW(config)#exit 第五步:查看聚合端口的配置第五步:查看聚合端口的配置 L3-SW#show aggregatePort load-balance Load-balance : Destination MAC L3-SW# L3-SW#show aggregatePort summary AggregatePort MaxPorts SwitchPort Mode Ports - - - - - Ag1 8 Enabled TRUNK Fa0/1 ,Fa0/2 L3-SW# L3-SW#show interfaces aggregatep

12、ort 1 Index(dec):29 (hex):1d AggregatePort 1 is UP , line protocol is UP Hardware is Aggregate Link AggregatePort Interface address is: no ip address MTU 1500 bytes, BW 1000000 Kbit Encapsulation protocol is Bridge, loopback not set Keepalive interval is 10 sec , set Carrier delay is 2 sec RXload is

13、 1 ,Txload is 1 Queueing strategy: WFQ Switchport attributes: interfaces description:“ medium-type is copper lastchange time:337 Day: 1 Hour: 3 Minute:56 Second Priority is 0 admin duplex mode is AUTO, oper duplex is Full admin speed is AUTO, oper speed is 100M flow control admin status is AUTO,flow

14、 control oper status is OFF broadcast Strom Control is OFF,multicast Strom Control is OFF,unicast Strom Control is OFF Aggregate Port Informations: Aggregate Number: 1 Name: “AggregatePort 1“ Refs: 2 Members: (count=2) FastEthernet 0/1 Link Status: Up FastEthernet 0/2 Link Status: Up L3-SW# L2-SW#sh

15、ow aggregatePort load-balance Load-balance : Destination MAC address L2-SW# L2-SW#show aggregatePort summary AggregatePort MaxPorts SwitchPort Mode Ports - - - - - Ag1 8 Enabled Trunk Fa0/1 , Fa0/2 L2-SW# L2-SW#show interfaces aggregatePort 1 Interface : AggregatePort 1 Description : AdminStatus : up OperSt

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号