IRF2实验

Posted ccshi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IRF2实验相关的知识,希望对你有一定的参考价值。

技术图片

 

 

 

修改B的设备编号

<H3C>system-view

System View: return to User View with Ctrl+Z.

[H3C]irf member 1 renumber 2

Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]y

[H3C]quit

< H3C >reboot

A也要重启reboot

修改A的优先级,并配置irf端口,并绑定物理端口Ten-GigabitEthernet 1/0/52

<H3C>system-view

[H3C]irf member 1 priority 5

[H3C]interface Ten-GigabitEthernet 1/0/52

[H3C-Ten-GigabitEthernet1/0/52]shutdown

[H3C-Ten-GigabitEthernet1/0/52]quit

[H3C]irf-port 1/2

[H3C-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/52

[H3C-irf-port1/2]quit

[H3C]interface Ten-GigabitEthernet 1/0/52

[H3C-Ten-GigabitEthernet1/0/52]undo shutdown

[H3C-Ten-GigabitEthernet1/0/52]save

[H3C-Ten-GigabitEthernet1/0/52]

配置Birf端口,并绑定物理端口Ten-GigabitEthernet 1/0/52

[H3C]interface Ten-GigabitEthernet 2/0/52

[H3C-Ten-GigabitEthernet2/0/52]shutdown

[H3C-Ten-GigabitEthernet2/0/52]quit

[H3C]irf-port 2/1

[H3C-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/52

[H3C-irf-port2/1]quit

[H3C]interface Ten-GigabitEthernet 2/0/52

[H3C-Ten-GigabitEthernet2/0/52]undo shutdown

[H3C-Ten-GigabitEthernet2/0/52]save

[H3C-Ten-GigabitEthernet2/0/52]

激活Airf端口配置

[H3C]irf-port-configuration active

激活Birf端口配置(竞选失败的一方会自动重启)

[H3C]irf-port-configuration active

A上创建动态聚合端口

[H3C]interface Bridge-Aggregation 2

[H3C-Bridge-Aggregation2]link-aggregation mode dynamic

[H3C-Bridge-Aggregation2]mad en

[H3C-Bridge-Aggregation2]mad enable

You need to assign a domain ID (range: 0-4294967295)

[Current domain is: 0]:            \\回车

The assigned domain ID is: 0

MAD LACP only enable on dynamic aggregation interface.

[H3C-Bridge-Aggregation2]quit

[H3C]

A上添加聚合端口

[H3C]interface GigabitEthernet 1/0/1

[H3C-GigabitEthernet1/0/1]port link-aggregation group 2

[H3C-GigabitEthernet1/0/1]quit

[H3C]interface GigabitEthernet 2/0/1

[H3C-GigabitEthernet2/0/1]port link-aggregation group 2

设备C的配置聚合端口

<H3C>system-view

[H3C]interface Bridge-Aggregation 2

[H3C-Bridge-Aggregation2]link-aggregation mode dynamic

[H3C-Bridge-Aggregation2]quit

[H3C]interface GigabitEthernet 1/0/1

[H3C-GigabitEthernet1/0/1]port link-aggregation group 2

[H3C-GigabitEthernet1/0/1]quit

[H3C]interface GigabitEthernet 1/0/2

[H3C-GigabitEthernet1/0/2]port link-aggregation group 2

 

测试

<H3C>dis irf

MemberID    Role    Priority  CPU-Mac         Description

  *1        Master  5         5ed5-baab-0100  ---

  +2        Standby 1         5ed5-c2b9-0200  ---

--------------------------------------------------

 * indicates the device is the master.

 + indicates the device through which the user logs in.

 

 The Bridge MAC of the IRF is: 5ed5-baab-0100

 Auto upgrade                : yes

 Mac persistent              : 6 min

 Domain ID  

<H3C>dis irf configuration

 MemberID NewID    IRF-Port1                     IRF-Port2

 1        1        disable                       Ten-GigabitEthernet1/0/52

 2        2        Ten-GigabitEthernet2/0/52     disable

 

 

<H3C>dis irf topology

                              Topology Info

 -------------------------------------------------------------------------

               IRF-Port1                IRF-Port2

 MemberID    Link       neighbor      Link       neighbor    Belong To

 1           DIS        ---           UP         2           5ed5-baab-0100

 2           UP         1             DIS        ---         5ed5-baab-0100

 

<H3C>dis mad

MAD ARP disabled.

MAD ND disabled.

MAD LACP enabled.

MAD BFD disabled.

[H3C-GigabitEthernet2/0/1]dis mad verbose

Current MAD status: Detect

Excluded ports(configurable):

Excluded ports(can not be configured):

  Ten-GigabitEthernet1/0/52

  Ten-GigabitEthernet2/0/52

MAD ARP disabled.

MAD ND disabled.

MAD enabled aggregation port:

  Bridge-Aggregation2

MAD BFD disabled.

 

[H3C]dis link-aggregation verbose

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Port Status: S -- Selected, U -- Unselected, I -- Individual

Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,

        D -- Synchronization, E -- Collecting, F -- Distributing,

        G -- Defaulted, H -- Expired

 

Aggregate Interface: Bridge-Aggregation2

Aggregation Mode: Dynamic

Loadsharing Type: Shar

System ID: 0x8000, 5ed5-baab-0100

Local:

  Port             Status  Priority Oper-Key  Flag

--------------------------------------------------------------------------------

  GE1/0/1          S       32768    1         {ACDEF}

  GE2/0/1          S       32768    1         {ACDEF}

Remote:

  Actor            Partner Priority Oper-Key  SystemID               Flag

--------------------------------------------------------------------------------

  GE1/0/1          2       32768    1         0x8000, 5ed5-cba3-0300 {ACDEF}

  GE2/0/1          3       32768    1         0x8000, 5ed5-cba3-0300 {ACDEF}

 

以上是关于IRF2实验的主要内容,如果未能解决你的问题,请参考以下文章

H3C IRF2典型应用

H3C IRF2典型应用

H3C IRF2典型应用

H3C--策略路由以及IRF2

H3C IRF2典型应用

使用H3C模拟器HCL完成基础的IRF实施