思科模拟器 交换机链路聚合(二层、三层)

端口聚合工作原理
将连接多个物理链路的端口捆绑在一起形成一个逻辑端口,这个逻辑端口成为聚合端口(AP)。聚合端口AP的功能遵循IEEE802.3ad标准,目标是扩展链路带宽,提高链路可靠性。
端口聚合条件:
一般交换机最多支持8个物理端口组成一个聚合端口,同时要满足以下条件:
1、物理端口速度相同;
2、物理端口介质相同;
3、物理端口层次一致;
4、AP成员端口必须属于同一个VLAN。

端口聚合又称链路捆绑,分为二层端口聚合和三层端口聚合。二层端口聚合针对二层交换机,交换机接口只能是二层性质的,接口链路类型可以设置为trunk和access,形成的链路不带IP地址功能。三层聚合端口也称为路由聚合端口,针对三层交换机,形成的链路带IP地址功能,则不能设置链路类型为trunk和access。原文链接:https://blog.csdn.net/STARDEIT/article/details/119833428

二层聚合端口配置
配置二层聚合端口的过程:
1、创建聚合端口
2、将端口绑定到聚合端口
3、设置聚合端口类型

下面是以思科模拟器为例做二层聚合端口操作步骤:
1、创建聚合组进入聚合接口模式(全局模式)
Switch(config)#interface port-channel 1
2、将端口绑定到聚合端口(接口模式)
Switch(config)#int range f0/1-3
Switch(config-if-range)#channel-group 1 mode on
channel-group指定当前端口要加入到的聚合组(聚合端口ID)
3、聚合接口下端口配置(聚合接口模式)
Switch(config)#int port-channel 1
Switch(config-if)#switchport mode trunk

二层实例
在这里插入图片描述

交换机switch0的配置

Switch>en
Switch#conf
Configuring from terminal, memory, or network [terminal]? 
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int port-channel 1
Switch(config-if)#exit
Switch(config)#int range f0/2-3
Switch(config-if-range)#channel-group 1 mode on
Switch(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

Switch(config-if-range)#exit
Switch(config)#int port-channel 1
Switch(config-if)#switchport mode trunk

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEth
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值