• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

AK145 MSR56-80

2020-10-29提问
  • 0关注
  • 1收藏,660浏览
粉丝:0人 关注:0人

问题描述:

两个型号设备做了IRF后,怎么能让流量只走主设备,两台路由器只有一条运营商链路在主设备上?

组网及组网描述:


2 个回答
粉丝:42人 关注:0人

可以配置冗余口冗余组

我好像记得有条命令

zhiliao_Sarl5 发表时间:2020-10-29

一般可以配置浮动路由 ,控制流量走主设备,但目前H3C防火墙还是建议配置成冗余

骑着乌龟的蜗牛 发表时间:2020-10-29

防火墙是透明的

zhiliao_Sarl5 发表时间:2020-10-29

那可以参考这个:https://zhiliao.h3c.com/Theme/details/22270

骑着乌龟的蜗牛 发表时间:2020-10-29
粉丝:122人 关注:6人

您好,请知:

可以使用冗余组和冗余口实现主备,参考举例如下:

2.5  冗余组典型配置举例

2.5.1  工作在三层,上下行分别连接两台路由器,两台路由器接口不在同一网段

1. 组网需求

·            图2-4所示,Device A和Device B组成IRF,Router 1和IRF相连的接口与Router 2和IRF相连的接口不在同一网段,Router 3和IRF相连的接口与Router 4和IRF相连的接口不在同一网段。

·            正常情况下,流量走Router 1——Device A——Router 3;当这条通道上的任一链路或者设备故障时,流量切换到Router 2——Device B——Router 4。正常通道故障恢复时,流量再切回。

2. 组网图

图2-4 配置组网图

 

3. 配置步骤

图2-4所示,配置各接口的IP地址、路由、安全域及域间安全策略,保证网络可达,具体配置过程略。

配置IRF

# 配置IRF端口1/2,并将它与物理端口GigabitEthernet1/0/3绑定,并保存配置。

<DeviceA> system-view

[DeviceA] interface GigabitEthernet 1/0/3

[DeviceA-GigabitEthernet1/0/3] shutdown

[DeviceA-GigabitEthernet1/0/3] quit

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface GigabitEthernet 1/0/3

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.

[DeviceA-irf-port1/2] quit

[DeviceA] interface GigabitEthernet 1/0/3

[DeviceA-GigabitEthernet1/0/3] undo shutdown

[DeviceA-GigabitEthernet1/0/3] quit

[DeviceA] save

[DeviceA] irf-port-configuration active

# 为确保Device A与Device B在主设备选举过程中,Device A为主,修改Device A成员优先级为2(成员优先级大的优先,缺省情况下,设备的成员优先级均为1)。

[DeviceA] irf member 1 priority 2

# 激活IRF端口下的配置。

[DeviceA] irf-port-configuration active

配置Device B

# 将Device B的成员编号配置为2,并重启设备使新编号生效。

<DeviceB> system-view

[DeviceB] irf member 1 renumber 2

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

[DeviceB] quit

<DeviceB> reboot

# 参照图2-4进行物理连线,重新登录到Device B,配置IRF端口2/1,并将它与物理端口GigabitEthernet2/0/3绑定,并保存配置。

<DeviceB> system-view

[DeviceB] interface gigabitethernet 2/0/3

[DeviceB-GigabitEthernet2/0/3] shutdown

[DeviceB-GigabitEthernet2/0/3] quit

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface GigabitEthernet 2/0/3

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.

[DeviceB-irf-port2/1] quit

[DeviceB] interface GigabitEthernet 2/0/3

[DeviceB-GigabitEthernet2/0/3] undo shutdown

[DeviceB-GigabitEthernet2/0/3] quit

[DeviceB] save

# 激活IRF端口下的配置。

[DeviceB] irf-port-configuration active

配置Track,监测上、下行接口的物理状态。

<DeviceA> system-view

[DeviceA] track 1 interface gigabitethernet 1/0/1 physical

[DeviceA-track-1] quit

[DeviceA] track 2 interface gigabitethernet 1/0/2 physical

[DeviceA-track-2] quit

[DeviceA] track 3 interface gigabitethernet 2/0/1 physical

[DeviceA-track-3] quit

[DeviceA] track 4 interface gigabitethernet 2/0/2 physical

[DeviceA-track-3] quit

配置冗余组。

# 创建Node 1,Node 1和Device A绑定,为主节点,成员接口为GE1/0/1和GE1/0/2。关联的Track项为1和2。

[DeviceA] redundancy group aaa

[DeviceA-redundancy-group-aaa] node 1

[DeviceA-redundancy-group-aaa-node1] bind slot 1

[DeviceA-redundancy-group-aaa-node1] priority 100

[DeviceA-redundancy-group-aaa-node1] node-member interface gigabitethernet 1/0/1

[DeviceA-redundancy-group-aaa-node1] node-member interface gigabitethernet 1/0/2

[DeviceA-redundancy-group-aaa-node1] track 1 interface gigabitethernet 1/0/1

[DeviceA-redundancy-group-aaa-node1] track 2 interface gigabitethernet 1/0/2

[DeviceA-redundancy-group-aaa-node1] quit

# 创建Node 2,Node 2和Device B绑定,为备节点,成员接口为GE2/0/1和GE2/0/2。关联的Track项为3和4。

[DeviceA-redundancy-group-aaa] node 2

[DeviceA-redundancy-group-aaa-node2] bind slot 2

[DeviceA-redundancy-group-aaa-node2] priority 50

[DeviceA-redundancy-group-aaa-node2] node-member interface gigabitethernet 2/0/1

[DeviceA-redundancy-group-aaa-node2] node-member interface gigabitethernet 2/0/2

[DeviceA-redundancy-group-aaa-node2] track 3 interface gigabitethernet 2/0/1

[DeviceA-redundancy-group-aaa-node2] track 4 interface gigabitethernet 2/0/2

[DeviceA-redundancy-group-aaa-node2] return

配置会话热备

# 为确保当主成员设备故障,业务不中断地切到备成员设备,需配置会话热备功能。

<DeviceA> system-view

[DeviceA] session synchronization enable

4. 验证配置

缺省情况下的显示信息

# 显示冗余组信息。可以看到优先级高的Node 1为主节点,Node 1和Node 2下面的成员接口都处于UP状态。

[DeviceA-redundancy-group-aaa] display redundancy group aaa

Redundancy group aaa (ID 1):

  Node ID      Slot       Priority   Status        Track weight

  1            Slot1      100        Primary       255

  2            Slot2      50         Secondary     255

 

Preempt delay time remained     : 0    min

Preempt delay timer setting     : 1    min

Remaining hold-down time        : 0    sec

Hold-down timer setting         : 1    sec

Manual switchover request       : No

 

Member interfaces:

 

Node 1:

  Node member     Physical status

      GE1/0/1   UP

      GE1/0/2   UP

  Track info:

    Track    Status       Reduced weight     Interface

    1        Positive     255                GE1/0/1

    2        Positive     255                GE1/0/2

Node 2:

  Node member     Physical status

      GE2/0/1   UP

      GE2/0/2   UP

  Track info:

    Track    Status       Reduced weight     Interface

    3        Positive       255              GE2/0/1

    4        Positive       255              GE2/0/2

冗余组内主备倒换后的显示信息

# 手工关闭接口GE1/0/2,显示冗余组信息。可以看到优先级低的Node 2为主节点,Node 1的成员接口GE1/0/2故障(DOWN),GE1/0/1被协议关闭(DOWN(redundancy down)),Node 2的成员接口转发报文。

[DeviceA-redundancy-group-aaa] quit

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] shutdown

[DeviceA-GigabitEthernet1/0/2] display redundancy group aaa

Redundancy group aaa (ID 1):

  Node ID      Slot       Priority   Status        Track weight

  1            Slot1      100        Secondary     -255

  2            Slot2      50         Primary       255

 

Preempt delay time remained     : 0    min

Preempt delay timer setting     : 1    min

Remaining hold-down time        : 0    sec

Hold-down timer setting         : 1    sec

Manual switchover request       : No

 

Member interfaces:

 

Node 1:

  Node member     Physical status

      GE1/0/1       DOWN(redundancy down)

      GE1/0/2       DOWN

  Track info:

    Track    Status       Reduced weight     Interface

    1         Negative     255                GE1/0/1

    2         Negative     255                GE1/0/2 (Fault)

Node 2:

  Node member     Physical status

      GE2/0/1   UP

      GE2/0/2   UP

  Track info:

    Track    Status       Reduced weight     Interface

    3         Positive       255              GE2/0/1

    4         Positive       255              GE2/0/2

2.5.2  工作在三层,上下行分别连接一台设备

1. 组网需求

·            图2-5所示,Device A和Device B组成IRF,Device A和Device B分别用一个接口连接上行设备Device C,再分别用一个接口连接下行设备Device D。

·            Device C使用VLAN接口连接Device A和Device B,Device D也使用VLAN接口连接Device A和Device B。

·            正常情况下,流量走Device D——Device A——Device C;当这条通道上的任一链路或者设备故障时,流量切换到Device D——Device B——Device C。正常通道故障恢复时,流量再切回。

2. 组网图

图2-5 配置组网图

 

3. 配置步骤

图2-5所示,配置各接口的IP地址、路由、安全域及域间安全策略,保证网络可达,具体配置过程略。

配置IRF

# 配置IRF端口1/2,并将它与物理端口GigabitEthernet1/0/3绑定,并保存配置。

<DeviceA> system-view

[DeviceA] interface GigabitEthernet 1/0/3

[DeviceA-GigabitEthernet1/0/3] shutdown

[DeviceA-GigabitEthernet1/0/3] quit

[DeviceA] irf-port 1/2

[DeviceA-irf-port1/2] port group interface GigabitEthernet 1/0/3

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.

[DeviceA-irf-port1/2] quit

[DeviceA] interface GigabitEthernet 1/0/3

[DeviceA-GigabitEthernet1/0/3] undo shutdown

[DeviceA-GigabitEthernet1/0/3] quit

[DeviceA] save

[DeviceA] irf-port-configuration active

# 为确保Device A与Device B在主设备选举过程中,Device A为主,修改Device A成员优先级为2(成员优先级大的优先,缺省情况下,设备的成员优先级均为1)。

[DeviceA] irf member 1 priority 2

# 激活IRF端口下的配置。

[DeviceA] irf-port-configuration active

配置Device B

# 将Device B的成员编号配置为2,并重启设备使新编号生效。

<DeviceB> system-view

[DeviceB] irf member 1 renumber 2

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

[DeviceB] quit

<DeviceB> reboot

# 参照图2-5进行物理连线,重新登录到Device B,配置IRF端口2/1,并将它与物理端口GigabitEthernet2/0/3绑定,并保存配置。

<DeviceB> system-view

[DeviceB] interface gigabitethernet 2/0/3

[DeviceB-GigabitEthernet2/0/3] shutdown

[DeviceB-GigabitEthernet2/0/3] quit

[DeviceB] irf-port 2/1

[DeviceB-irf-port2/1] port group interface GigabitEthernet 2/0/3

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.

[DeviceB-irf-port2/1] quit

[DeviceB] interface GigabitEthernet 2/0/3

[DeviceB-GigabitEthernet2/0/3] undo shutdown

[DeviceB-GigabitEthernet2/0/3] quit

[DeviceB] save

# 激活IRF端口下的配置。

[DeviceB] irf-port-configuration active

配置以太网冗余接口

# 创建Reth1,IP地址为1.1.1.2/24,成员接口为GE1/0/1和GE2/0/1,其中GE1/0/1的优先级为255,GE2/0/1的优先级为50。

<DeviceA> system-view

[DeviceA] interface reth 1

[DeviceA-Reth1] ip address 1.1.1.2 24

[DeviceA-Reth1] member interface gigabitethernet 1/0/1 priority 255

[DeviceA-Reth1] member interface gigabitethernet 2/0/1 priority 50

[DeviceA-Reth1] quit

# 创建Reth2,IP地址为2.2.2.2/24,成员接口为GE1/0/2和GE2/0/2,其中GE1/0/2的优先级为255,GE2/0/2的优先级为50。

[DeviceA] interface reth 2

[DeviceA-Reth2] ip address 2.2.2.2 24

[DeviceA-Reth2] member interface gigabitethernet 1/0/2 priority 255

[DeviceA-Reth2] member interface gigabitethernet 2/0/2 priority 50

[DeviceA-Reth2] quit

配置Track,监测上、下行接口的物理状态。

[DeviceA] track 1 interface gigabitethernet 1/0/1 physical

[DeviceA-track-1] quit

[DeviceA] track 2 interface gigabitethernet 1/0/2 physical

[DeviceA-track-2] quit

[DeviceA] track 3 interface gigabitethernet 2/0/1 physical

[DeviceA-track-3] quit

[DeviceA] track 4 interface gigabitethernet 2/0/2 physical

[DeviceA-track-4] quit

配置冗余组

# 创建Node 1,Node 1和Device A绑定,为主节点。关联的Track项为1和2。

[DeviceA] redundancy group aaa

[DeviceA-redundancy-group-aaa] node 1

[DeviceA-redundancy-group-aaa-node1] bind slot 1

[DeviceA-redundancy-group-aaa-node1] priority 100

[DeviceA-redundancy-group-aaa-node1] track 1 interface gigabitethernet 1/0/1

[DeviceA-redundancy-group-aaa-node1] track 2 interface gigabitethernet 1/0/2

[DeviceA-redundancy-group-aaa-node1] quit

# 创建Node 2,Node 2和Device B绑定,为备节点。关联的Track项为3和4。

[DeviceA-redundancy-group-aaa] node 2

[DeviceA-redundancy-group-aaa-node2] bind slot 2

[DeviceA-redundancy-group-aaa-node2] priority 50

[DeviceA-redundancy-group-aaa-node2] track 3 interface gigabitethernet 2/0/1

[DeviceA-redundancy-group-aaa-node2] track 4 interface gigabitethernet 2/0/2

[DeviceA-redundancy-group-aaa-node2] quit

# 将Reth1和Reth2添加到冗余组中。

[DeviceA-redundancy-group-aaa] member interface reth 1

[DeviceA-redundancy-group-aaa] member interface reth 2

[DeviceA-redundancy-group-aaa] quit

配置会话热备

# 为确保当主成员设备故障,业务不中断地切到备成员设备,需配置会话热备功能。

[DeviceA] session synchronization enable

4. 验证配置

缺省情况下的显示信息

# 显示冗余组信息。可以看到优先级高的Node 1为主节点,Reth1和Reth2中优先级高的成员接口处于激活状态。

[DeviceA] display redundancy group aaa

Redundancy group aaa (ID 1):

  Node ID   Slot     Priority  Status       Track weight

  Node1     Slot1    100       Primary      255

  Node2     Slot2    50        Secondary    255

 

Preempt delay time remained   : 0    min

Preempt delay timer setting   : 1    min

Remaining hold-down time      : 0    sec

Hold-down timer setting       : 300  sec

Manual switchover request     : No

 

Member interfaces:

    Reth1          Reth2

 

Node 1:

  Track info:

    Track     Status        Reduced weight       Interface

    1         Positive      255                  GE1/0/1

    2         Positive      255                  GE1/0/2

Node 2:

  Track info:

    Track     Status        Reduced weight      Interface

    3         Positive      255                 GE2/0/1

    4         Positive      255                 GE2/0/2

# 显示Reth信息。可以看到Reth1和Reth2中优先级高的成员接口处于激活状态。

[DeviceA] display reth interface reth 1

Reth1 :

  Redundancy group  : aaa

  Member                Physical status         Forwarding status    Presence status

  GE1/0/1               UP                      Active               Normal

  GE2/0/1               UP                      Inactive             Normal

[DeviceA] display reth interface reth 2

Reth2 :

  Redundancy group  : aaa

  Member                Physical status         Forwarding status    Presence status

  GE1/0/2               UP                      Active               Normal

  GE2/0/2               UP                      Inactive             Normal

冗余组内主备倒换后的显示信息

# 手工关闭接口GE1/0/2,显示冗余组信息。可以看到优先级低的Node 2为主节点。

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] shutdown

[DeviceA-GigabitEthernet1/0/2] display redundancy group aaa

Redundancy group aaa (ID 1):

  Node ID   Slot     Priority  Status       Track weight

  Node1     Slot1    100       Secondary    -255

  Node2     Slot2    50        Primary      255

 

Preempt delay time remained   : 0    min

Preempt delay timer setting   : 1    min

Remaining hold-down time      : 0    sec

Hold-down timer setting       : 300  sec

Manual switchover request     : No

 

Member interfaces:

    Reth1          Reth2

 

Node 1:

  Track info:

    Track     Status       Reduced weight     Interface

    1         Negative     255                GE1/0/1

    2         Negative     255                GE1/0/2(Fault)

Node 2:

  Track info:

    Track     Status       Reduced weight     Interface

    3         Positive     255                GE2/0/1

    4         Positive     255                GE2/0/2

# 显示Reth的信息。Reth2下的接口GE1/0/2故障(DOWN),Reth1下的接口GE1/0/1被协议关闭(DOWN(redundancy down))。GE2/0/1和GE2/0/2激活。

[DeviceA-GigabitEthernet1/0/2] display reth interface reth 1

Reth1 :

Redundancy group  : aaa

  Member                 Physical status         Forwarding status    Presence status

  GE1/0/1                DOWN(redundancy down)   Inactive             Normal

  GE2/0/1                UP                      Active               Normal

[DeviceA-GigabitEthernet1/0/2] display reth interface reth 2

Reth2 :

Redundancy group  : aaa

  Member                 Physical status         Forwarding status    Presence status

  GE1/0/2                DOWN                    Inactive             Normal

  GE2/0/2                UP                      Active               Normal


编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明