H3C 虛擬化

拓撲見QQ收藏:dom

R1配置:ide

[S1]interface Ten-GigabitEthernet 1/0/49ui

[S1-Ten-GigabitEthernet1/0/49]sh  先斷電spa

[S1]irf-port 1/2  命令行

[S1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/493d

[S1-irf-port1/2]quitorm

[S1]int Ten-GigabitEthernet 1/0/49接口

[S1-Ten-GigabitEthernet1/0/49]un ship

[S1-Ten-GigabitEthernet1/0/49]quitci

[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

相關文章
相關標籤/搜索