H3C S5800实现IRF功能详细配置过程
一、网络说明:
基于BFD MAD检测的IRF虚拟化实际操作配置,两台H3C_S5800交换机接口物理连接拓扑图如下图所示:
两台交换机的两对万兆接口Ten-GigabitEthernet1/0/27和Ten-GigabitEthernet1/0/28作为IRF堆叠接口,千兆的GigabitEthernet1/0/24接口作为BFD MAD检测连接心跳线。
二、交换机的配置: 1、第一台交换机的配置:
[H3C_S5800_1] irf member 1 renumber 1
Warning: Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]y // 系统有提示,不用管它,输入y继续配置
[H3C_S5800_1] irf member 1 priority 32 // 修改IRF 优先级,越大越是Master [H3C_S5800_1] irf auto-update enable // 使能IRF 系统启动文件的自动加载功能 [H3C_S5800_1] int Ten-GigabitEthernet1/0/27 [H3C_S5800_1- Ten-GigabitEthernet1/0/27] shutdown //需要先提前关闭物理口,IRF 逻辑口要绑定物理口
[H3C_S5800_1- Ten-GigabitEthernet1/0/27]quit [H3C_S5800_1] int Ten-GigabitEthernet1/0/28
[H3C_S5800_1- Ten-GigabitEthernet1/0/28] shutdown
[H3C_S5800_1 ] irf-port 1/2 //创建逻辑接口,注意对应。 [H3C_S5800_1- irf-port 1/2] port group interface Ten-GigabitEthernet1/0/27 mode enhanced
Info: You are recommended to save the configuration after completing your IRF configuration; otherwise, // 系统有提示,不用管它 [H3C_S5800_1- irf-port 1/2] port group interface Ten-GigabitEthernet1/0/28 mode enhanced
[H3C_S5800_1- irf-port 1/2]quit
[H3C_S5800_1] int Ten-GigabitEthernet1/0/27
[H3C_S5800_1- Ten-GigabitEthernet1/0/27] undo shutdown [H3C_S5800_1- Ten-GigabitEthernet1/0/27] quit [H3C_S5800_1] int Ten-GigabitEthernet1/0/28
[H3C_S5800_1- Ten-GigabitEthernet1/0/28] undo shutdown [H3C_S5800_1- Ten-GigabitEthernet1/0/28] quit
[H3C_S5800_1] save // 保存,不然执行下步,设备会自动重启。
The current configuration will be written to the device. Are you sure? [Y/N]:y Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the enter key): Validating file. Please wait....
The current configuration is saved to the active main board successfully. Configuration is saved to device successfully. [H3C_S5800_1]quit
Start to check configuration with next startup configuration file, please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y #Apr 26 12:24:09:066 2000 H3C_S5800_1 DEVM/1/REBOOT: Reboot device by command. %Apr 26 12:24:09:156 2000 H3C_S5800_1 DEVM/5/SYSTEM_REBOOT: System is rebooting now.
Starting......
Press Ctrl+D to access BASIC BOOT MENU Press Ctrl+T to start heavy memory test
********************************************************************************
* *
* H3C S5800-32C BOOTROM, Version 220 *
* *
********************************************************************************
Copyright (c) 2004-2012 Hangzhou H3C Technologies Co., Ltd.
Creation Date : Dec 20 2012,15:36:45 CPU Clock Speed : 750MHz Memory Size : 1024MB Flash Size : 512MB CPLD Version : 003 PCB Version : Ver.B
Mac Address : 70BAEF5D1E34
Press Ctrl-B to enter Extended Boot menu...0 Starting to get the main application
file--flash:/S5800_5820X-CMW520-R1808P12.bin!...................................
................................................................................
................................................................................
............................................. The main application file is
self-decompressing.................................
................................................................................
................................................................................
....................................Done! The application file is
self-decompressing......................................
................................................................................
Done!
System is starting...
User interface aux0 is available.
Press ENTER to get started.
[H3C_S5800_1] irf-port-configuration active // 用于来激活设备上所有IRF 端口下的配置。
2、第二台交换机的配置:
[H3C_S5800_2]irf member 1 renumber 2
Warning: Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]y
[H3C_S5800_2]irf member 2 priority 12 // 优先级没有第一台的高,所以IRF形成之后,第一台将是主的交换机
[H3C_S5800_2] irf auto-update enable // 使能IRF 系统启动文件的自动加载功能 [H3C_S5800_2] int Ten-GigabitEthernet1/0/27
[H3C_S5800_2- Ten-GigabitEthernet1/0/27] shutdown [H3C_S5800_2- Ten-GigabitEthernet1/0/27]quit [H3C_S5800_2] int Ten-GigabitEthernet1/0/28
[H3C_S5800_2- Ten-GigabitEthernet1/0/28] shutdown [H3C_S5800_2- Ten-GigabitEthernet1/0/28]quit [H3C_S5800_2] irf-port 2/1
[H3C_S5800_2-irf-port2/1] port group interface Ten-GigabitEthernet1/0/27 mode enhanced
Info: You are recommended to save the configuration after completing your IRF configuration; otherwise, it may be lost after system reboot.// 提示消息
[H3C_S5800_2-irf-port2/1] port group interface Ten-GigabitEthernet1/0/28 mode enhanced
[H3C_S5800_2-irf-port2/1]quit
[H3C_S5800_2] int Ten-GigabitEthernet1/0/27
[H3C_S5800_2- Ten-GigabitEthernet1/0/27] undo shutdown [H3C_S5800_2- Ten-GigabitEthernet1/0/27]quit [H3C_S5800_2] int Ten-GigabitEthernet1/0/28
[H3C_S5800_2- Ten-GigabitEthernet1/0/28]undo shutdown [H3C_S5800_2- Ten-GigabitEthernet1/0/28]quit [H3C_S5800_2]save
[H3C_S5800_2]irf-port-configuration active [H3C_S5800_2]quit
(IRF常用的命令:
display irf 命令用来显示本IRF 的相关信息(本IRF 是指用户当前正在操作的设备所在IRF).此命令会显示已经加入IRF 或正在加入IRF 的设备信息,但不会显示没有加入IRF 或者其它IRF 中的设备的信息。
display irf configuration 命令用来显示本IRF 中所有设备的预配置信息。预配置是指需要重启以后才能生效的配置,该命令显示的预配置信息包括:成员编号、优先级、IRF 端口状态和端口组成信息。
display irf topology 命令用来查看本IRF 的拓扑信息。此命令看到的信息包括了当前设备
感知到的所有拓扑信息。
)
三、BFD MAD检测的配置:
IRF形成之后,两台交换机的名称将变为主交换机的名称[H3C_S5800_1],创建VLAN 4094,并且把两台交换机的GigabitEthernet1/0/24和GigabitEthernet2/0/24两个接口加入到VLAN中;
[H3C_S5800_1] vlan 4094
[H3C_S5800_1-vlan 4094]description BFD MAD
[H3C_S5800_1-vlan 4094] port GigabitEthernet1/0/24 GigabitEthernet2/0/24 [H3C_S5800_1-vlan 4094]quit
[H3C_S5800_1] interface vlan-interface 4094 [H3C_S5800_1-vlan-intface 4094] mad bfd enable
[H3C_S5800_1-vlan-intface 4094] mad ip address 2.2.2.1 24 member 1 [H3C_S5800_1-vlan-intface 4094] mad ip address 2.2.2.2 24 member 2 [H3C_S5800_1-vlan-intface 4094]quit
[H3C_S5800_1] interface GigabitEthernet1/0/24
[H3C_S5800_1-GigabitEthernet1/0/24]undo stp enable //IRF和STP相冲突的,所以必须接口上关闭STP
[H3C_S5800_1-GigabitEthernet1/0/24]quit
[H3C_S5800_1] interface GigabitEthernet2/0/24
[H3C_S5800_1-GigabitEthernet2/0/24]undo stp enable [H3C_S5800_1-GigabitEthernet2/0/24]quit [H3C_S5800_1]save