IRF配置思路
网络括谱图
主 Ten-GigabitEthernet 1/0/49 Ten-GigabitEthernet 1/0/50 Ten-GigabitEthernet 1/0/51
备 Ten-GigabitEthernet 2/0/49 Ten-GigabitEthernet 2/0/50 Ten-GigabitEthernet 2/0/51
思路
主
1 利用console线进入设备的命令行页面去更改设备的名字 (华三设备默认的用户名密码:admin/admin)
[H3C]sysname master
[H3C]sysname backup
2 主的配置思路
2.1 设置优先级 确认该设备是主设备
[master]irf member 1 priority 15
2.2 将设备IRF连接的接口shutdown
[master]interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/51
[master-if-range]shutdown
2.3 退出
quit
2.4 创建虚拟IRF接口
[master]irf-port 1/1
2.5 将接口增加到IRF接口
[master-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/49
[master-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/50
[master-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/51
2.6 退出
quit
2.7 将对应对接口开启来
[master]interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/51
[master-if-range]un shutdown
2.8 激活IRF
[master]irf-port-configuration active
2.9 保存
save
2.10 退出
quit
2.11 重启
reboot
备
3.1 将设备成员改为2
[backup]irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
3.2 保存
[backup]save
3.3 退出
[backup] quit
3.4 重启
[backup]reboot
3.2 进入接口
[backup]interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/
51
[backup-if-range]shutdown
3.3 退出
quit
3.4 创建IRF虚拟接口
[backup]irf-port 2/2
3.5 将对应的接口增加进去
[backup-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/49
[backup-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/50
[backup-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/51
3.6 退出
[backup-irf-port2/2]quit
[backup]
3.7 将接口undo showdown
[backup]interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/51
[backup-if-range]undo shutdown
3.8 退出
quit
3.9 保存
<backup>save
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):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
3.10 激活
[backup]irf-port-configuration active
查看IRF手册
显示IRF中所有成员设备的相关信息
display irf
查看IRF的拓扑信息
display irf topology
显示IRF链路信息
display irf link
显示IRF配置信息
display irf configuration
<master>display irf
MemberID Role Priority CPU-Mac Description
*1 Master 15 407c-98f5-0104 ---
+2 Standby 1 407c-9fb8-0204 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 407c-98f5-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
<master>display irf topology
Topology Info
-------------------------------------------------------------------------
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
2 DIS --- UP 1 407c-98f5-0104
1 UP 2 DIS --- 407c-98f5-0104
<master>display irf link
Member 1
IRF Port Interface Status
1 Ten-GigabitEthernet1/0/49 UP
Ten-GigabitEthernet1/0/50 UP
Ten-GigabitEthernet1/0/51 UP
2 disable --
Member 2
IRF Port Interface Status
1 disable --
2 Ten-GigabitEthernet2/0/49 UP
Ten-GigabitEthernet2/0/50 DOWN
Ten-GigabitEthernet2/0/51 UP
<master>display irf configuration
MemberID NewID IRF-Port1 IRF-Port2
1 1 Ten-GigabitEthernet1/0/49 disable
Ten-GigabitEthernet1/0/50
Ten-GigabitEthernet1/0/51
2 2 disable Ten-GigabitEthernet2/0/49
Ten-GigabitEthernet2/0/50