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

相关文章

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的坑两种修改时区的方法:本地

springboot项目中使用JOSN解析库的方法

《springboot项目中使用JOSN解析库的方法》JSON,全程是JavaScriptObjectNotation,是一种轻量级的数据交换格式,本文给大家介绍springboot项目中使用JOSN... 目录一、jsON解析简介二、Spring Boot项目中使用JSON解析1、pom.XML文件引入依

使用vscode搭建pywebview集成vue项目实践

《使用vscode搭建pywebview集成vue项目实践》:本文主要介绍使用vscode搭建pywebview集成vue项目实践,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地... 目录环境准备项目源码下载项目说明调试与生成可执行文件核心代码说明总结本节我们使用pythonpywebv

Maven项目中集成数据库文档生成工具的操作步骤

《Maven项目中集成数据库文档生成工具的操作步骤》在Maven项目中,可以通过集成数据库文档生成工具来自动生成数据库文档,本文为大家整理了使用screw-maven-plugin(推荐)的完... 目录1. 添加插件配置到 pom.XML2. 配置数据库信息3. 执行生成命令4. 高级配置选项5. 注意事

eclipse如何运行springboot项目

《eclipse如何运行springboot项目》:本文主要介绍eclipse如何运行springboot项目问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目js录当在eclipse启动spring boot项目时出现问题解决办法1.通过cmd命令行2.在ecl

Python使用pynput模拟实现键盘自动输入工具

《Python使用pynput模拟实现键盘自动输入工具》在日常办公和软件开发中,我们经常需要处理大量重复的文本输入工作,所以本文就来和大家介绍一款使用Python的PyQt5库结合pynput键盘控制... 目录概述:当自动化遇上可视化功能全景图核心功能矩阵技术栈深度效果展示使用教程四步操作指南核心代码解析

SpringBoot项目Web拦截器使用的多种方式

《SpringBoot项目Web拦截器使用的多种方式》在SpringBoot应用中,Web拦截器(Interceptor)是一种用于在请求处理的不同阶段执行自定义逻辑的机制,下面给大家介绍Sprin... 目录一、实现 HandlerInterceptor 接口1、创建HandlerInterceptor实