最佳答案
iirf手册
由于网络规模迅速扩大,当前中心交换机(Device A)转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高三倍,并要求网络易管理、易维护。
图1-15 IRF典型配置组网图(BFD MAD检测方式)
· Device A处于局域网的汇聚层,为了将汇聚层的转发能力提高三倍,需要另外增加三台设备Device B、Device C和Device D。
· 鉴于IRF技术具有管理简便、网络扩展能力强、可靠性高等优点,所以本例使用IRF技术构建网络汇聚层(即在四台设备上配置IRF功能),每台成员设备与上层设备Device E之间均有一条上行链路连接。
· 为了防止IRF链路故障导致IRF分裂,网络中存在两个配置冲突的IRF,需要启用MAD检测功能。本例中我们采用BFD MAD检测方式来监测IRF的状态,并使用成员设备与上层设备间的专用链路传递BFD MAD报文。
(1) 配置Device A
[Sysname] interface range FortyGigE 1/0/1 to FortyGigE 1/0/4
[Sysname-if-range] shutdown
[Sysname-if-range] quit
# 配置IRF端口1/1,并将它与物理端口FortyGigE1/0/1和FortyGigE1/0/2绑定。
[Sysname-irf-port1/1] port group interface FortyGigE 1/0/1
[Sysname-irf-port1/1] port group interface FortyGigE 1/0/2
[Sysname-irf-port1/1] quit
# 配置IRF端口1/2,并将它与物理端口FortyGigE1/0/3和FortyGigE1/0/4绑定。
[Sysname-irf-port1/2] port group interface FortyGigE 1/0/3
[Sysname-irf-port1/2] port group interface FortyGigE 1/0/4
[Sysname-irf-port1/2] quit
# 开启FortyGigE1/0/1~FortyGigE1/0/4端口,并保存配置。
[Sysname] interface range FortyGigE 1/0/1 to FortyGigE 1/0/4
[Sysname-if-range] undo shutdown
[Sysname-if-range] quit
[Sysname] save
# 激活IRF端口下的配置。
[Sysname] irf-port-configuration active
# 将Device B的成员编号配置为2,并重启设备使新编号生效。
[Sysname] irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[Sysname] quit
<Sysname> reboot
# 重新登录到设备,关闭选定的所有IRF物理端口。
[Sysname] interface range FortyGigE 2/0/1 to FortyGigE 2/0/4
[Sysname-if-range] shutdown
[Sysname-if-range] quit
# 配置IRF端口2/1,并将它与物理端口FortyGigE2/0/1和FortyGigE2/0/2绑定。
[Sysname-irf-port2/1] port group interface FortyGigE 2/0/1
[Sysname-irf-port2/1] port group interface FortyGigE 2/0/2
[Sysname-irf-port2/1] quit
# 配置IRF端口2/2,并将它与物理端口FortyGigE2/0/3和FortyGigE2/0/4绑定。
[Sysname-irf-port2/2] port group interface FortyGigE 2/0/3
[Sysname-irf-port2/2] port group interface FortyGigE 2/0/4
# 开启FortyGigE2/0/1~FortyGigE2/0/4端口,并保存配置。
[Sysname] interface range FortyGigE 2/0/1 to FortyGigE 2/0/4
[Sysname-if-range] undo shutdown
[Sysname-if-range] quit
[Sysname] save
# 激活IRF端口下的配置。
[Sysname] irf-port-configuration active
(3) Device A和Device B间将会进行主设备竞选,竞选失败的一方将重启,重启完成后,IRF形成。
# 将Device C的成员编号配置为3,并重启设备使新编号生效。
[Sysname] irf member 1 renumber 3
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[Sysname] quit
<Sysname> reboot
# 重新登录到设备,关闭选定的所有IRF物理端口。
[Sysname] interface range FortyGigE 3/0/1 to FortyGigE 3/0/4
[Sysname-if-range] shutdown
[Sysname-if-range] quit
# 配置IRF端口3/1,并将它与物理端口FortyGigE3/0/1和FortyGigE3/0/2绑定。
[Sysname-irf-port3/1] port group interface FortyGigE 3/0/1
[Sysname-irf-port3/1] port group interface FortyGigE 3/0/2
[Sysname-irf-port3/1] quit
# 配置IRF端口3/2,并将它与物理端口FortyGigE3/0/3和FortyGigE3/0/4绑定。
[Sysname-irf-port3/2] port group interface FortyGigE 3/0/3
[Sysname-irf-port3/2] port group interface FortyGigE 3/0/4
[Sysname-irf-port3/2] quit
# 开启FortyGigE3/0/1~FortyGigE3/0/4端口,并保存配置。
[Sysname] interface range FortyGigE 3/0/1 to FortyGigE 3/0/4
[Sysname-if-range] undo shutdown
[Sysname-if-range] quit
[Sysname] save
# 激活IRF端口下的配置。
[Sysname] irf-port-configuration active
(5) Device C将自动重启,加入Device A和Device B已经形成的IRF。
# 将Device D的成员编号配置为4,并重启设备使新编号生效。
[Sysname] irf member 1 renumber 4
Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[Sysname] quit
<Sysname> reboot
# 重新登录到设备,关闭选定的所有IRF物理端口。
[Sysname] interface range FortyGigE 4/0/1 to FortyGigE 4/0/4
[Sysname-if-range] shutdown
[Sysname-if-range] quit
# 配置IRF端口4/1,并将它与物理端口FortyGigE4/0/1和FortyGigE4/0/2绑定。
[Sysname-irf-port4/1] port group interface FortyGigE 4/0/1
[Sysname-irf-port4/1] port group interface FortyGigE 4/0/2
[Sysname-irf-port4/1] quit
# 配置IRF端口4/2,并将它与物理端口FortyGigE4/0/3和FortyGigE4/0/4绑定。
[Sysname-irf-port4/2] port group interface FortyGigE 4/0/3
[Sysname-irf-port4/2] port group interface FortyGigE 4/0/4
[Sysname-irf-port4/2] quit
# 开启FortyGigE4/0/1~FortyGigE4/0/4端口,并保存配置。
[Sysname] interface range FortyGigE 4/0/1 to FortyGigE 4/0/4
[Sysname-if-range] undo shutdown
[Sysname-if-range] quit
[Sysname] save
# 激活IRF端口下的配置。
[Sysname] irf-port-configuration active
(7) Device D将自动重启,加入Device A、Device B和Device C已经形成的IRF。
# 创建VLAN 3,并将端口FortyGigE1/0/5、FortyGigE2/0/5、FortyGigE3/0/5和FortyGigE4/0/5加入VLAN 3中。
[Sysname-vlan3] port FortyGigE 1/0/5 FortyGigE 2/0/5 FortyGigE 3/0/5 FortyGigE 4/0/5
[Sysname-vlan3] quit
# 创建VLAN接口3,并配置MAD IP地址。
[Sysname] interface vlan-interface 3
[Sysname-Vlan-interface3] mad bfd enable
[Sysname-Vlan-interface3] mad ip address 192.168.2.1 24 member 1
[Sysname-Vlan-interface3] mad ip address 192.168.2.2 24 member 2
[Sysname-Vlan-interface3] mad ip address 192.168.2.3 24 member 3
[Sysname-Vlan-interface3] mad ip address 192.168.2.4 24 member 4
[Sysname-Vlan-interface3] quit
# 因为BFD MAD和生成树功能互斥,所以在FortyGigE1/0/5、FortyGigE2/0/5、FortyGigE3/0/5和FortyGigE4/0/5端口上关闭生成树协议。
[Sysname] interface range FortyGigE 1/0/5 FortyGigE 2/0/5 FortyGigE 3/0/5 FortyGigE 4/0/5
[Sysname-if-range] undo stp enable
[Sysname-if-range] quit
Device E作为中间设备来透传BFD MAD报文,协助IRF中的四台成员设备进行多Active检测。
如果中间设备是一个IRF系统,则必须通过配置确保其IRF域编号与被检测的IRF系统不同。
# 创建VLAN 3,并将端口FortyGigE1/0/1~FortyGigE1/0/4加入VLAN 3中,用于转发BFD MAD报文。
[DeviceE] vlan 3
[DeviceE-vlan3] port FortyGigE 1/0/1 to FortyGigE 1/0/4
[DeviceE-vlan3] quit
https://www.h3c.com/cn/d_201806/1089153_30005_0.htm
链路聚合手册。
· Device A与Device B通过各自的二层以太网接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3相互连接。
· 在Device A和Device B上分别配置二层静态链路聚合组,并实现设备间VLAN 10和VLAN 20分别互通。
(1) 配置Device A
# 创建VLAN 10,并将端口Ten-GigabitEthernet1/0/4加入到该VLAN中。
<DeviceA> system-view
[DeviceA] vlan 10
[DeviceA-vlan10] port ten-gigabitethernet 1/0/4
[DeviceA-vlan10] quit
# 创建VLAN 20,并将端口Ten-GigabitEthernet1/0/5加入到该VLAN中。
[DeviceA] vlan 20
[DeviceA-vlan20] port ten-gigabitethernet 1/0/5
[DeviceA-vlan20] quit
# 创建二层聚合接口1。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 分别将端口Ten-GigabitEthernet1/0/1至Ten-GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/3] quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20
[DeviceA-Bridge-Aggregation1] quit
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Static
Loadsharing Type: NonS
Management VLANs: None
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
XGE1/0/1 S 32768 1
XGE1/0/2 S 32768 1
XGE1/0/3 S 32768 1
以上信息表明,聚合组1为非负载分担类型的二层静态聚合组,包含有三个选中端口。
· Device A与Device B通过各自的三层以太网接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3相互连接。
· 在Device A和Device B上分别配置三层静态链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。
图1-9 三层静态聚合配置组网图
(1) 配置Device A
# 创建三层聚合接口1,并为该接口配置IP地址和子网掩码。
<DeviceA> system-view
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# 分别将接口Ten-GigabitEthernet1/0/1至Ten-GigabitEthernet1/0/3加入到聚合组1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/3] quit
(2) 配置Device B
Device B的配置与Device A相似,配置过程略。
# 查看Device A上所有聚合组的详细信息。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Route-Aggregation1
Aggregation Mode: Static
Loadsharing Type: NonS
Management VLANs: None
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
XGE1/0/1 S 32768 1
XGE1/0/2 S 32768 1
XGE1/0/3 S 32768 1
以上信息表明,聚合组1为非负载分担类型的三层静态聚合组,包含有三个选中端口。
除此之外的参考手册就行。。
(0)
您好,请知:
以下是链路聚合配置的参考命令:
<H3C>sys
[H3C]sysname SW1
[SW1]vlan 10
[SW1-vlan10]quit
[SW1]int gi 1/0/3
[SW1-GigabitEthernet1/0/3]port link-type access
[SW1-GigabitEthernet1/0/3]port access vlan 10
[SW1-GigabitEthernet1/0/3]description <connect to PC>
[SW1-GigabitEthernet1/0/3]quit
[SW1]int Bridge-Aggregation 1 //创建链路聚合组1
[SW1-Bridge-Aggregation1]quit
[SW1]int range gi 1/0/1 to gi 1/0/2
[SW1-if-range]port link-aggregation group 1 //将链路聚合组应用到接口
[SW1-if-range]quit
[SW1]int Bridge-Aggregation 1 //继续配置链路聚合组1
[SW1-Bridge-Aggregation1]port link-type trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[SW1-Bridge-Aggregation1]undo port trunk permit vlan 1
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[SW1-Bridge-Aggregation1]port trunk permit vlan 10
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.
[SW1-Bridge-Aggregation1]quit
以下是IRF部署的参考命令:
1、1号设备关键配置如下:
[H3C]irf member 1 renumber 1 //将1号设备设定为成员1
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51
[H3C-if-range]shutdown
[H3C-if-range]quit
[H3C]irf-port 1/1 //将物理端口绑定到IRF端口
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/50
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/51
[H3C-irf-port1/1]quit
[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51
[H3C-if-range]undo shutdown
[H3C-if-range]quit
[H3C]irf-port-configuration active //激活IRF
[H3C]save
2、2号设备关键配置点如下:
[H3C]irf member 1 renumber 2 //将2号设备设定为成员2
[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51
[H3C-if-range]shutdown
[H3C-if-range]quit
[H3C]irf-port 1/2 //将物理端口绑定到IRF端口
[H3C-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/50
[H3C-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/51
[H3C-irf-port1/2]quit
[H3C]int range Ten-GigabitEthernet 1/0/50 to Ten-GigabitEthernet 1/0/51
[H3C-if-range]undo shutdown
[H3C-if-range]quit
[H3C]irf-port-configuration active //激活IRF
[H3C]save
(0)
暂无评论
您好,参考链接
堆叠配置
https://www.h3c.com/cn/d_201806/1089146_30005_0.htm
端口聚合配置
(1) 采用手工汇聚方式:
# 创建手工汇聚组1。
<H3C> system-view
[H3C] link-aggregation group 1 mode manual
# 将以太网端口Ethernet1/0/1至Ethernet1/0/3加入汇聚组1。
[H3C] interface Ethernet1/0/1
[H3C-Ethernet1/0/1] port link-aggregation group 1
[H3C-Ethernet1/0/1] interface Ethernet1/0/2
[H3C-Ethernet1/0/2] port link-aggregation group 1
[H3C-Ethernet1/0/2] interface Ethernet1/0/3
[H3C-Ethernet1/0/3] port link-aggregation group 1
(2) 采用静态LACP汇聚方式:
# 创建静态汇聚组1。
<H3C> system-view
[H3C] link-aggregation group 1 mode static
# 将以太网端口Ethernet1/0/1至Ethernet1/0/3加入汇聚组1。
[H3C] interface Ethernet1/0/1
[H3C-Ethernet1/0/1] port link-aggregation group 1
[H3C-Ethernet1/0/1] interface Ethernet1/0/2
[H3C-Ethernet1/0/2] port link-aggregation group 1
[H3C-Ethernet1/0/2] interface Ethernet1/0/3
[H3C-Ethernet1/0/3] port link-aggregation group 1
(3) 采用动态LACP汇聚方式:
# 开启以太网端口Ethernet1/0/1至Ethernet1/0/3的LACP协议。
<H3C> system-view
[H3C] interface Ethernet1/0/1
[H3C-Ethernet1/0/1] lacp enable
[H3C-Ethernet1/0/1] interface Ethernet1/0/2
[H3C-Ethernet1/0/2] lacp enable
[H3C-Ethernet1/0/2] interface Ethernet1/0/3
[H3C-Ethernet1/0/3] lacp enable
注意:只有端口的基本配置、速率、双工等参数一致时,上述端口在开启LACP协议之后,才能汇聚到同一个动态汇聚组内,实现端口的负载分担。
(0)
暂无评论
你好,请知:
IRF配置参考链接:
https://www.h3c.com/cn/d_202004/1284814_30005_0.htm#_Toc37771865
聚合配置参考链接:
https://www.h3c.com/cn/d_202004/1284821_30005_0.htm#_Toc37772090
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论