标签:虚拟化
拓扑见QQ收藏:
R1配置:
[S1]interface Ten-GigabitEthernet 1/0/49
[S1-Ten-GigabitEthernet1/0/49]sh 先断电
[S1]irf-port 1/2
[S1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/49
[S1-irf-port1/2]quit
[S1]int Ten-GigabitEthernet 1/0/49
[S1-Ten-GigabitEthernet1/0/49]un sh
[S1-Ten-GigabitEthernet1/0/49]quit
[S1]save
[S1]irf-port-configuration active 激活IRF端口配置
[S1]interface Bridge-Aggregation 2
[S1-Bridge-Aggregation2]link-aggregation mode dynamic
[S1-Bridge-Aggregation2]mad enable 开启MAD检测
[S1-Bridge-Aggregation2]quit
[S1]int g1/0/1
[S1-GigabitEthernet1/0/1]port link-aggregation group 2
查看信息:
[S1]dis irf
MemberID Role Priority CPU-Mac Description
*+1 Master 1 7420-b83d-0100 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 7420-b83d-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
R2配置:
[S2]irf member 1 renumber 2 修改成员编号为2
注意:修改完成之后需要重启才有效
[S2]save 保存配置
<S2>reboot 重启
[S2]dis irf
MemberID Role Priority CPU-Mac Description
*+2 Master 1 7420-bdd9-0200 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 7420-bdd9-0200
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
[S2]int Ten-GigabitEthernet 2/0/49 重启之后接口的开头编号会变为修改的编号
[S2-Ten-GigabitEthernet2/0/49]sh 断电
[S2]irf-port 2/1
[S2-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/49
[S2-irf-port2/1]quit
[S2]int Ten-GigabitEthernet 2/0/49 通电
[S2-Ten-GigabitEthernet2/0/49]un sh
[S2-Ten-GigabitEthernet2/0/49]quit
[S2]irf-port-configuration active 激活IRF配置
注意:这儿会重启,重启完成之后设备名会变为Master的名称
[S1]dis irf
MemberID Role Priority CPU-Mac Description
*1 Master 1 7420-b83d-0100 ---
+2 Standby 1 7420-bdd9-0200 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 7420-b83d-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
注意设备名称
[S1]int GigabitEthernet 1/0/2 这儿不需要创建聚合端口,因为R1和R2虚拟成一个设备,R1上创建了
[S1-GigabitEthernet1/0/2]port link-aggregation group 2
[S1-GigabitEthernet1/0/2]quit
R3配置:
[S3]interface Bridge-Aggregation 2
[S3-Bridge-Aggregation2]link-aggregation mode dynamic
[S3-Bridge-Aggregation2]quit
[S3]int g1/0/1
[S3-GigabitEthernet1/0/1]port link-aggregation group 2
[S3-GigabitEthernet1/0/1]quit
[S3]int g1/0/2
[S3-GigabitEthernet1/0/2]port link-aggregation group 2
[S3-GigabitEthernet1/0/2]quit
IRF域编号:
[S2]irf member 1 renumber 2 修改成员编号为2
注意:修改完成之后需要重启才有效
[S2]save 保存配置
<S2>reboot 重启
配置成员优先级:
[S1]irf member 1 priority 10
1.成员优先级是成员设备的一个属性,主要用于角色选举过程中确定成员设备的角色。优先级越高当选为Master的可能性越大
2.设备的缺省优先级均为1,如果想让某台设备当选为Master,则在组建IRF前,可以通过命令行手工提高该设备的成员优先级
配置负载分担:
全局配置:
[S1]irf-port global load-sharing mode destination-mac source-mac
接口配置:
[S1]irf-port 1/2
[S1-irf-port1/2]irf-port load-sharing mode source-ip destination-ip
启动自动加载功能:
[S1]irf auto-update enable
配置BFD MAD检测:
# 创建VLAN 3,并将SW2上的端口Gthernet1/0/1和SW3上的端口Gthernet1/0/1加入VLAN中。
<SW2> system-view
[SW2] vlan 3
[SW2-vlan3] port ethernet 1/0/1 ethernet 1/0/1
[SW2-vlan3] quit
# 创建VLAN接口3,并配置MAD IP地址。
[SW2] interface vlan-interface 3
[SW2-Vlan-interface3] mad bfd enable
[SW2-Vlan-interface3] mad ip address 192.168.2.1 24 member 1
[SW2-Vlan-interface3] mad ip address 192.168.2.2 24 member 2
[SW2-Vlan-interface3] quit
# 按图1-14所示连接BFD MAD链路。
# 因为BFD MAD和生成树功能互斥,所以在Gthernet1/0/1和Gthernet1/0/1上关闭生成树协议。
[SW2] interface ethernet 1/0/1
[SW2-Ethernet1/0/1] undo stp enable
[SW2-Ethernet1/0/1] quit
[SW2] interface ethernet 2/0/1
[SW2-Ethernet2/0/1] undo stp enable
配置ARP MAD:
# 在IRF上全局使能MSTP,以防止环路的发生。
<SW2> system-view
[SW2] stp enable
# 按图1-15所示连接ARP MAD检测链路。
# 将IRF配置为MAC地址立即改变。
[SW2] undo irf mac-address persistent
# 创建VLAN 3,并将Device A(成员编号为1)上的端口gthernet1/0/1和Device B(成员编号为2)上的端口Ethernet2/0/1加入VLAN中。
{SW2] vlan 3
[SW2-vlan3] port ethernet 1/0/1 ethernet 2/0/1
[SW2-vlan3] quit
# 创建VLAN-interface3,并配置IP地址,使能ARP MAD检测功能,由于并不是在两个IRF之间配置ARP MAD检测,因此在系统提示输入IRF域ID时,可以保持为默认值0。
[SW2] interface vlan-interface 3
[SW2-Vlan-interface3] ip address 192.168.2.1 24
[SW2-Vlan-interface3] mad arp enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain is: 0]:
The assigned domain ID is: 0
(5)配置SW1
# 在全局使能MSTP,以防止环路的发生。
<SW1> system-view
[SW1] stp enable
# 创建VLAN 3,并将端口Gthernet1/0/1和Gthernet1/0/2加入VLAN 3中,用于转发ARP MAD报文。
[SW1] vlan 3
[SW1-vlan3] port Gthernet 1/0/1 Gthernet 1/0/2
[SW1-vlan3] quit
标签:虚拟化
原文地址:http://llzzgg.blog.51cto.com/10535395/1765842