快速生成树配置

实验名称:端口聚合配置

实验目的:理解端口聚合的工作原理,掌握如何在交换机上配置端口聚合。

实验原理:端口聚合(Aggregate-port)又称链路聚合,是指两台交换机之间在物理上将多个端口

连接起来,将多条链路聚合成一条逻辑链路。从而增大链路带宽,解决交换网络中因带宽引

起的网络瓶颈问题。多条物理链路之间能够相互冗余备份,其中任意一条链路断开,不会影

响其他链路的正常转发数据。

端口聚合遵循 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(config-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)#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/1~2 加入聚合端口 1,同时创建该聚合端口

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, 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/1~2 加入聚合端口 1,同时创建该聚合端口

L2-SW(config-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)#

第四步:设置聚合端口的负载平衡方式

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)#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

!设置负载平衡方式为依据目的地址进行,默认是依据源地址

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 aggregateport 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 1 ,Txload is 1

Queueing strategy: WFQ

Switchport attributes:

interface‘s 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 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#show 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

OperStatus : up

Hardware : -

Mtu : 1500

LastChange : 0d:0h:0m:0s

AdminDuplex : Auto

OperDuplex : Full

AdminSpeed : Auto

OperSpeed : 100

FlowControlAdminStatus : Off

FlowControlOperStatus : Off

Priority : 0

Broadcast blocked :DISABLE

Unknown multicast blocked :DISABLE

Unknown unicast blocked :DISABLE

L2-SW#

第六步:验证配置

在三层交换机 L3-SW 上配置另一个用于测试的 VLAN 10,配置 IP 地址为

192.168.10.1/24,然后在二层交换机 L2-SW 上配置默认网关(其作用相当于主机的网关,

交换机可将发往其他网段的数据包提交给网关处理),这样 L2-SW 可以 ping 通

192.168.1.1/24 和 192.168.10.1/24,说明聚合端口的 Trunk 配置已经生效。

L3-SW(config)#vlan 10

L3-SW(config-vlan)#exit

L3-SW(config)#

L3-SW(config)#interface vlan 10

L3-SW(config-if)#iDec 3 01:16:02 L3-SW %7:%LINE PROTOCOL CHANGE:

Interface VLAN 10, changed state to UP

L3-SW(config-if)#ip address 192.168.10.1 255.255.255.0

L3-SW(config-if)#no shutdown

L3-SW(config-if)#exit

L2-SW(config)#ip default-gateway 192.168.1.1

!设置二层交换机的默认网关

L2-SW(config)#exit

L2-SW#

L2-SW#ping 192.168.1.1

Sending 5, 100-byte ICMP Echos to 192.168.1.1,

timeout is 2000 milliseconds.

!!!!!

Success rate is 100 percent (5/5)

Minimum = 1ms Maximum = 1ms, Average = 1ms

L2-SW#ping 192.168.10.1

Sending 5, 100-byte ICMP Echos to 192.168.10.1,

timeout is 2000 milliseconds.

!!!!!

Success rate is 100 percent (5/5)

Minimum = 1ms Maximum = 1ms, Average = 1ms

在三层交换机 L3-SW 上长时间的 ping 二层交换机 L2-SW,然后断开聚合端口中的

Fa0/2 端口:

L3-SW#ping 192.168.1.2 ntimes 1000

Sending 1000, 100-byte ICMP Echoes to 192.168.1.2, timeout is 2 seconds:

< press Ctrl+C to break >

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Success rate is 100 percent (1000/1000), round-trip min/avg/max = 1/1/10 ms

可以看到在断开聚合端口中的 Fa0/2 端口时是没有丢包的。再次实验,此次断开 Fa0/1

端口:

L3-SW#ping 192.168.1.2 ntimes 1000

Sending 1000, 100-byte ICMP Echoes to 192.168.1.2, timeout is 2 seconds:

< press Ctrl+C to break >

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Success rate is 99 percent (999/1000), round-trip min/avg/max = 1/1/10 ms

实验过程图:

时间: 2024-12-15 06:55:05

快速生成树配置的相关文章

实验 快速生成树配置

[实验名称] 快速生成树协议 RSTP 的配置. [实验目的] 理解快速生成树协议 RSTP 的工作原理,掌握如何在交换机上配置快速生成树. [背景描述] 某学校为了开展计算机教学和网络办公,建立了一个计算机教室和一个校办公区,这两 处的计算机网络通过两台交换机互连组成内部校园网,为了提高网络的可靠性,网络管理员 用 2 条链路将交换机互连,现要在交换机上做适当配置,使网络避免环路. [需求分析] 两台交换机以双链路互联,需要在启用 RSTP 避免环路的同时,提供链路的冗余备份功 能. [实验拓

快速生成树配置和端口聚合配置

一.实验原理 生成树协议作用是在交换网络中提供冗余备份链路,并且解决交换网络中的环路问题.生成树协议是利用spa算法,在存在交换环路的网络中生成一个没有环路的树形网络.运用该算法将交换网络冗余的备份链路在逻辑上断开.而当主要链路故障时可以自动切换到备份链路,保证数据的正常转发. 端口聚合是指两台交换机之间在物理上把多个端口连接起来,将多条链路聚合成一条逻辑链路.从而增大链路带宽,解决交换网络中因带宽引起的网络瓶颈问题.多条物理链路之间能够相互冗余备份,其中任意一条链路出现断开,都不影响其他链路的

在Packet Tracer中快速生成树配置

实验目标: <1>理解生成树协议工作原理 <2>掌握快速生成树协议RSTP基本配置方法 技术原理: <1>生成树协议,作用是在交换网络中提供冗余备份链路,并且解决交换网络中的环路问题 <2>生成树协议是利用SPA算法,在存在交换机环路的网络中生成一个没有环路的属性网络,运用该算法将交换网络的冗余备份链路从逻辑上断开,当主链路出现故障时,能够自动的切换到备份链路,保证数据的正常转发. <3>生成树协议版本:STP.RSTP.MSTP. <4&

实验六 快速生成树配置

1.准备工作: 工具:1台3层交换机,1台2层交换机,网线 (1)      开始 --> 控制面板 --> 程序 --> 程序和功能 --> 打开或关闭Windows功能 --> 勾选Telnet客户端 (2)      开始 --> 运行程序:cmd --> telnet 172.28.15.104 2006(打开其中一台交换机) 2.配置3层交换机IP和Trunk 3.启用RSTP 4.指定3层交换机为根网桥 5.查看生成树的配置 6.打开机柜,连接第2台交

快速生成树

[实验名称]快速生成树协议 RSTP 的配置.[实验目的]理解快速生成树协议 RSTP 的工作原理,掌握如何在交换机上配置快速生成树.[背景描述]某学校为了开展计算机教学和网络办公,建立了一个计算机教室和一个校办公区,这两处的计算机网络通过两台交换机互连组成内部校园网,为了提高网络的可靠性,网络管理员用 2 条链路将交换机互连,现要在交换机上做适当配置,使网络避免环路.[需求分析]两台交换机以双链路互联,需要在启用 RSTP 避免环路的同时,提供链路的冗余备份功能.[实验拓扑]图 4‐ 1 实验

STP 5 - Rapid STP 和 Rapid PVST (快速生成树协议)

RSTP = 802.1w 注意要点: 快速收敛是基于交换机相关进程同步 开启命令: - spanning tree mode mst - spanning tree mode rapid-pvst 同步进程只发生在p2p & non-edge 端口上 (p2p意味着full duplex,non-edge要有收bpdu,edge port上要配置portfast命令) 注:如果在edge端口没有配置portfast且端口是full duplex,当主机收到Rapid STP proposal时

CCNA实验十六 快速生成树协议(RSTP)

环境:Windows XP .Packet Tracer5.3 目的:了解并配置RSTP 说明:  RSTP:快速生成树协议(rapid spaning tree protocol):这种协议在网络结构发生变化时,能更快的收敛网络.RSTP中只有三种端口状态禁止端口,阻塞端口,监听端口比STP收敛时间缩短了不少. 步骤: 打开Packet Tracer5.3创建拓扑: 2.配置SW1: Switch>en Switch>en Switch#conf t Switch(config)#host

快速生成树协议

[实验名称]快速生成树协议 RSTP 的配置.[实验目的]理解快速生成树协议 RSTP 的工作原理,掌握如何在交换机上配置快速生成树.[背景描述]某学校为了开展计算机教学和网络办公,建立了一个计算机教室和一个校办公区,这两处的计算机网络通过两台交换机互连组成内部校园网,为了提高网络的可靠性,网络管理员用 2 条链路将交换机互连,现要在交换机上做适当配置,使网络避免环路.[需求分析]两台交换机以双链路互联,需要在启用 RSTP 避免环路的同时,提供链路的冗余备份功能.[实验拓扑]图 4‐ 1 实验

IELAB网络实验室快速生成树协议(1)

理解快速生成树协议(802.1w) 802.1D生成树协议(STP)标准的设计初中是,每一次连接都在中断一分钟左右后恢复即可视为性能良好.随着局域网环境中第三层交换技术的出现,桥接解决方案现在能够和路由解决方案抗衡,桥接解决方案中的开放最短路径优先(OSPF)和增强型内部网关路由协议(EIGRP)等协议能够在更短时间内提供替代路径.Cisco通过Uplink Fast.Backbone Fast 和 Port Fast 等功能增强了最初的802.1D规范,为的是加速桥接网络的收敛时间,缺点是这些