H3C HCL 堆叠 链路聚合项目模拟

2023-11-11 08:40

本文主要是介绍H3C HCL 堆叠 链路聚合项目模拟,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

项目要求,不同的IRF中的同一vlan可以相互访问
设计堆叠和链路聚合

图中有13个设备,1-6 是交换机,7-13是PC机,
目的:13号设备可以访问10号设备具体如下
#####组网图,按下图连线组网
这里写图片描述

配置用户(HCL不用看,这是线下配机器用的)

H3C V7 创建web登录账户的命令如下:

sys
ip http enable
local-user admin class manage
password simple admin
service-type http
authorization-attribute user-role network-admin

s=设置管理ip,vlan 1010 port fourty 1/0/48
system-view
[Sysname] interface vlan-interface 1010
[Sysname-VLAN-interface1] ip address 10.129.1.20 255.255.255.0
[Sysname-VLAN-interface1] quit

5130有四个堆叠光口,但是是分组的,49/50一组。51,52一组

hcl操作

1. 左边管理交换机
划分member,优先级
交换机1和2使用双线40g光口堆叠,并划分vlan 100 300
设置链路聚合端口 1 ,并涵盖1/0/1 2/0/1 端口
vlan 100 : 2/0/3 , vlan 300 :1/0/2 2/0/2
设置 pc13 /192.168.1.13 /vlan 100
pc11 /192,168.3.11 /vlan 300
pc12 /192.168.3.12 /vlan 300
2. 右边业务交换机
划分member,优先级
交换机3-6 ,使用单线40g光口堆叠,并划分vlan 100 200
设置链路聚合口 3/0/1 5/0/1 ,trunk permit all vlan
vlan 100 :3/0/2 4/0/2 ;vlan 200 :5/0/2 6/0/2
设置pc7 :192.168.2.7 , pc8 :192.168.2.8
pc9:192.168.1.9 ,pc10:192.168.1.10

一 左边 1和2 号交换机堆叠
1号交换机

<H3C>sys
[H3C]irf member 1 priority 10
[H3C]interface FortyGigE 1/0/53
[H3C-FortyGigE1/0/53]shutdown
[H3C-FortyGigE1/0/53]interface FortyGigE 1/0/54
[H3C-FortyGigE1/0/54]shutdown
[H3C-FortyGigE1/0/54]quit
[H3C]irf-port 1/2
[H3C-irf-port1/2]port group interface FortyGigE 1/0/53
[H3C-irf-port1/2]port group interface FortyGigE 1/0/54
[H3C-irf-port1/2]quit
[H3C]interface FortyGigE 1/0/53
[H3C-FortyGigE1/0/53]undo shutdown
[H3C-FortyGigE1/0/53]interface FortyGigE 1/0/54
[H3C-FortyGigE1/0/54]undo shutdown
[H3C-FortyGigE1/0/54]quit
[H3C]save
[H3C]irf-port-configuration active
[H3C]dis irf
MemberID    Role    Priority  CPU-Mac         Description*+1        Master  10        2ecd-6f6b-0104  ---
--------------------------------------* indicates the device is the master.+ indicates the device through which the user logs in.

2号交换机

<H3C>sys
[H3C]irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[H3C]quit
<H3C>reboot
Press ENTER to get started.
<H3C>sys
[H3C]display irf
MemberID    Role    Priority  CPU-Mac         Description*+2        Master  1         28be-3dcf-0204  ---
--------------------------------------------------* indicates the device is the master.+ indicates the device through which the user logs in
[H3C]interface FortyGigE 2/0/53
[H3C-FortyGigE2/0/53]shutdown
[H3C-FortyGigE2/0/53]interface FortyGigE 2/0/54
[H3C-FortyGigE2/0/54]shutdown
[H3C-FortyGigE2/0/54]quit
[H3C]irf-port 2/1
[H3C-irf-port2/1]port group interface FortyGigE 2/0/53
[H3C-irf-port2/1]port group interface FortyGigE 2/0/54
[H3C-irf-port2/1]quit
[H3C]interface FortyGigE 2/0/53
[H3C-FortyGigE2/0/53]undo shutdown
[H3C-FortyGigE2/0/53]interface FortyGigE 2/0/54
[H3C-FortyGigE2/0/54]undo shutdown
[H3C-FortyGigE2/0/54]quit
[H3C]save
[H3C]irf-port-configuration active
[H3C]dis irf
MemberID    Role    Priority  CPU-Mac         Description*+2        Master  1         28be-3dcf-0204  ---
--------------------------------------------------* indicates the device is the master.+ indicates the device through which the user logs in

设置好之后,进入1号交换机查询堆叠结果。

[H3C]dis irf link
Member 1IRF Port  Interface                             Status1         disable                               --2         FortyGigE1/0/53                       UPFortyGigE1/0/54                       UP
Member 2IRF Port  Interface                             Status1         FortyGigE2/0/53                       UPFortyGigE2/0/54                       UP2         disable                               --

二 右边3 4 5 6 四个交换机堆叠
先把四个交换机的member priority 改了 重启
交换机3 设置优先级最高 10

<H3C>sys
[H3C]irf member 1 renumber 3
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[H3C]quit
<H3C>reboot
Press ENTER to get started.
<H3C>sys
[H3C]irf member 1 priority 10
[H3C]interface FortyGigE 3/0/53
[H3C-FortyGigE3/0/53]shutdown
[H3C-FortyGigE3/0/53]interface FortyGigE 3/0/54
[H3C-FortyGigE3/0/54]shutdown
[H3C-FortyGigE3/0/54]quit
[H3C]irf-port 3/1
[H3C-irf-port3/1]port group interface FortyGigE 3/0/53
[H3C-irf-port3/1]quit
[H3C]irf-port3/2
[H3C-irf-port3/2]port group interface FortyGigE 3/0/54
[H3C-irf-port3/2]quit
[H3C]interface FortyGigE 3/0/53
[H3C-FortyGigE3/0/53]undo shutdown
[H3C-FortyGigE3/0/53]interface FortyGigE 3/0/54
[H3C-FortyGigE3/0/54]undo shutdown
[H3C-FortyGigE3/0/54]quit
[H3C]save
[H3C]irf-port-configuration active

4 5 6 三个交换机和3号设置一样,需要修改member 为 4 5 6 ,优先级不设置,四个全部设置好后,随便登录一个交换机查证

[H3C]dis irf
MemberID    Role    Priority  CPU-Mac         Description*+3        Master  10        2ecd-834f-0304  ---4        Standby 1         2ecd-889c-0404  ---5        Standby 1         2ecd-8ed5-0504  ---6        Standby 1         2ecd-9264-0604  ---
--------------------------------------------------* indicates the device is the master.+ indicates the device through which the user logs in.The bridge MAC of the IRF is: 2ecd-834f-0300Auto upgrade                : yesMac persistent              : 6 minDomain ID                   : 0

三 ,堆叠完成后,测试同一IRF中的vlan划分,先把PC 设备 7 8 9 10 11 12 按图中部署好
1. 左边
划分vlan 100 300
vlan 100 : 2/0/3 , vlan 300 :1/0/2 2/0/2
设置 pc13 /192.168.1.13 /vlan 100
pc11 /192,168.3.11 /vlan 300
pc12 /192.168.3.12 /vlan 300

启动交换机1终端

sys
System View: return to User View with Ctrl+Z.
[H3C]vlan 100
[H3C-vlan100]port GigabitEthernet 2/0/3
[H3C-vlan100]quit
[H3C]vlan 300
[H3C-vlan300]port GigabitEthernet 1/0/2
[H3C-vlan300]port GigabitEthernet 2/0/2
[H3C-vlan300]quit
[H3C]save
设置好后,使用PC机11终端就可以和12终端通信了,没有分配vlan之前是不可以的。

2. 右边
堆叠后,进入任意一个交换机终端,并划分vlan 100 200
vlan 100 :3/0/2 4/0/2 ;vlan 200 :5/0/2 6/0/2
设置pc7 :192.168.2.7 , pc8 :192.168.2.8
pc9:192.168.1.9 ,pc10:192.168.1.10

<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]vlan 100
[H3C-vlan100]port GigabitEthernet 3/0/2
[H3C-vlan100]port GigabitEthernet 4/0/2
[H3C-vlan100]quit
[H3C]vlan 200
[H3C-vlan200]port GigabitEthernet 5/0/2
[H3C-vlan200]port GigabitEthernet 6/0/2
[H3C-vlan200]quit
[H3C]save

经过配置vlan之后,同一irf 内的同一网段之间的设备可以相互通讯了,但是13 号设备 虽然和10 9 设备在同一网段,是不能通讯的,已验证,要想可以通讯,必须对俩个irf之间进行链路聚合,对端口实行trunk,并允许相应的vlan报文通过。

四 对俩边的irf进行链路聚合,使得俩个irf可以相互通讯
链路聚合物理端口为1/0/1 2/0/1 3/0/1 5/0/1
先进入交换机1终端

[H3C]dis irf
MemberID    Role    Priority  CPU-Mac         Description*+1        Master  10        2ecd-6f6b-0104  ---2        Standby 1         2ecd-7a5b-0204  ---
--------------------------------------------------
<H3C>sys
[H3C]interface Bridge-Aggregation 1
[H3C-Bridge-Aggregation1]quit
[H3C]interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1]port link-aggregation group 1
[H3C-GigabitEthernet1/0/1]quit
[H3C]interface GigabitEthernet 2/0/1
[H3C-GigabitEthernet2/0/1]port link-aggregation group 1
[H3C-GigabitEthernet2/0/1]quit
[H3C]interface Bridge-Aggregation 1
[H3C-Bridge-Aggregation1]port link-type trunkConfiguring GigabitEthernet1/0/1 done.Configuring GigabitEthernet2/0/1 done.
[H3C-Bridge-Aggregation1]port trunk permit vlan 100 200 300Configuring GigabitEthernet1/0/1 done.Configuring GigabitEthernet2/0/1 done.
[H3C-Bridge-Aggregation1]quit
[H3C]save

先进入交换机3终端

<H3C>sys
[H3C]interface Bridge-Aggregation 1
[H3C-Bridge-Aggregation1]port link-type trunk
[H3C-Bridge-Aggregation1]port trunk permit vlan 100 200 300
[H3C-Bridge-Aggregation1]quit
[H3C]interface GigabitEthernet 3/0/1
[H3C-GigabitEthernet3/0/1]port link-aggregation group 1
[H3C-GigabitEthernet3/0/1]quit
[H3C]interface GigabitEthernet 5/0/1
[H3C-GigabitEthernet5/0/1]port link-aggregation group 1
[H3C-GigabitEthernet5/0/1]quit
[H3C]display link-aggregation summary
[H3C]save

设置好之后,设备13 就可以 和设备10 通讯了 ,
HCL界面有CMD 命令查找功能,很详细

[H3C]display link-aggregation verbose Bridge-Aggregation 1

GE1/0/1 S 32768 1
GE2/0/1 S 32768 1

这篇关于H3C HCL 堆叠 链路聚合项目模拟的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/388876

相关文章

深度解析Java项目中包和包之间的联系

《深度解析Java项目中包和包之间的联系》文章浏览阅读850次,点赞13次,收藏8次。本文详细介绍了Java分层架构中的几个关键包:DTO、Controller、Service和Mapper。_jav... 目录前言一、各大包1.DTO1.1、DTO的核心用途1.2. DTO与实体类(Entity)的区别1

MySQL count()聚合函数详解

《MySQLcount()聚合函数详解》MySQL中的COUNT()函数,它是SQL中最常用的聚合函数之一,用于计算表中符合特定条件的行数,本文给大家介绍MySQLcount()聚合函数,感兴趣的朋... 目录核心功能语法形式重要特性与行为如何选择使用哪种形式?总结深入剖析一下 mysql 中的 COUNT

使用Python绘制3D堆叠条形图全解析

《使用Python绘制3D堆叠条形图全解析》在数据可视化的工具箱里,3D图表总能带来眼前一亮的效果,本文就来和大家聊聊如何使用Python实现绘制3D堆叠条形图,感兴趣的小伙伴可以了解下... 目录为什么选择 3D 堆叠条形图代码实现:从数据到 3D 世界的搭建核心代码逐行解析细节优化应用场景:3D 堆叠图

如何在Spring Boot项目中集成MQTT协议

《如何在SpringBoot项目中集成MQTT协议》本文介绍在SpringBoot中集成MQTT的步骤,包括安装Broker、添加EclipsePaho依赖、配置连接参数、实现消息发布订阅、测试接口... 目录1. 准备工作2. 引入依赖3. 配置MQTT连接4. 创建MQTT配置类5. 实现消息发布与订阅

springboot项目打jar制作成镜像并指定配置文件位置方式

《springboot项目打jar制作成镜像并指定配置文件位置方式》:本文主要介绍springboot项目打jar制作成镜像并指定配置文件位置方式,具有很好的参考价值,希望对大家有所帮助,如有错误... 目录一、上传jar到服务器二、编写dockerfile三、新建对应配置文件所存放的数据卷目录四、将配置文

怎么用idea创建一个SpringBoot项目

《怎么用idea创建一个SpringBoot项目》本文介绍了在IDEA中创建SpringBoot项目的步骤,包括环境准备(JDK1.8+、Maven3.2.5+)、使用SpringInitializr... 目录如何在idea中创建一个SpringBoot项目环境准备1.1打开IDEA,点击New新建一个项

springboot项目中整合高德地图的实践

《springboot项目中整合高德地图的实践》:本文主要介绍springboot项目中整合高德地图的实践,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一:高德开放平台的使用二:创建数据库(我是用的是mysql)三:Springboot所需的依赖(根据你的需求再

一文详解如何在idea中快速搭建一个Spring Boot项目

《一文详解如何在idea中快速搭建一个SpringBoot项目》IntelliJIDEA作为Java开发者的‌首选IDE‌,深度集成SpringBoot支持,可一键生成项目骨架、智能配置依赖,这篇文... 目录前言1、创建项目名称2、勾选需要的依赖3、在setting中检查maven4、编写数据源5、开启热

SpringBoot项目配置logback-spring.xml屏蔽特定路径的日志

《SpringBoot项目配置logback-spring.xml屏蔽特定路径的日志》在SpringBoot项目中,使用logback-spring.xml配置屏蔽特定路径的日志有两种常用方式,文中的... 目录方案一:基础配置(直接关闭目标路径日志)方案二:结合 Spring Profile 按环境屏蔽关

MySQL版本问题导致项目无法启动问题的解决方案

《MySQL版本问题导致项目无法启动问题的解决方案》本文记录了一次因MySQL版本不一致导致项目启动失败的经历,详细解析了连接错误的原因,并提供了两种解决方案:调整连接字符串禁用SSL或统一MySQL... 目录本地项目启动报错报错原因:解决方案第一个:第二种:容器启动mysql的坑两种修改时区的方法:本地