H3C 虛擬化

拓撲見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前,可以通過命令行手工提高該設備的成員優先級


配置負載分擔:

  1. 全局配置:

    [S1]irf-port global load-sharing mode destination-mac source-mac

  2. 接口配置:

    [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





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章