加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

端口聚合配置

发布时间:2020-12-14 02:00:38 所属栏目:百科 来源:网络整理
导读:实验名称:端口聚合配置 实验目的:理解端口聚合的工作原理,掌握如何在交换机上配置端口聚合。 实验步骤: 第一步:配置两台交换机的主机名和管理 IP 地址 S3750#configure terminal Enter configuration commands,one per line. End with CNTL/Z. S3750(co

实验名称:端口聚合配置

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

实验步骤:

第一步:配置两台交换机的主机名和管理 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

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,255);">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,255);">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

L2-SW(config-if-range)#exit

L2-SW(config)#

第三步:将聚合端口设置为 Trunk

L3-SW(config)#interface aggregateport 1

L3-SW(config-if)#switchport mode trunk

L2-SW(config)#interface aggregatePort 1

L2-SW(config-if)#switchport mode trunk

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

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 ?

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


wKiom1f8sODzo3xVAABVmmzNrVQ904.png-wh_50

wKioL1f8sODi5IT_AABRUhQpUtw926.png-wh_50

wKiom1f8sOHxi5iLAABM9spvFqk851.png-wh_50

wKioL1f8sOHx7sx0AABN3VM6a9s700.png-wh_50

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读