首页 > 其他分享 >冗余组典型配置举例

冗余组典型配置举例

时间:2024-07-02 15:20:07浏览次数:1  
标签:典型 redundancy group gigabitethernet 举例 interface aaa DeviceA 冗余

1、组网需求

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

  • 如图所示,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、组网图

3、配置步骤

(1) 配置IRF

  • 配置Device A
# 配置IRF端口1,并将它与物理端口Ten-GigabitEthernet1/5/0/1绑定。

<DeviceA> system-view
[DeviceA] irf member 1
 Info: Member ID change will take effect after the member reboots and operates in IRF mode.
[DeviceA] irf-port 2
[DeviceA-irf-port2] port group interface ten-gigabitethernet 1/5/0/1
[DeviceA-irf-port2] quit

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

[DeviceA] irf priority 2

# 将当前配置保存到下次启动配置文件。

[DeviceA] quit
<DeviceA> save

# 将设备的运行模式切换到IRF模式。

<DeviceA> system-view
[DeviceA] chassis convert mode irf
The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y
 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y
 Please wait...
 Saving the converted configuration file to the main board succeeded.
Slot 1:
 Saving the converted configuration file succeeded.
 Now rebooting, please wait...

设备重启后Device A组成了只有一台成员设备的IRF。
  • 配置Device B
# 配置Device B的成员编号为2,创建IRF端口1,并将它与物理端口Ten-GigabitEthernet1/5/0/1绑定。

<DeviceB> system-view
[DeviceB] irf member 2
 Info: Member ID change will take effect after the member reboots and operates in IRF mode.
[DeviceB] irf-port 1
[DeviceB-irf-port1] port group interface ten-gigabitethernet 1/5/0/1
[DeviceB-irf-port1] quit

# 将当前配置保存到下次启动配置文件。

[DeviceB] quit
<DeviceB> save

# 参照图2-6进行物理连线。

# 将设备的运行模式切换到IRF模式。

<DeviceB> system-view
[DeviceB] chassis convert mode irf
The device will switch to IRF mode and reboot. You are recommended to save the current running configuration and specify the configuration file for the next startup. Continue? [Y/N]:y
 Do you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:y
 Please wait...
 Saving the converted configuration file to the main board succeeded.
Slot 1:
 Saving the converted configuration file succeeded.
 Now rebooting, please wait...

设备B重启后与设备A形成IRF。

(2) 配置Track,监测上、下行接口的状态以及安全引擎上Blade接口的物理状态。

<DeviceA> system-view
[DeviceA] track 1 interface ten-gigabitethernet 1/5/0/2 physical
[DeviceA-track-1] quit
[DeviceA] track 2 interface ten-gigabitethernet 1/5/0/3 physical
[DeviceA-track-2] quit
[DeviceA] track 3 interface ten-gigabitethernet 2/5/0/2 physical
[DeviceA-track-3] quit
[DeviceA] track 4 interface ten-gigabitethernet 2/5/0/3 physical
[DeviceA-track-4] quit
[DeviceA] track 5 interface blade 1/4/0/1 physical
[DeviceA-track-5] quit
[DeviceA] track 6 interface blade 2/4/0/1 physical
[DeviceA-track-6] quit

(3) 配置备份组,并指定Device A上的安全引擎为主,Device B上的安全引擎为备。

[DeviceA] failover group group1
[DeviceA-failover-group-group1] bind chassis 1 slot 4 cpu 1 primary
[DeviceA-failover-group-group1] bind chassis 2 slot 4 cpu 1 secondary
[DeviceA-failover-group-group1] quit

(4) 配置冗余组。

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

[DeviceA] redundancy group aaa
[DeviceA-redundancy-group-aaa] node 1
[DeviceA-redundancy-group-aaa-node1] bind chassis 1
[DeviceA-redundancy-group-aaa-node1] priority 100
[DeviceA-redundancy-group-aaa-node1] node-member interface ten-gigabitethernet 1/5/0/2
[DeviceA-redundancy-group-aaa-node1] node-member interface ten-gigabitethernet 1/5/0/3
[DeviceA-redundancy-group-aaa-node1] track 1 interface ten-gigabitethernet 1/5/0/2
[DeviceA-redundancy-group-aaa-node1] track 2 interface ten-gigabitethernet 1/5/0/3
[DeviceA-redundancy-group-aaa-node1] track 5 interface blade 1/4/0/1
[DeviceA-redundancy-group-aaa-node1] quit

# 创建Node 2,Node 2和Device B绑定,为备节点,成员接口为Ten-GigabitEthernet2/5/0/2和Ten-GigabitEthernet2/5/0/3。关联的Track项为3、4和6。

[DeviceA-redundancy-group-aaa] node 2
[DeviceA-redundancy-group-aaa-node2] bind chassis 2
[DeviceA-redundancy-group-aaa-node2] priority 50
[DeviceA-redundancy-group-aaa-node2] node-member interface ten-gigabitethernet 2/5/0/2
[DeviceA-redundancy-group-aaa-node2] node-member interface ten-gigabitethernet 2/5/0/3
[DeviceA-redundancy-group-aaa-node2] track 3 interface ten-gigabitethernet 2/5/0/2
[DeviceA-redundancy-group-aaa-node2] track 4 interface ten-gigabitethernet 2/5/0/3
[DeviceA-redundancy-group-aaa-node2] track 6 interface blade 2/4/0/1
[DeviceA-redundancy-group-aaa-node2] quit

# 将备份组1添加到冗余组中。

[DeviceA-redundancy-group-aaa] member failover group group1
[DeviceA-redundancy-group-aaa] quit

(5) 配置接口IP地址

# 根据组网图中规划的信息,配置各接口的IP地址,具体配置步骤如下。

[DeviceA] interface ten-gigabitethernet 1/5/0/2
[DeviceA-Ten-GigabitEthernet1/5/0/2] ip address 1.1.1.2 255.255.255.0
[DeviceA-Ten-GigabitEthernet1/5/0/2] quit

请参考以上步骤配置其他接口的IP地址,具体配置步骤略。

(6) 配置静态路由

本举例仅以静态路由方式配置路由信息。实际组网中,请根据具体情况选择相应的路由配置方式。

# 请根据组网图中规划的信息,配置静态路由。本举例假设LAN网段为5.5.5.0/24,实际使用中请以具体组网情况为准,具体配置步骤如下。

[DeviceA] ip route-static 0.0.0.0 0 1.1.1.1
[DeviceA] ip route-static 0.0.0.0 0 2.2.2.1 preference 80
[DeviceA] ip route-static 5.5.5.0 24 3.3.3.3
[DeviceA] ip route-static 5.5.5.0 24 4.4.4.3 preference 80

(7) 配置接口加入安全域

# 请根据组网图中规划的信息,将接口加入对应的安全域,具体配置步骤如下。

[DeviceA] security-zone name untrust
[DeviceA-security-zone-Untrust] import interface ten-gigabitethernet 1/5/0/2
[DeviceA-security-zone-Untrust] import interface ten-gigabitethernet 2/5/0/2
[DeviceA-security-zone-Untrust] quit
[DeviceA] security-zone name trust
[DeviceA-security-zone-Trust] import interface ten-gigabitethernet 1/5/0/3
[DeviceA-security-zone-Trust] import interface ten-gigabitethernet 2/5/0/3
[DeviceA-security-zone-Trust] quit

(8) 配置安全策略

# 配置名称为trust-untrust的安全策略规则,使LAN 1和LAN 2中的主机可以访问外网,具体配置步骤如下。

[DeviceA] security-policy ip
[DeviceA-security-policy-ip] rule 1 name trust-untrust
[DeviceA-security-policy-ip-1-trust-untrust] source-zone trust
[DeviceA-security-policy-ip-1-trust-untrust] destination-zone untrust
[DeviceA-security-policy-ip-1-trust-untrust] source-ip-subnet 5.5.5.0 24
[DeviceA-security-policy-ip-1-trust-untrust] action pass
[DeviceA-security-policy-ip-1-trust-untrust] quit
[DeviceA-security-policy-ip]quit

4、验证配置

(1) 缺省情况下的显示信息

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

[DeviceA] display redundancy group aaa
Redundancy group aaa (ID 1):
  Node ID      Chassis       Priority   Status        Track weight
  1            Chassis1      100        Primary       255
  2            Chassis4      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:
Member failover groups:
    group1
Node 1:
  Node member     Physical status
      XGE1/5/0/2   UP
      XGE1/5/0/3   UP
  Track info:
    Track    Status       Reduced weight     Interface
    1        Positive     255                XGE1/5/0/2
    2        Positive     255                XGE1/5/0/3
    5        Positive     255                Blade1/4/0/1
Node 2:
  Node member     Physical status
      XGE2/5/0/2   UP
      XGE2/5/0/3   UP
  Track info:
    Track    Status       Reduced weight     Interface
    3        Positive       255              XGE2/5/0/2
    4        Positive       255              XGE2/5/0/3
    6        Positive       255              Blade2/4/0/1

# 显示备份组信息。可以看到备份组中配置为Primary的安全引擎处理业务。

[DeviceA] display failover group group1
Stateful failover group information:

ID   Name                      Primary         Secondary       Active Status
255  group1 
               1/4.1           2/4.1           Primary

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

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

[DeviceA] interface ten-gigabitethernet 1/5/0/3
[DeviceA-Ten-GigabitEthernet1/5/0/3] shutdown
[DeviceA-Ten-GigabitEthernet1/5/0/3] quit
[DeviceA] display redundancy group aaa
Redundancy group aaa (ID 1):
  Node ID      Chassis       Priority   Status        Track weight
  1            Chassis1      100        Secondary     -255
  2            Chassis4      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:
Member failover groups:
    group1

Node 1:
  Node member     Physical status
      XGE1/5/0/2       DOWN(redundancy down)
      XGE1/5/0/3       DOWN
  Track info:
    Track    Status       Reduced weight     Interface
    1         Negative     255                XGE1/5/0/2
    2         Negative     255                XGE1/5/0/3 (Fault)
    5         Positive     255                Blade1/4/0/1
Node 2:
  Node member     Physical status
      XGE2/5/0/2   UP
      XGE2/5/0/3   UP
  Track info:
    Track    Status       Reduced weight     Interface
    3         Positive       255              XGE2/5/0/2
    4         Positive       255              XGE2/5/0/3
    6         Positive       255              Blade2/4/0/1

# 显示备份组信息。可以看到备份组中配置为Secondary的安全引擎处理业务。

[DeviceA] display failover group group1
Stateful failover group information:
ID   Name                      Primary         Secondary       Active Status
255  group1                    1/4.1           2/4.1           Secondary

标签:典型,redundancy,group,gigabitethernet,举例,interface,aaa,DeviceA,冗余
From: https://www.cnblogs.com/OpenSourceSite/p/18279906

相关文章

  • 冗余组
    以太网冗余接口1、简介以太网冗余接口(RedundantEthernet,Reth)是一种三层虚拟接口。一个以太网冗余接口中包含两个成员接口,使用以太网冗余接口可以实现这两个接口之间的冗余备份。2、以太网冗余接口的工作原理以太网冗余接口的成员接口有两种状态:激活状态:能够收发报文。非......
  • 测试人员如何高效规避冗余测试
    在软件开发过程中,测试是确保产品质量的关键环节。然而,冗余测试不仅浪费时间和资源,还可能导致测试结果的不准确和效率低下。如何高效地规避冗余测试,成为每个测试人员面临的重要课题。那么,测试人员应如何高效规避冗余测试?有哪些方法和策略能够帮助我们优化测试流程,提升测试效率?......
  • Centos双网卡冗余绑定
    1.前言关于双网卡绑定,前前后后踩过不少的坑,虽然这是RHCE中的一道题,但是在实践中碰到问题也够喝一壶的。在实践中,虚拟机、物理机都做过,但是不尽相同,大部分的坑也集中在这里,本文长期更新关于网卡绑定中遇到的问题及处理方法。现在的服务器默认都配备4张千兆网卡,在生产环境......
  • ARM32开发--CRC循环冗余校验
    CRC循环冗余校验循环冗余校验码是一种用在数字网络和存储设备上的差错校验码,可以校验原始数据的偶然差错。CRC计算单元使用固定多项式计算32位CRC校验码。1.硬件CRC在单片机中,芯片具有专用的CRC计算单元,它是按照32位数据长度进行计算。它相当于是我们的MCU有个小......
  • 【C++进阶学习】第三弹——菱形继承和虚拟继承——菱形继承的二义性和数据冗余问题
    继承(上):【C++进阶学习】第一弹——继承(上)——探索代码复用的乐趣-CSDN博客继承(下):【C++进阶学习】第二弹——继承(下)——挖掘继承深处的奥秘-CSDN博客前言:在前面,我们已经讲过继承的相关知识,今天我们来将一个由继承拓展出来的很重要的知识,那就是——菱形继承和虚拟继承及相关知......
  • 【区分vue2和vue3下的element UI Descriptions 描述列表组件,分别详细介绍属性,事件,方法
    在ElementUI(为Vue2设计)和ElementPlus(为Vue3设计)中,Descriptions(描述列表)组件通常用于展示一系列的结构化信息。然而,需要明确的是,ElementUI官方库中并没有直接名为Descriptions的组件,但在ElementPlus中,该组件是存在的。以下将分别介绍ElementPlus中的De......
  • 【区分vue2和vue3下的element UI Result 结果组件,分别详细介绍属性,事件,方法如何使用,并
    在Vue2中,ElementUI并没有直接提供名为Result的组件。但是,在Vue3的ElementPlus中,Result组件是用来展示操作结果或状态信息的。以下是ElementPlus中Result组件的详细介绍,以及如何在Vue3中使用它。由于Vue2没有该组件,我将只介绍Vue3下的使用。Vu......
  • CHATGPT说这个运算放大器是比较器,我说这是运放典型的同相比例放大器,一个光控电路分析
    纠正图1光控电路该电路来自一个问题,链接见文末。因GPT的分析有误,特此纠正。引用图片和答案用于分析,如侵权请联系本人。电路分析:该电路为光控灯电路,灯光为LED发光二极管D。光敏电阻RG的阻值和光线强度关系,光线暗,电阻大,光线亮则电阻小;光敏电阻的暗电阻在1000K......
  • 在面向对象的创建中,需要用到def init(self)方法。括号里的self是必选参数,必选参数存在
    问题描述:在面向对象的创建中,需要用到definit(self)方法。括号里的self是必选参数,必选参数存在的意义是什么,self可以干什么用,请举例表达self的用处。问题解答:在面向对象编程中,__init__(self)方法是类的构造函数,用于初始化对象实例。括号里的self参数是必选参数,代表类实例......
  • Tcp粘包半包问题(现实场景举例帮助理解)
    理解粘包问题时,我们可以将这个过程想象得更加生活化一些。想象你正在经营一家水果拼装店,你的任务是接收来自不同客户的水果订单,并将这些水果按照订单要求重新组装起来。每份订单中的水果都事先被切成了便于快递的“水果片”,并通过同一条传送带送过来。现在,你收到了两份订单,一......