H3C 6805 Switch IRF Config Example
1 背景
分布式存储业务上架2台H3C 6805交换机
2台6805 switch need to config IRF
Model : S6805-54HF
2 IRF config
配置步骤如下
- 第1台指定优先级,范围1-32,越大越优,本次我们配置为10
- 将IRF port的2个物理接口shutdown,不然不让加入irf-port
- 创建irf port,将2个物理口加入
- 2个物理口打开
- 激活IRF配置,并保存配置
- 第2台修改编号,默认为1,需要重启交换机
- 第2台指定优先级,本次我们配置为1
- 将IRF port的物理接口shutdown,不然不让加入irf-port
- 创建irf port,将物理口加入 激活IRF配置,并保存配置
- 2个物理口打开 这时交换机会检测到对端,第2台(优先级低的)会自动重启
- 重启完成后,IRF完成
- 配置mad双主检测
2 以下为具体配置步骤及命令
2.1 第1台6805
2.1.1 指定优先级
bash
irf member 1 priority 10
2.1.2 将需要加入irf-port的端口关闭
bash
Interface range Hundred 1/0/27 to hundred 1/0/28
Shutdown
2.1.3 创建1个irf虚拟接口
bash
irf-port 1/1
Port group interface hundred 1/0/27
Port group interface hundred 1/0/28
Quit
2.1.4 激活irf配置,并保存
bash
irf-port-configuration active
save force
2.1.5 打开物理接口
bash
Interface range Hundred 1/0/27 to hundred 1/0/28
undo shutdown
把irf port的物理连线接好
2.2 第2台6805
2.2.1 修改设备编号
默认为1,修改为2, 修改后需要重启交换机生效
bash
<H3C-2> system-view
[H3C-2] irf member 1 renumber 2
Warning: Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[H3C-2] quit
<H3C-2> reboot
2.2.2 重启完成后指定优先级
bash
irf member 2 priority 1
2.2.3 将需要加入irf-port的端口关闭
bash
Interface range Hundred 2/0/27 to hundred 2/0/28
Shutdown
2.2.4 创建1个irf虚拟接口
第2台不能使用1/1, 要使用2/2
bash
Irf-port 2/2
Port group interface hundred 2/0/27
Port group interface hundred 2/0/28
Quit
2.2.5 激活irf配置,并保存
bash
irf-port-configuration active
save force
2.2.6 打开物理接口
bash
Interface range Hundred 2/0/27 to hundred 2/0/28
undo shutdown
这时第2台会检测到第1台设备,因为第2台的priority低,所以会重启。
3 重启后确认IRF状态
bash
<H3C-6805-IRF> display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 10 f010-90db-7402 ---
2 Standby 1 f010-90db-7403 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 30b0-37bc-1617
Auto upgrade : yes
Mac persistent : 12 min
Domain ID : 0
bash
<H3C-6805-IRF> display device
Slot Type State Subslot Soft Ver Patch Ver
1 S6805-54HF Master 0 S6805-54HF-6715 R6715HS08
2 S6805-54HF Standby 0 S6805-54HF-6715 R6715HS08
<H3C-6805-IRF>display irf configuration
MemberID NewID IRF-Port1 IRF-Port2
1 1 HundredGigE1/0/27 disable
HundredGigE1/0/28
2 2 disable HundredGigE2/0/27
HundredGigE2/0/28
bash
<H3C-6805-IRF>display irf link
Member 1
IRF Port Interface Status
1 HundredGigE1/0/27 UP
HundredGigE1/0/28 UP
2 disable --
Member 2
IRF Port Interface Status
1 disable --
2 HundredGigE2/0/27 UP
HundredGigE2/0/28 UP
bash
<H3C-6805-IRF>display irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
2 DISPLAY --- UP 1 f010-90db-1234
1 UP 2 DISPLAY --- f010-90db-1234
4 配置mad双主检测
创建3层聚合接口,开启bfd,配置2个Ip地址
将2个物理接口加入聚合接口
bash
interface Route-Aggregation99
mad bfd enable
mad ip address 169.254.1.1 255.255.255.0 member 1
mad ip address 169.254.1.2 255.255.255.0 member 2
interface Ten-GigabitEthernet1/0/54
port link-mode route
port link-aggregation group 99
interface Ten-GigabitEthernet2/0/54
port link-mode route
port link-aggregation group 99
确认mad状态
bash
<H3C-6805-IRF> display bfd session
Total sessions: 1 Up sessions: 0 Init mode: Active
IPv4 session working in control packet mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
33793/0 169.254.1.1 169.254.1.2 Down / RAGG99
bash
<H3C-6805-IRF>display mad verbose
Multi-active recovery state: No
Excluded ports (user-configured):
Excluded ports (system-configured):
IRF physical interfaces:
HundredGigE1/0/27
HundredGigE1/0/28
HundredGigE2/0/27
HundredGigE2/0/28
BFD MAD interfaces:
Ten-GigabitEthernet1/0/54
Ten-GigabitEthernet2/0/54
Route-Aggregation99
MAD ARP disabled.
MAD ND disabled.
MAD LACP disabled.
MAD BFD enabled interface: Route-Aggregation99
MAD status : Normal
Member ID MAD IP address Neighbor MAD status
1 169.254.1.1/24 2 Normal
2 169.254.1.2/24 1 Normal
最后记得保存配置
bash
<H3C-6805-IRF> save force
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
Slot 2:
Save next configuration file successfully.