使用H3C irf虚拟堆叠技术对S6850交换机进行简单堆叠配置

使用irf虚拟技术对S6850交换机进行堆叠

科目:H3C交换机堆叠配置
目的:通过实验掌握H3C交换机堆叠技术
内容:

一.设备部署

    S6580三层交换机 主从 设备 各一台

二.配置步骤

步骤一:配置从设备

1.配置从设备的主机名(用于区分是否成功)

[H3C]sys SW2       #配置主机名

2.配置从设备的接口编号(renumber)

[SW2]irf member 1 renumber 2           # 配置从设备的接口编号
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y             #输入y回车

3.保存并重启(完成接口名的修改1/0/1变成2/0/1)

[SW2]sa                 #保存
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.   #保存

[SW2]qui
<SW2>reboot               #重启
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y       #输入y确认回车

<SW2>dis interface brief     #查看重启后结果

这里接口前一位会变成2
在这里插入图片描述

4.批量将2/0/50和2/0/51接口停止

[SW2]interface ran ten 2/0/50 to ten 2/0/51   #进入接口
[SW2-if-range]shutdown           #停止接口
[SW2-if-range]qui                 #退出接口

5.创建irf虚拟端口2/2并将50和51接口加入组

[SW2]irf-port 2/2                    #创建并进入虚拟端口
[SW2-irf-port2/2]port group interface ten 2/0/50      #将50接口加入组       
[SW2-irf-port2/2]port group interface ten 2/0/51   #将51接口加入组
[SW2-irf-port2/2]qui             #退出端口

6.批量开启接口状态

[SW2]int ran ten 2/0/50 to ten 2/0/51       #批量进入50和51接口
[SW2-if-range]undo shutdown                 #开启接口
[SW2-if-range]qui                           #退出

7.激活irf配置

[SW2]irf-port-configuration active          #激活irf配置

8.保存并关机断电

[SW2]sa       #保存
The current configuration will be written to the device. Are you sure? [Y/N]:y           #输入y确认回车
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):     #直接回车

Validating file. Please wait...
The startup.cfg file already exists.
Compared with the startup.cfg file, The current configuration adds 59 commands and deletes 58 commands.
If you want to see the configuration differences, please cancel this operation, and then use the display diff command to show the details.
If you continue the save operation, the file will be overwritten.
Are you sure you want to continue the save operation? [Y/N]:y              #输入y确认回车
Saving the current configuration to the file. Please wait...
Saved the current configuration to mainboard device successfully.   
步骤二:配置主设备

1.配置主机名

[H3C]sys SW1    #修改主机名

2.配置优先级

[SW1]irf member 1 priority 31    #修改优先级为31(越大越高)

3.批量停止接口

[SW1]int ran ten 1/0/50 to ten 1/0/51      #进入接口
[SW1-if-range]shutdown                     #关闭接口
[SW1-if-range]qui                          #退出

4.创建irf虚拟端口组将50和51接口加入组

[SW1]irf-port 1/1   #创建虚拟端口
[SW1-irf-port1/1]port group interface ten 1/0/50        #将50 接口加入组
[SW1-irf-port1/1]port group interface ten 1/0/51   #将51接口加入组
[SW1-irf-port1/1]qui      #退出

5.批量开启两个接口状态

[SW1]int ran ten 1/0/50 to ten 1/0/51      #批量进入接口
[SW1-if-range]undo shutdown                #开启接口
[SW1-if-range]qui                          #退出

6.激活irf配置

[SW1]irf-port-configuration active      #激活配置

7.保存并关机断电

[SW1]sa       #保存
The current configuration will be written to the device. Are you sure? [Y/N]:y           #输入y确认回车
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):     #直接回车

Validating file. Please wait...
The startup.cfg file already exists.
Compared with the startup.cfg file, The current configuration adds 59 commands and deletes 58 commands.
If you want to see the configuration differences, please cancel this operation, and then use the display diff command to show the details.
If you continue the save operation, the file will be overwritten.
Are you sure you want to continue the save operation? [Y/N]:y              #输入y确认回车
Saving the current configuration to the file. Please wait...
Saved the current configuration to mainboard device successfully.   
步骤三:连接堆叠互通线路并上电开机

1.使用交叉方式将两个设备接口互联50-51/51-50
在这里插入图片描述
2.两台设备加电开机

步骤四:查看状态是否成功

1.查看接口状态是否UP

<SW1>display interface Ten-GigabitEthernet brief    #查看万兆口状态

在这里插入图片描述

2.查看irf状态是否有主从

<SW1>dis irf             #查看irf状态

SW1
在这里插入图片描述
SW2
在这里插入图片描述

3.查看主机名是否一致,接口基本信息是否两台全部显示全面,

<SW1>dis int b     #查看接口基本信息

SW1
在这里插入图片描述

SW2
在这里插入图片描述
以上练习配置完毕,新手上路,不足之处请多指教!点赞收藏!转发!感谢!

猜你喜欢

转载自blog.csdn.net/m0_50970375/article/details/129656723