• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

交换机堆叠的命令是什么?

2021-11-18提问
  • 0关注
  • 1收藏,1186浏览
粉丝:0人 关注:0人

问题描述:

交换机堆叠的命令是什么?

组网及组网描述:


最佳答案

已采纳
粉丝:31人 关注:0人


V7交换机IRF2堆叠配置方法(命令行版)

 

目录

V7交换机IRF2堆叠配置方法(命令行版) 1

1 配置需求或说明 1

1.1 适用产品系列 1

1.2 配置需求及实现的效果 1

2 组网图 2

3 配置步骤 2

3.1 配置IRF2 2

3.1.1 配置设备编号 2

3.1.2 配置堆叠口 2

3.2 BFD分裂检测(选配) 3

3.3 配置要点 4

 

1 配置需求或说明

1.1 适用产品系列

本案例适用于支持IRF2款型的V7交换机,具体型号是否支持,对堆叠的物理连线、模块是否有要求可以参考对应型号交换机操作手册中的IRF配置指导。在此以S5820V2交换机举例。

1.2 配置需求及实现效果

由于网络规模迅速扩大,当前中心交换机(Device A)转发能力已经不能满足需求,需要另外增加一台设备Device B。现需要将两台设备配置IRF2堆叠,将网络转发能力提高一倍,并实现网络易管理、易维护。Device ADevice B分别使用自带的两个万兆口做堆叠口。也可以只用一个接口堆叠,根据实际情况而定。

2 组网图

 

3 配置步骤

3.1 配置IRF2

3.1.1 配置设备编号

# Device A保留缺省编号为1,不需要进行配置。同时,Device B上将设备的成员编号修改为2

<DeviceB> system-view

[DeviceB] irf member 1 renumber 2

Warning: Renumbering the switch number may result in configuration change or loss. Continue? [Y/N]:y

[DeviceB]

3.1.2 配置堆叠口

#将两台设备断电后,按组网图所示连接IRF链路,然后将两台设备上电Device A上创建设备的IRF端口2,与物理端口Ten-GigabitEthernet1/0/25 Ten-GigabitEthernet1/0/26绑定,并保存配置。

<DeviceA> system-view

[DeviceA] interface ten-gigabitethernet 1/0/25

[DeviceA-Ten-GigabitEthernet1/0/25] shutdown

[DeviceA-Ten-GigabitEthernet1/0/25] quit
[DeviceA] interface ten-gigabitethernet 1/0/26

[DeviceA-Ten-GigabitEthernet1/0/26] shutdown

[DeviceA-Ten-GigabitEthernet1/0/26] quit

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface ten-gigabitethernet1/0/25

[DeviceA-irf-port1/2] port group interface ten-gigabitethernet1/0/26

[DeviceA-irf-port1/2] quit

[DeviceA] interface ten-gigabitethernet 1/0/25

[DeviceA-Ten-GigabitEthernet1/0/25] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/25quit

[DeviceA] interface ten-gigabitethernet 1/0/26

[DeviceA-Ten-GigabitEthernet1/0/26] undo shutdown

[DeviceA-Ten-GigabitEthernet1/0/26quit

[DeviceA] save force

Device B上创建设备的IRF端口1,与物理端口Ten-GigabitEthernet2/0/25Ten-GigabitEthernet2/0/26绑定,并保存配置。

<DeviceB> system-view

[DeviceB] interface ten-gigabitethernet 2/0/25

[DeviceB-Ten-GigabitEthernet2/0/25] shutdown

[DeviceB-Ten-GigabitEthernet2/0/25] quit

[DeviceB] interface ten-gigabitethernet 2/0/26

[DeviceB-Ten-GigabitEthernet2/0/26] shutdown

[DeviceB-Ten-GigabitEthernet2/0/26] quit

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface ten-gigabitethernet2/0/25

[DeviceB-irf-port2/1] port group interface ten-gigabitethernet2/0/26

[DeviceB-irf-port2/1] quit

[DeviceB] interface ten-gigabitethernet 2/0/25

[DeviceB-Ten-GigabitEthernet2/0/25] undo shutdown

[DeviceB-Ten-GigabitEthernet2/0/25quit

[DeviceB] interface ten-gigabitethernet 2/0/26

[DeviceB-Ten-GigabitEthernet2/0/26] undo shutdown

[DeviceB-Ten-GigabitEthernet2/0/26quit

[DeviceB] save force

激活DeviceAIRF端口配置。

[DeviceA] irf-port-configuration active

激活DeviceBIRF端口配置。

[DeviceB] irf-port-configuration active

#两台设备间将会进行Master竞选,竞选失败的一方将自动重启,重启完成后,IRF形成,系统名称统一为DeviceA

3.2 BFD分裂检测(选配)

IRF设备一旦分裂,会变成两台配置完全相同的设备,导致业务转发有问题。为了避免此类问题出现,可以配置分裂检测。设备一旦检测到IRF2分裂,则自动关闭备设备的所有非保留端口。在此介绍BFD MAD分裂检测配置方法。使用网线Device A上的端口GigabitEthernet1/0/1Device B上的端口GigabitEthernet2/0/1连接起来。

创建VLAN 3,并将Device A上的端口GigabitEthernet1/0/1Device B上的端口GigabitEthernet2/0/1加入VLAN中。

<DeviceA> system-view

[DeviceA] vlan 3

[DeviceA-vlan3] port gigabitethernet 1/0/1 gigabitethernet 2/0/1

[DeviceA-vlan3] quit

创建VLAN接口3,并配置MAD IP地址。

[DeviceA] interface vlan-interface 3

[DeviceA-Vlan-interface3] mad bfd enable

[DeviceA-Vlan-interface3] mad ip address 192.168.2.1 24 member 1

[DeviceA-Vlan-interface3] mad ip address 192.168.2.2 24 member 2

[DeviceA-Vlan-interface3] quit

按组网图所示连接BFD MAD链路。

因为BFD MAD和生成树功能互斥,所以在GigabitEthernet1/0/1GigabitEthernet2/0/1上关闭生成树协议。

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-Gigabitethernet1/0/1] undo stp enable

[DeviceA-Gigabitethernet1/0/1] quit

[DeviceA] interface gigabitethernet 2/0/1

[DeviceA-Gigabitethernet2/0/1] undo stp enable

 

3.3 配置要点

1IRF-port端口编号说明,irf-port 1/2中,第一个数字代表的是设备成员编号,第二个数字是接口编号。堆叠要求使用逻辑端口1对接逻辑端口2。即,如若第一台配置irf-port1/2,则第二台需要是用irf-port2/1对接。如若第一台使用irf-port1/1,则第二台需要配置irf-port2/2

2)设备配置好IRF2配置后,要先保存再激活配置。

暂无评论

1 个回答
beibei 六段
粉丝:1人 关注:1人

1.9.2 IRF典型配置举例(BFD MAD检测方式)
1. 组网需求
如图1-16所示,配置Device A和Device B组成IRF设备,接入层设备通过聚合双链路上行。因为成员设备比较少,我们配置BFD MAD进行分裂检测。

2. 组网图
图1-16 IRF典型配置组网图(BFD MAD检测方式)

 



3. 配置步骤
说明

缺省情况下,本设备的接口处于ADM(Administratively Down)状态,请根据实际需要在对应接口视图下使用undo shutdown命令开启接口。

 

(1) 配置Device A

# 设置Device A的成员编号为1,创建IRF端口2,并将它与物理端口FortyGigE2/0/1和FortyGigE3/0/1绑定。

<Sysname> system-view

[Sysname] irf member 1

[Sysname] irf-port 2

[Sysname-irf-port2] port group interface fortygige 2/0/1

[Sysname-irf-port2] port group interface fortygige 3/0/1

[Sysname-irf-port2] quit

# 将当前配置保存到下次启动配置文件。

[Sysname] quit

<Sysname> save

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot.

You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

Now rebooting, please wait...

设备重启后Device A组成了只有一台成员设备的IRF。

(2) 配置Device B

# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口FortyGigE2/0/1和FortyGigE3/0/1绑定。

<Sysname> system-view

[Sysname] irf member 2

[Sysname] irf-port 1

[Sysname-irf-port1] port group interface fortygige 2/0/1

[Sysname-irf-port1] port group interface fortygige 3/0/1

[Sysname-irf-port1] quit

# 将当前配置保存到下次启动配置文件。

[Sysname] quit

<Sysname> save

# 参照图1-16进行物理连线。

# 将设备的运行模式切换到IRF模式。

<Sysname> system-view

[Sysname] chassis convert mode irf

The device will switch to IRF mode and reboot.

You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y

Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y

Now rebooting, please wait...

设备B重启后与设备A形成IRF。

(3) 配置BFD MAD检测

# 创建VLAN 3,并将Device A(成员编号为1)上的端口FortyGigE1/2/0/2和Device B(成员编号为2)上的端口FortyGigE2/2/0/2加入VLAN中。

<Sysname> system-view

[Sysname] vlan 3

[Sysname-vlan3] port fortygige 1/2/0/2 fortygige 2/2/0/2

[Sysname-vlan3] quit

# 创建VLAN接口3,并配置MAD IP地址。

[Sysname] interface vlan-interface 3

[Sysname-Vlan-interface3] mad bfd enable

[Sysname-Vlan-interface3] mad ip address 192.168.2.1 24 member 1

[Sysname-Vlan-interface3] mad ip address 192.168.2.2 24 member 2

[Sysname-Vlan-interface3] quit

# 因为BFD MAD和生成树功能互斥,所以在FortyGigE1/2/0/2和FortyGigE2/2/0/2上关闭生成树协议。

[Sysname] interface fortygige 1/2/0/2

[Sysname-FortyGigE1/2/0/2] undo stp enable

[Sysname-FortyGigE1/2/0/2] quit

[Sysname] interface fortygige 2/2/0/2

[Sysname-FortyGigE2/2/0/2] undo st

暂无评论

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明