最佳答案
一。配置IRF
1.首先更改hexin-2-ip3的IRF缺省编号2 ;hexin-1-ip2默认为编号1则不用更改
[hexin-2-IP3]irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
这时物理接口会变成2/0/x
然后将两个设备的IRF接口线连接好后,上电开机。
2.配置 hexin1交换机
[hexin-1-IP2]int Ten-GigabitEthernet 1/0/50
[hexin-1-IP2-Ten-GigabitEthernet1/0/50]shut //关闭IRF接口
[hexin-1-IP2]irf-port 1/2
[hexin-1-IP2-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/50
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active" command to activate the IRF ports.
[hexin-1-IP2]int Ten-GigabitEthernet 1/0/50
[hexin-1-IP2-Ten-GigabitEthernet1/0/50]undo shut
[hexin-1-IP2-irf-port1/2]save
3.配置hexin2交换机
[hexin-2-IP3-Ten-GigabitEthernet2/0/50]shut
[hexin-2-IP3]irf-port 2/1
[hexin-2-IP3-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/50
[hexin-2-IP3]int Ten-GigabitEthernet 2/0/50
[hexin-2-IP3-Ten-GigabitEthernet2/0/50]undo shut
[hexin-2-IP3-Ten-GigabitEthernet2/0/50]save
4.分别再hexin1和hexin2执行
irf-port-configuration active
来激活IRF
然后等待,两个交换机会进行IRF的MAST 和SENOND的竞选,精选失败的交换机会自动重启。重启后用disp irf会看到两个设备,这时IRF就已经起来了。
-------------------------------------------------------------------------------------------------
[hexin-1-IP2]dis irf
MemberID Role Priority CPU-Mac Description
*+1 Master 1 448c-ae4c-0104 ---
2 Standby 1 46c5-03b8-0a04 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 448c-ae4c-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
[hexin-1-IP2]
<HX>dis irf link //查看IRF物理接口状态
Member 1
IRF Port Interface Status
1 disable --
2 Ten-GigabitEthernet1/0/25 DOWN
Ten-GigabitEthernet1/0/26 DOWN
Ten-GigabitEthernet1/0/27 DOWN
Ten-GigabitEthernet1/0/28 UP
Member 2
IRF Port Interface Status
1 Ten-GigabitEthernet2/0/25 DOWN
Ten-GigabitEthernet2/0/26 DOWN
Ten-GigabitEthernet2/0/27 DOWN
Ten-GigabitEthernet2/0/28 UP
2 disable --
二.配置静态链路聚合
整个过程思路如下:
1.在全局下启用STP 防止网络成环 命令即:stp global enable
2.建立一个静态聚合组:命令即:interface bridge-aggregation 1
(这个命令的意思是建立一个链路聚合组,名字是1)
3.配置这个链路聚合组的参数,你可以把这个聚合组就当成一个交换机
的网络接口。咱们需要配置如下参数:
3-1:设置这个接口为VLAN干道 命令:port link-type trunk
3-2:允许这个VLAN干道允许通过所有VLAN 命令:port trunk permit vlan all
3-3:在这个接口上禁止STP防止环路功能 命令:undo stp enable
4.向这个汇聚组里添加交换机的物理接口,也就是哪些接口要做汇聚
命令如下: [SwitchA-GigabitEthernet1/0/1]port link-aggregation group 1
[SwitchA-GigabitEthernet1/0/2] port link-aggregation group 1
上面这两条命令就是把交换机的第一个口和第二个口加到同一个汇聚组里了
三.路由器配置三层聚合链接IRF组的两个核心交换机
interface Route-Aggregation1
ip address 10.0.0.254 255.255.255.0
#
interface GigabitEthernet0/0
port link-aggregation group 1
#
interface GigabitEthernet0/1
port link-aggregation group 1
#
另外建议在核心交换机上配置和路由链接的接口为三层接口
命令:Port link-mode route
两个核心交换机做标记
irf member 2 description SWB
irf member 3 description SWC
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论