s10508交换机irf优先级的取值范围是多少?默认值是多少?是设置优先级的值大的一定是主,小的一定是备吗?
(0)
最佳答案
IRF的优先级的取值是1-32,默认优先级是1,优先级越大越优先,优先级32的大于优先级为1的。
irf手册参考:https://www.h3c.com/cn/d_201203/741362_30005_0.htm#_Ref229218914
(0)
您好,请知:
IRF默认优先级是1,优先级数值越大,优先级越高。
以下是IRF的配置举例,请参考:
由于公司人员激增,接入层交换机提供的端口数目已经不能满足PC的接入需求。现需要在保护现有投资的基础上扩展端口接入数量,并要求网络易管理、易维护。
图1-13 IRF典型配置组网图(LACP MAD检测方式)
l Device A提供的接入端口数目已经不能满足网络需求,需要另外增加一台设备Device B。(本文以两台设备组成IRF为例,在实际组网中可以根据需要,将多台设备组成IRF,配置思路和配置步骤与本例类似)
l 鉴于智能弹性架构IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建接入层(即在Device A和Device B上配置IRF功能)。
l 为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为接入层设备较多,我们采用LACP MAD检测。
为了减少IRF形成过程中系统重启的次数,可以在独立运行模式下预配置IRF端口、成员编号、以及成员优先级,配置保存后切换运行模式到IRF模式,可直接与其它设备形成IRF。
(1) 配置Device A
# 配置Device A的成员编号为1,创建IRF端口2,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。
<Sysname> system-view
[Sysname] irf member 1
Info: Member ID change will take effect after the switch reboots and operates in IRF mode.
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] shutdown
[Sysname-Ten-GigabitEthernet3/0/1] quit
[Sysname] irf-port 2
[Sysname-irf-port2] port group interface ten-gigabitethernet 3/0/1
[Sysname-irf-port2] quit
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] undo shutdown
[Sysname-Ten-GigabitEthernet3/0/1] 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
Please wait...
Saving the converted configuration file to the main board succeeded.
Slot 1:
Saving the converted configuration file succeeded.
Now rebooting, please wait...
设备重启后Device A组成了只有一台成员设备的IRF。
(2) 配置Device B
# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet3/0/1绑定。
<Sysname> system-view
[Sysname] irf member 2
Info: Member ID change will take effect after the switch reboots and operates in IRF mode.
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] shutdown
[Sysname-Ten-GigabitEthernet3/0/1] quit
[Sysname] irf-port 1
[Sysname-irf-port1] port group interface ten-gigabitethernet 3/0/1
[Sysname-irf-port1] quit
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] undo shutdown
[Sysname-Ten-GigabitEthernet3/0/1] quit
# 将当前配置保存到下次启动配置文件。
[Sysname] quit
<Sysname> save
# 参照图1-13进行物理连线。
# 将设备的运行模式切换到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
Please wait...
Saving the converted configuration file to the main board succeeded.
Slot 1:
Saving the converted configuration file succeeded.
Now rebooting, please wait...
设备B重启后与设备A形成IRF。
(3) 配置LACP MAD检测
# 创建一个动态聚合接口,并使能LACP MAD检测功能。
<Sysname> system-view
[Sysname] interface bridge-aggregation 2
[Sysname-Bridge-Aggregation2] link-aggregation mode dynamic
[Sysname-Bridge-Aggregation2] mad enable
[Sysname-Bridge-Aggregation2] quit
# 在聚合接口中添加成员端口1/4/0/2和2/4/0/2,专用于Device A和Device B实现LACP MAD检测。
[Sysname] interface gigabitethernet 1/4/0/2
[Sysname-GigabitEthernet1/4/0/2] port link-aggregation group 2
[Sysname-GigabitEthernet1/4/0/2] quit
[Sysname] interface gigabitethernet 2/4/0/2
[Sysname-GigabitEthernet2/4/0/2] port link-aggregation group 2
(4) 配置中间设备Device C
Device C作为中间设备来转发、处理LACP协议报文,协助Device A和Device B进行多Active检测。从节约成本的角度考虑,使用一台支持LACP协议扩展功能的交换机即可。
如果中间设备是一个IRF系统,则必须通过配置确保其IRF域编号与被检测的IRF系统不同。
# 创建一个动态聚合接口。
<Sysname> system-view
[Sysname] interface bridge-aggregation 2
[Sysname-Bridge-Aggregation2] link-aggregation mode dynamic
[Sysname-Bridge-Aggregation2] quit
# 在聚合接口中添加成员端口GigabitEthernet4/0/1和GigabitEthernet4/0/2,用于LACP MAD检测。
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/0/1] port link-aggregation group 2
[Sysname-GigabitEthernet4/0/1] quit
[Sysname] interface gigabitethernet 4/0/2
[Sysname-GigabitEthernet4/0/2] port link-aggregation group 2
(5) 当IRF链路出现故障后,系统将输出IRF链路状态错误提示,以及单板失效提示。
#May 7 09:13:42:388 2010 H3C STM/4/LINK STATUS CHANGE:
Trap 1.3.6.1.4.1.2011.10.2.91.6.0.1<h3cStackPortLinkStatusChange>: Physical index of the member is 2, member ID is 1. Link status of the IRF port with port index 1 and member ID 1 turned to 2.
#May 7 09:13:42:720 2010 H3C DEVM/1/BOARD STATE CHANGES TO FAILURE:
# 由于DeviceB的成员编号为2,因此在MAD冲突后将变为Recovery状态,设备上除保留端口之外的端口都会处于关闭状态。
# 如果此时Master设备也发生了故障,您可以登录到DeviceB的Console口,使用mad restore命令先将DeviceB恢复为Active状态,启动被关闭的接口。
<Sysname> system-view
[Sysname] mad restore
This command will restore the device from multi-active conflict state. Continue? [Y/N]:y
Restoring from multi-active conflict state, please wait...
[Sysname]
#May 7 09:23:16:050 2010 H3C IFNET/4/INTERFACE UPDOWN:
Trap 1.3.6.1.6.3.1.1.5.4<linkUp>: Interface 277872640 is Up, ifAdminStatus is 1, ifOperStatus is 1
%May 7 09:23:16:069 2010 H3C IFNET/3/LINK_UPDOWN: GigabitEthernet2/3/0/2 link status is UP.
#May 7 09:23:16:302 2010 H3C LAGG/1/AggPortRecoverActive:
Trap 1.3.6.1.4.1.2011.5.25.25.2.4<hwAggPortActiveNotification>: Aggregation Group 1: port member 277872640 becomes ACTIVE!
%May 7 09:23:16:322 2010 H3C LAGG/5/LAGG_ACTIVE: Member port GigabitEthernet2/3/0/1 of aggregation group BAGG1 becomes ACTIVE.
%May 7 09:23:16:370 2010 H3C IFNET/3/LINK_UPDOWN: Bridge-Aggregation2 link status is UP.
%May 7 09:23:16:381 2010 H3C IFNET/3/LINK_UPDOWN: Vlan-interface1 link status is UP.
%May 7 09:23:16:391 2010 H3C IFNET/5/LINEPROTO_UPDOWN: Line protocol on the interface Vlan-interface1 is UP.
通过以上信息可以得知,DeviceB已经恢复在网络中的功能,此时您可以修复DeviceA设备及IRF链路。
当DeviceA设备及IRF链路均已修复后,重启DeviceA设备,DeviceB上将输出IRF端口状态恢复及插入新单板的提示信息。
%May 7 09:30:12:122 2010 H3C STM/6/STM_LINK_STATUS_UP:
IRF port 2 is up.
#May 7 09:30:36:566 2010 H3C DEVM/1/BOARD INSERTED:
此时通过display irf命令的显示信息,可以看到IRF系统已经恢复,DeviceB为Master设备,DeviceA变为Slave。
<Sysname> display irf
Switch Slot Role Priority CPU-Mac Description
1 1 Slave 1 00e0-fc0f-8c02 -----
*+2 1 Master 1 00e0-fc0f-8c20 -----
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 0023-895f-954f
Auto upgrade : yes
Mac persistent : no
Domain ID : 0
Auto merge : no
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论