Cisco模拟器端口/链路聚合

端口/链路聚合

端口聚合(Aggregate-port)又称链路聚合,是指两台交换机之间在物理上将多个端口连接起来,将多条链路聚合成一条逻辑链路。从而增大链路带宽,解决交换网络中因带宽引起的网络瓶颈问题。多条物理链路之间能够相互冗余备份,其中任意一条链路断开,不会影响其他链路的正常转发数据。

在这里插入图片描述

在这里插入图片描述

switch0

Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
#关闭生成树协议
Switch(config)#no spanning-tree vlan 1
#创建链路聚合组
Switch(config)#interface port-channel 1	
#选择端口
Switch(config-if)#interface range fa 0/21-24
#开启链路聚合
Switch(config-if-range)#channel-group 1 mode on
Switch(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel1, changed state to up

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

Switch(config-if-range)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
#查看配置
Switch#show runni
Switch#show running-config 
Building configuration...

Current configuration : 1282 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
no spanning-tree vlan 1
spanning-tree mode pvst
spanning-tree extend system-id
!
interface Port-channel1
!
interface FastEthernet0/1
.........
!
interface FastEthernet0/21
 channel-group 1 mode on
!
interface FastEthernet0/22
 channel-group 1 mode on
!
interface FastEthernet0/23
 channel-group 1 mode on
!
interface FastEthernet0/24
 channel-group 1 mode on
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 no ip address
 shutdown

switch1

Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#no s
Switch(config)#no sp
Switch(config)#no spanning-tree vlan 1
Switch(config)#interface port-channel 1
Switch(config-if)#int range fa 0/21-24
Switch(config-if-range)#channel-group 1 mode on
Switch(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel1, changed state to up

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

Switch(config-if-range)#ex
Switch(config)#ex
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#show runn
Switch#show running-config 
Building configuration...

Current configuration : 1230 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
no spanning-tree vlan 1
spanning-tree mode pvst
spanning-tree extend system-id
!
interface Port-channel1
!
interface FastEthernet0/1
!
......
interface FastEthernet0/21
 channel-group 1 mode on
!
interface FastEthernet0/22
 channel-group 1 mode on
!
interface FastEthernet0/23
 channel-group 1 mode on
!
interface FastEthernet0/24
 channel-group 1 mode on
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
!
!
!
!
end
  • 6
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是思科模拟器配置链路聚合的步骤: 1. 配置交换机的VLAN,并为每个VLAN分配一个IP地址。 2. 配置链路聚合组。在每个交换机上选择两个端口并将它们添加到同一个链路聚合组中。可以使用LACP或PAgP协议来管理链路聚合组。 3. 配置链路聚合组的模式。可以将链路聚合组设置为主动或被动模式。在主动模式下,交换机将发送LACP或PAgP协议数据包以尝试建立链路聚合组。在被动模式下,交换机将等待对等交换机发送LACP或PAgP协议数据包以建立链路聚合组。 4. 配置链路聚合组的类型。可以将链路聚合组设置为静态或动态模式。在静态模式下,链路聚合组将手动配置。在动态模式下,链路聚合组将使用LACP或PAgP协议自动配置。 5. 配置链路聚合组的负载平衡方式。可以将链路聚合组设置为源IP地址、目标IP地址、源和目标IP地址、源MAC地址、目标MAC地址或源和目标MAC地址的负载平衡方式。 以下是一个示例配置: ```shell Switch1(config)# interface range gigabitEthernet 0/1 - 2 Switch1(config-if-range)# channel-group 1 mode active Switch1(config-if-range)# exit Switch1(config)# interface port-channel 1 Switch1(config-if)# switchport mode trunk Switch1(config-if)# switchport trunk allowed vlan 10,20 Switch1(config-if)# exit Switch2(config)# interface range gigabitEthernet 0/1 - 2 Switch2(config-if-range)# channel-group 1 mode active Switch2(config-if-range)# exit Switch2(config)# interface port-channel 1 Switch2(config-if)# switchport mode trunk Switch2(config-if)# switchport trunk allowed vlan 10,20 Switch2(config-if)# exit ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值