我单位有两台SR8808-x,现在想做IRF,求大神给一个最简单的配置实例,并且顺便告知一下路由器IRF和交换机类产品是否有区别,有哪些注意事项。我单位路由器版本为7.1.075,r7951p11。
(0)
最佳答案
您好,请知:
只要堆叠的设备型号、软件版本一致就可以了。
以下是配置举例,请参考:
由于公司人员激增,接入层设备提供的端口数目已经不能满足PC的接入需求。现需要在保护现有投资的基础上扩展端口接入数量,并要求网络易管理、易维护。
图1-20 组建IRF典型配置组网图(LACP MAD检测方式)
· Device A提供的接入端口数目已经不能满足网络需求,需要另外增加一台设备Device B。
· 鉴于第二代智能弹性架构IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建接入层(即在Device A和Device B上配置IRF功能)。
· 为了防止万一IRF链路故障导致IRF分裂、网络中存在两个配置冲突的IRF,需要启用MAD检测功能。因为接入层设备较多,我们采用LACP MAD检测。
(1) 配置Device A
# 设置Device A的成员编号为1。
<DeviceA> system-view
[DeviceA] irf member 1 renumber 1
# 将当前配置保存到下次启动配置文件。
[Sysname] quit
<Sysname> save
# 将设备的运行模式切换到IRF模式。
<DeviceA> system-view
[DeviceA] chassis convert mode irf
The device will switch to IRF mode and reboot. Continue?[Y/N]:y
You are recommended to save the current running configuration and specify the co
nfiguration file for the next startup. Now save the running configuration to the
next-startup configuration file? [Y/N]:y
Please input the file name(*.cfg)[cfa0:/test.cfg]
(To leave the existing filename unchanged, press the enter key):
cfa0:/test.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
Do you want to convert the content of the next startup configuration file cfa0:/
test.cfg to make it available in IRF mode? [Y/N]:y
Now rebooting, please wait...
设备重启后Device A组成了只有一台成员设备的IRF。
# 手工关闭主控板上的物理端口Ten-GigabitEthernet1/3/1/1。
<DeviceA> system-view
[DeviceA] interface ten-gigabitethernet 1/3/1/1
[DeviceA-Ten-GigabitEthernet1/3/1/1] port link-mode bridge
[DeviceA-Ten-GigabitEthernet1/3/1/1] shutdown
[DeviceA-Ten-GigabitEthernet1/3/1/1] quit
# 创建IRF端口1/2,并将它与物理端口Ten-GigabitEthernet1/3/1/1绑定。
[DeviceA] irf-port 1/2
[DeviceA-irf-port1/2] port group interface ten-gigabitethernet 1/3/1/1
[DeviceA-irf-port1/2] quit
# 手工开启物理端口Ten-GigabitEthernet1/3/1/1。
[DeviceA] interface ten-gigabitethernet 1/3/1/1
[DeviceA-Ten-GigabitEthernet1/3/1/1] undo shutdown
[DeviceA-Ten-GigabitEthernet1/3/1/1] quit
# 将当前配置保存到下次启动配置文件。
[DeviceA] save
# 激活IRF端口的配置。
[DeviceA] irf-port-configuration active
(2) 配置Device B
# 配置Device B的成员编号为2。
<DeviceB> system-view
[DeviceB] irf member 2 renumber 2
# 将当前配置保存到下次启动配置文件。
[DeviceB] quit
<DeviceB> save
# 参照图1-20进行物理连线。
# 将设备的运行模式切换到IRF模式。
<DeviceB> system-view
[DeviceB] chassis convert mode irf
The device will switch to IRF mode and reboot. Continue?[Y/N]:y
You are recommended to save the current running configuration and specify the co
nfiguration file for the next startup. Now save the running configuration to the
next-startup configuration file? [Y/N]:y
Please input the file name(*.cfg)[cfa0:/test.cfg]
(To leave the existing filename unchanged, press the enter key):
cfa0:/test.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
Do you want to convert the content of the next startup configuration file cfa0:/
test.cfg to make it available in IRF mode? [Y/N]:y
Now rebooting, please wait...
# 手工关闭主控板上的物理端口Ten-GigabitEthernet2/3/1/1。
<DeviceB> system-view
[DeviceB] interface ten-gigabitethernet 2/3/1/1
[DeviceB-Ten-GigabitEthernet2/3/1/1] port link-mode bridge
[DeviceB-Ten-GigabitEthernet2/3/1/1] shutdown
[DeviceB-Ten-GigabitEthernet2/3/1/1] quit
# 创建IRF端口2/1,并将它与物理端口Ten-GigabitEthernet2/3/1/1绑定。
[DeviceB] irf-port 2/1
[DeviceB-irf-port2/1] port group interface ten-gigabitethernet 2/3/1/1
[DeviceB-irf-port2/1] quit
# 手工开启物理端口Ten-GigabitEthernet2/3/1/1。
[DeviceB] interface ten-gigabitethernet 2/3/1/1
[DeviceB-Ten-GigabitEthernet2/3/1/1] undo shutdown
[DeviceB-Ten-GigabitEthernet2/3/1/1] quit
# 将当前配置保存到下次启动配置文件。
[DeviceB] quit
# 激活IRF端口的配置。
[DeviceB] irf-port-configuration active
# 系统会提示发生IRF合并,由于DeviceB的IRF成员编号为2,大于DeviceA,因此会在竞选中失败而自动重启,重启后两台设备形成一个IRF。
(3) 配置LACP MAD检测
# 设置IRF域编号为1。
<DeviceA> system-view
[DeviceA] irf domain 1
# 创建一个动态聚合接口,并使能LACP MAD检测功能。
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation2] mad enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 0]: 1
The assigned domain ID is: 1
MAD LACP only enable on dynamic aggregation interface.
[DeviceA-Bridge-Aggregation2] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet1/3/1/2和Ten-GigabitEthernet2/3/1/2,专用于Device A和Device B实现LACP MAD检测。
[DeviceA] interface ten-gigabitethernet 1/3/1/2
[DeviceA-Ten-GigabitEthernet1/3/1/2] port link-mode bridge
[DeviceA-Ten-GigabitEthernet1/3/1/2] port link-aggregation group 2
[DeviceA-Ten-GigabitEthernet1/3/1/2] quit
[DeviceA] interface ten-gigabitethernet 2/3/1/2
[DeviceA-Ten-GigabitEthernet2/3/1/2] port link-mode bridge
[DeviceA-Ten-GigabitEthernet2/3/1/2] port link-aggregation group 2
[DeviceA-Ten-GigabitEthernet2/3/1/2] quit
(4) 配置中间设备Device C
如果中间设备是一个IRF系统,则必须通过配置确保其IRF域编号与被检测的IRF系统不同。
Device C作为中间设备来转发、处理LACP协议报文,协助Device A和Device B进行多Active检测。从节约成本的角度考虑,使用一台支持LACP协议扩展功能的设备即可。
# 创建一个动态聚合接口。
<DeviceC> system-view
[DeviceC] interface bridge-aggregation 2
[DeviceC-Bridge-Aggregation2] link-aggregation mode dynamic
[DeviceC-Bridge-Aggregation2] quit
# 在聚合接口中添加成员端口Ten-GigabitEthernet3/1/1和Ten-GigabitEthernet3/1/2,用于帮助LACP MAD检测。
[DeviceC] interface ten-gigabitethernet 3/1/1
[DeviceC-Ten-GigabitEthernet3/1/1] port link-mode bridge
[DeviceC-Ten-GigabitEthernet3/1/1] port link-aggregation group 2
[DeviceC-Ten-GigabitEthernet3/1/1] quit
[DeviceC] interface ten-gigabitethernet 3/1/2
[DeviceC-Ten-GigabitEthernet3/1/2] port link-mode bridge
[DeviceC-Ten-GigabitEthernet3/1/2] port link-aggregation group 2
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论