最近进坑了dcs-3950双层交换机链路聚合配置整理

author author     2022-09-03     757

关键词:

交换机A上1-2端口对应交换机B上3-4端口

PC1链接交换机A上23端口

PC2链接交换机B上24端口

命令如下:

DCS-3950-28C>en
DCS-3950-28C#con
DCS-3950-28C(config)#hostname switchA
switchA(config)#%Jan 01 00:01:39 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/2, changed state to DOWN
%Jan 01 00:01:41 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/2, changed state to UP
%Jan 01 00:01:42 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/1, changed state to DOWN
%Jan 01 00:01:44 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/1, changed state to UP

switchA(config)#
switchA(config)#interface vlan 1
switchA(config-if-vlan1)#ip address 192.168.1.11 255.255.255.0
switchA(config-if-vlan1)#no shutdown
switchA(config-if-vlan1)#q
switchA(config)#spanning-tree

MSTP is starting now, please wait............
MSTP is enabled successfully.
switchA(config)#%Jan 01 00:02:17 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1,changed state to DOWN
8
DCS-3950-28C>
DCS-3950-28C>
DCS-3950-28C>en
DCS-3950-28C#config
DCS-3950-28C(config)#hostname switchB
switchB(config)#interface vlan 1
switchB(config-if-vlan1)#ip
ip                         ipv6                      
switchB(config-if-vlan1)#ip address 192.168.1.12 255.255.255.0
switchB(config-if-vlan1)#no shutdown
switchB(config-if-vlan1)#q
switchB(config)#spanning-tree

MSTP is starting now, please wait............
MSTP is enabled successfully.
switchB(config)#%Jan 01 00:03:42 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1,changed state to DOWN
%Jan 01 00:03:44 2006 MSTP set port = 4, mst = 0 to LEARNING!
%Jan 01 00:03:44 2006 MSTP set port = 4, mst = 0 to FORWARDING!
%Jan 01 00:03:44 2006 Root bridge has been changed. PRS is triggered: INSTANCE=0
%Jan 01 00:03:44 2006 CistRoot = 32768.00:03:0f:61:74:b5, CistRegRoot = 32768.00:03:0f:61:74:b5
%Jan 01 00:03:45 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1,changed state to UP

switchA(config)#
switchA(config)#
switchA(config)#port-group 1
switchA(config)#%Jan 01 00:03:21 2006 %LINK-3-UPDOWN: Interface Port-Channel1, changed state to administratively DOWN
%Jan 01 00:03:21 2006 MSTP set port = 29, mst = 0 to DISCARDING!
%Jan 01 00:03:25 2006 MSTP set port = 2, mst = 0 to LEARNING!

switchB(config)#
switchB(config)#port-group 2
switchB(config)#%Jan 01 00:04:13 2006 MSTP set port = 24, mst = 0 to FORWARDING!
%Jan 01 00:04:13 2006 %LINK-3-UPDOWN: Interface Port-Channel2, changed state to administratively DOWN
%Jan 01 00:04:13 2006 MSTP set port = 30, mst = 0 to DISCARDING!

switchB(config)#
switchB(config)#
switchB(config)#%Jan 01 00:03:42 2006 MSTP set port = 2, mst = 0 to FORWARDING!
         
switchA(config)#
switchA(config)#interface ethernet 1/1-2
switchA(config-if-port-range)#port-group 1 mode
active                     on                         passive                   
switchA(config-if-port-range)#port-group 1 mode on
switchA(config-if-port-range)#%Jan 01 00:05:32 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-Channel1, changed state to UP
%Jan 01 00:05:32 2006 MSTP set port = 29, mst = 0 to DISCARDING!

switchA(config-if-port-range)#q
switchA(config)#interface %Jan 01 00:05:39 2006 MSTP set port = 29, mst = 0 to LEARNING!
%Jan 01 00:05:39 2006 MSTP set port = 29, mst = 0 to FORWARDING!
interface port-channel 1
switchA(config-if-port-channel1)#show vlan
vlan                       vlan-translation          
switchA(config-if-port-channel1)#show vlan
VLAN Name         Type       Media     Ports
---- ------------ ---------- --------- ----------------------------------------
1    default      Static     ENET      Ethernet1/3         Ethernet1/4       
                                       Ethernet1/5         Ethernet1/6       
                                       Ethernet1/7         Ethernet1/8       
                                       Ethernet1/9         Ethernet1/10      
                                       Ethernet1/11        Ethernet1/12      
                                       Ethernet1/13        Ethernet1/14      
                                       Ethernet1/15        Ethernet1/16      
                                       Ethernet1/17        Ethernet1/18      
                                       Ethernet1/19        Ethernet1/20      
                                       Ethernet1/21        Ethernet1/22      
                                       Ethernet1/23        Ethernet1/24      
                                       Ethernet1/25        Ethernet1/26      
                                       Ethernet1/27        Ethernet1/28      
                                       Port-Channel1     
switchA(config-if-port-channel1)#int e 1/3-4
switchB(config-if-port-range)#int e 1/3-4
switchB(config-if-port-range)#q
switchB(config)#int e 1/3-4
switchB(config-if-port-range)#port-group 2 mode on
switchB(config-if-port-range)#%Jan 01 00:07:22 2006 Root bridge has been changed. PRS is triggered: INSTANCE=0
%Jan 01 00:07:22 2006 CistRoot = 32768.00:03:0f:61:75:03, CistRegRoot = 32768.00:03:0f:61:75:03
%Jan 01 00:07:24 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-Channel2, changed state to UP
%Jan 01 00:07:24 2006 MSTP set port = 30, mst = 0 to DISCARDING!

switchB(config-if-port-range)#
switchB(config-if-port-range)#q
switchB(config)#%Jan 01 00:07:25 2006 Root bridge has been changed. PRS is triggered: INSTANCE=0
%Jan 01 00:07:25 2006 CistRoot = 32768.00:03:0f:61:74:b5, CistRegRoot = 32768.00:03:0f:61:74:b5
%Jan 01 00:07:25 2006 MSTP set port = 30, mst = 0 to LEARNING!
%Jan 01 00:07:25 2006 MSTP set port = 30, mst = 0 to FORWARDING!

switchB(config)#
switchB(config)#po
policy-map                 port-group                 port-rate-statistics      
port-scan-mode             port-status               
switchB(config)#interface port-channel 2
switchB(config-if-port-channel2)#show vlan
vlan                       vlan-translation          
switchB(config-if-port-channel2)#show vlan
VLAN Name         Type       Media     Ports
---- ------------ ---------- --------- ----------------------------------------
1    default      Static     ENET      Ethernet1/1         Ethernet1/2       
                                       Ethernet1/5         Ethernet1/6       
                                       Ethernet1/7         Ethernet1/8       
                                       Ethernet1/9         Ethernet1/10      
                                       Ethernet1/11        Ethernet1/12      
                                       Ethernet1/13        Ethernet1/14      
                                       Ethernet1/15        Ethernet1/16      
                                       Ethernet1/17        Ethernet1/18      
                                       Ethernet1/19        Ethernet1/20      
                                       Ethernet1/21        Ethernet1/22      
                                       Ethernet1/23        Ethernet1/24      
                                       Ethernet1/25        Ethernet1/26      
                                       Ethernet1/27        Ethernet1/28      
                                       Port-Channel2     
switchB(config-if-port-channel2)#show running-config
!
no service password-encryption
!
hostname switchB
sysLocation China
sysContact 800-810-9119
!
username admin privilege 15 password 0 admin
!
!
!
!
!
!
spanning-tree
!
!
!
!
!
vlan 1
!
port-group 2
!        
Interface Ethernet1/1
!
Interface Ethernet1/2
!
Interface Ethernet1/3
 port-group 2 mode on
!
Interface Ethernet1/4
 port-group 2 mode on
!
Interface Ethernet1/5
!
Interface Ethernet1/6
!
Interface Ethernet1/7
!
Interface Ethernet1/8
!
Interface Ethernet1/9
!
Interface Ethernet1/10
!
Interface Ethernet1/11
!        
Interface Ethernet1/12
!
Interface Ethernet1/13
!
Interface Ethernet1/14
!
Interface Ethernet1/15
!
Interface Ethernet1/16
!
Interface Ethernet1/17
!
Interface Ethernet1/18
!
Interface Ethernet1/19
!
Interface Ethernet1/20
!
Interface Ethernet1/21
!
Interface Ethernet1/22
!
Interface Ethernet1/23
!        
Interface Ethernet1/24
!
Interface Ethernet1/25
!
Interface Ethernet1/26
!
Interface Ethernet1/27
!
Interface Ethernet1/28
!
Interface Port-Channel2
!
interface Vlan1
 ip address 192.168.1.12 255.255.255.0
!
no login
!
end

switchB(config-if-port-channel2)#?
switchA(config-if-port-channel1)#
switchA(config-if-port-channel1)#
switchA(config-if-port-channel1)#show running-config
!
no service password-encryption
!
hostname switchA
sysLocation China
sysContact 800-810-9119
!
username admin privilege 15 password 0 admin
!
!
!
!
!
!
spanning-tree
!
!
!
!
!
vlan 1
!
port-group 1
!        
Interface Ethernet1/1
 port-group 1 mode on
!
Interface Ethernet1/2
 port-group 1 mode on
!
Interface Ethernet1/3
!
Interface Ethernet1/4
!
Interface Ethernet1/5
!
Interface Ethernet1/6
!
Interface Ethernet1/7
!
Interface Ethernet1/8
!
Interface Ethernet1/9
!
Interface Ethernet1/10
!
Interface Ethernet1/11
!        
Interface Ethernet1/12
!
Interface Ethernet1/13
!
Interface Ethernet1/14
!
Interface Ethernet1/15
!
Interface Ethernet1/16
!
Interface Ethernet1/17
!
Interface Ethernet1/18
!
Interface Ethernet1/19
!
Interface Ethernet1/20
!
Interface Ethernet1/21
!
Interface Ethernet1/22
!
Interface Ethernet1/23
!        
Interface Ethernet1/24
!
Interface Ethernet1/25
!
Interface Ethernet1/26
!
Interface Ethernet1/27
!
Interface Ethernet1/28
!
Interface Port-Channel1
!
interface Vlan1
 ip address 192.168.1.11 255.255.255.0
!
no login
!
end

switchA(config-if-port-channel1)#q 
switchA(config)#

附图:

交换机A:1-2端口  交换机B:3-4端口ping测试

技术分享

交换机A:1-2端口 交换机B:去掉4端口ping测试

技术分享

交换机A:1-2端口 交换机B:5-6端口ping测试(虽然等了一小会但是还是ping通了)

技术分享

本文出自 “安陌离” 博客,谢绝转载!

端口聚合配置

实验目的 理解端口聚合的工作原理,掌握如何在交换机上配置端口聚合需求分析 需要在两台交换机之间的冗余链路上实现端口聚合,并且在聚合端口上设置Trunk,以增加网络骨干链路的带宽。实验原理 端口聚合又称链... 查看详情

华为交换机配置链路聚合(手工模式链路聚合和lacp模式聚合)ubuntu20.04服务器配置多网卡链路聚合

一.华为交换机配置链路聚合(Eth-Trunk),是将多个物理接口捆绑为一个逻辑接口,实现增加链路带宽、提高可靠性、提供负载分担的目的。链路聚合两种模式:手工负载分担模式(默认模式,默认负载均衡方式src-dst-ip适用于:... 查看详情

为啥思科2950交换机配置链路聚合不成功

思科交换机和花三交换机对接进行链路聚合操作,但是存在思科的2950交换机始终无法配置链路聚合成功,port-channel显示down(无连接)。但是另外一台交换机同样的配置就能链路聚合成功,不能聚合的配置可以聚合和不能聚合的交... 查看详情

华为交换机---链路聚合

...trunkLACP默认不转发,在一条链路断了才进行转发 三层交换机链路聚合实验:交换机交换机链路聚合 解释:通过disstpbri查看端口状态:DISCARDING 预定端口状态【阻塞状态】FORWARDING 转发端口状态【转发状态】默认stp... 查看详情

华为链路聚合配置命令

...tswitch命令,把聚合链路从二层转换到三层undoportswitch华为交换机三层链路聚合配置一般是不能再逻辑接口上配置ip地址的,可以直接通过起svi,然后在svi上配置地址,将eth-trunk接口配置成trun,将相应的VLAN允许通过,很好的解决了... 查看详情

静态链路聚合方案

...各厂商静态链路聚合的基本配置方法【实验要求】通过在交换机上配置静态聚合,然后通过断开聚合组中的某条链路并观察网络连接是否中断。【实验设备】华三交换机一台、华为交换机一台、网线四根、pc两台、console线一根【... 查看详情

链路聚合的配置(学习笔记)

一、手动配置链路聚合拓扑图要求:通过手动配置交换机SW1和SW2的GE0/0/1、GE0/0/2端口来进行链路聚合。配置过程SW1的配置SW2的配置二、LACP配置链路聚合拓扑图要求:通过LACP配置交换机SW1和SW2的GE0/0/1、GE0/0/2端口来进行链... 查看详情

华为交换机链路聚合命令

配置链路聚合1、创建聚合组sysinterfaceeth-trunk22、配置聚合模式为手工模式interfaceeth-trunk2modemanualload-balance表示手工模式modelacp??lacp模式,可以自动检测链路是否错误;3、将接口成员加入聚合组interfaceeth-trunk2trunkportg1/0/1to1/0/3modeacti... 查看详情

快速生成树配置

...合配置实验目的:理解端口聚合的工作原理,掌握如何在交换机上配置端口聚合。实验原理:端口聚合(Aggregate-port)又称链路聚合,是指两台交换机之间在物理上将多个端口连接起来,将多条链路聚合成一条逻辑链路。从而增... 查看详情

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

...换到备份链路,保证数据的正常转发。端口聚合是指两台交换机之间在物理上把多个端口连接起来,将多条链路聚合成一条逻辑链路。从而增大链路带宽,解决交换网络中因带宽引 查看详情

华为-h3c交换机链路聚合配置--link-aggregation

1,链路聚合技术原理     Eth-Trunk(链路聚合技术)作为一种捆绑技术,可以把多个独立的物理接口绑定在一起作为一个大带宽的逻辑接口使用,这样既不用替换接口板也不会浪费IP地址资源。Eth-Trunk是一种将多个以太网接口... 查看详情

华为交换机lacp模式链路聚合配置(代码片段)

交换机A和交换机B之间通过3条GE以太网连接,活动链路为2,配置如下:SwitchA配置<HUAWEI>system-view[HUAWEI]sysnameSwitchA[SwitchA]interfaceeth-trunk1#创建Eth-Trunk1[SwitchA-Eth-Trunk1]modelacp#配置LACP模式[SwitchA-Eth-Trunk1]trunkportgi 查看详情

华为s5700系列交换机配置链路聚合lacp报错。

...该配置生效了。所以在这些trunk/access链路模式生效后,该交换机是不允许配置LACP的。由此就报了Error:Errorincha 查看详情

华三交换机配置静态链路聚合(代码片段)

拓扑如下:1.配置链路聚合SW1设备配置<H3C>system-view #进入系统视图[H3C]sysnamesw1 #将设备命名为sw1[sw1]interfacebridge-aggregation1 #创建静态链路聚合组1[sw1-Bridge-Aggregation1]portlink-typetrunk #将链路聚合组接口类型设置为trunk[sw1-Bridge-A... 查看详情

最最最常见的链路聚合irf堆叠配置(代码片段)

...录链路聚合IRF(堆叠)链路聚合定义:把链接到同一台交换机上的多个物理端口捆绑为一个逻辑端口功能:提高链路可靠性聚合组内只要还有物理端口存活,链路就不会中断增加链路传输带宽避免STP计算,聚合组内... 查看详情

华为交换机链路聚合使用ensp模拟器进行实验(代码片段)

...,提供负载分担的目的。二、华为ENSP模拟器仿真图华为交换机LSW1和LSW2端口G0/0/2、G0/0/3实现链路聚合,这2个交换机通过静态路由实现2个不同网段V10、V20互通。三、华为交换机配置S5700-LSW1交换机配置://批量创建VLAN,及VLAN的IP配... 查看详情

华为交换机链路聚合使用ensp模拟器进行实验(代码片段)

...,提供负载分担的目的。二、华为ENSP模拟器仿真图华为交换机LSW1和LSW2端口G0/0/2、G0/0/3实现链路聚合,这2个交换机通过静态路由实现2个不同网段V10、V20互通。三、华为交换机配置S5700-LSW1交换机配置://批量创建VLAN,及VLAN的IP配... 查看详情

二层链路聚合实验

...合的作用:1、扩容;2、为链路冗余提供可靠性。1、两台交换机,两四主机PC,左边PC3和右边PC5为VLAN10,左边PC4和右边PC6为为VLAN20进行测试。然后连线,接下来是交换机配置级联,用最大端口进行级联。2、接着给每台PC主机配置I... 查看详情