冗余组典型配置举例

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 1Info: 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]:yDo you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:yPlease 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 2Info: 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]:yDo you want to convert the content of the next startup configuration file flash:/startup.cfg to make it available in IRF mode? [Y/N]:yPlease 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 weight1            Chassis1      100        Primary       2552            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       : NoMember interfaces:
Member failover groups:group1
Node 1:Node member     Physical statusXGE1/5/0/2   UPXGE1/5/0/3   UPTrack info:Track    Status       Reduced weight     Interface1        Positive     255                XGE1/5/0/22        Positive     255                XGE1/5/0/35        Positive     255                Blade1/4/0/1
Node 2:Node member     Physical statusXGE2/5/0/2   UPXGE2/5/0/3   UPTrack info:Track    Status       Reduced weight     Interface3        Positive       255              XGE2/5/0/24        Positive       255              XGE2/5/0/36        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 weight1            Chassis1      100        Secondary     -2552            Chassis4      50         Primary       255Preempt 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       : NoMember interfaces:
Member failover groups:group1Node 1:Node member     Physical statusXGE1/5/0/2       DOWN(redundancy down)XGE1/5/0/3       DOWNTrack info:Track    Status       Reduced weight     Interface1         Negative     255                XGE1/5/0/22         Negative     255                XGE1/5/0/3 (Fault)5         Positive     255                Blade1/4/0/1
Node 2:Node member     Physical statusXGE2/5/0/2   UPXGE2/5/0/3   UPTrack info:Track    Status       Reduced weight     Interface3         Positive       255              XGE2/5/0/24         Positive       255              XGE2/5/0/36         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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/736332.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

git 通过ssh 拉 gitlab项目代码

通过https 登录token 拉取不到 ,就用ssh吧!先查看本地git的配置 git config --list --global发现没有配置 增加配置 git config --global user.name "beckh" git config --global user.email "自己的邮箱" 生成密钥 ssh-keygen -t rsa -C "自己邮箱…

java实现微信登录

上一篇做了php的微信登录,所以也总结一下Java的微信授权登录并获取用户信息这个功能的开发流程。前言 上一篇做了php的微信登录,所以也总结一下Java的微信授权登录并获取用户信息这个功能的开发流程。 配置 配置什么的就不多说了,详细的配置可以直接前往我上一篇查看。 http…

程序员的零食好物:十分米莲藕汁 写代码头秃

今日种草打卡一件办公室清爽养生饮料十分米饮品 宠粉福利店铺 :某信小程序:十分米生活馆 抖店:十分米当夏日的热浪如潮水般汹涌而来,你是否渴望一种能瞬间驱散酷暑、唤醒味蕾的神奇饮品? 今天,我要为你介绍的,就是这样一款清凉解暑的秘密武器——十分米莲藕汁宝应。 它不…

SpringBoot+mail 轻松实现各类邮件自动推送

一、简介 在实际的项目开发过程中,经常需要用到邮件通知功能。例如,通过邮箱注册,邮箱找回密码,邮箱推送报表等等,实际的应用场景非常的多。 早期的时候,为了能实现邮件的自动发送功能,通常会使用 JavaMail 相关的 api 来完成。后来 Spring 推出的 JavaMailSender 工具,…

fastjson低版本反序列化bug/设计缺陷记录

1. 问题场景 _id正常的赋值 相同的代码我们继续跑 _id的值被反序列化到id上了??? 相同的代码,跑出不一样的反序列化结果,amazing 2.问题探究 2.1 List<FieldInfo> 反序列化时会先创建一个List<FieldInfo>每一个FieldInfoList<FieldInfo>的填充方式:遍历…

编译安装Kubernetes 1.29 高可用集群(7)--Metrics Server节点监控配置

1.部署Metrics Server节点监控1.1 在任意k8s-master节点上下载Metrics Server的创建文件 https://github.com/kubernetes-sigs/metrics-server/releases wget https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.7.1/components.yaml 1.2 修改单机版配置…

warmup(php反序列化+SQL注入)

warmup(php反序列化+SQL注入)题目界面单看题目界面的话推测可能是SQL注入。题解 题目涉及三个附近,主要从index.php和conn.php入手。index.php中有两个功能,一个是检查请求中的Cookie,一个是检查用户提交的用户名和密码。检查Cookie 首先要求Cookie中的变量是一个数组,然后…

Web 服务端如何实现禁用视频下载 All In One

Web 服务端如何实现禁用视频下载 All In OneWeb 服务端如何实现禁用视频下载 All In Onedifficulty: Medium / 难度: 中等破解微信公众号禁用视频下载 ❓破解 HTML5 video controlslist="nodownload", 禁用 controls 显示下载选项 ✅// 开发者工具 定位 DOM 节点 bod…

冗余组

以太网冗余接口 1、简介以太网冗余接口(Redundant Ethernet,Reth)是一种三层虚拟接口。一个以太网冗余接口中包含两个成员接口,使用以太网冗余接口可以实现这两个接口之间的冗余备份。2、以太网冗余接口的工作原理 以太网冗余接口的成员接口有两种状态:激活状态:能够收发…

小区物业巡逻系统

功能点:现在的巡逻软件大部分都是需要买专门的配对设备,每次巡逻签到拿着设备去感应下,对于此,开发了这套功能,只要一部手机,然后开通公众号,就可以实名进行签到巡逻,支持巡逻没完, 再次进入可以继续签到,超时自动结束未完的巡逻流程;支持前端和后…

服务自启脚本

Linux服务器启动脚本Nacos自启脚本 1、创建服务脚本文件vim /etc/systemd/system/nacos.serivce2、重载脚本文件sudo systemctl daemon-reload3、创建自启sudo systemctl enable nacos4、具体的脚本文件如下[Unit]Description=Nacos ServerAfter=network.targetServiceType=for…

效率升级,从NAS开始:存储、查找、共享一键完成

在数字化时代,数据已经成为企业和个人最宝贵的资产之一。随着信息量的爆炸性增长,如何高效地存储、查找和共享数据成为了一个亟待解决的问题。铁威马F4-424 作为一款高性能的NAS设备,以其卓越的性能和丰富的功能,为用户提供了一站式的数据管理解决方案,让效率飞升成为可能…

2024年广东中考数学压轴题参考答案

作者:ZhaoGui,广东湛江出处:贵哥讲数学声明:本博客版权归[贵哥讲数学]所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出!

.Net Core Web Api 框架搭建简单步骤

1、建立.Net Core Web Api 项目 2、新建相关类库项目3、在EFCORE 项目中,创建DbContext 上下文实例,并将所有的实体类写入DbSet,在Program.cs 中注入创建的DbContext 实力及配置数据库链接信息 4、封装DbContext 仓储类 Repository 5、新建服务类及服务接口,继承仓储类进行…

《如 何 速 通 一 套 题》3

A election 定数:普及+,普及-,普及-,无,总计普及。 (思维,实现,算法,数据结构,总计) 双指针,每一次只会打死最左的和最右的,计算是死左边还是死右边即可。 \(O(N \log N) - O(1)\)。code #include <bits/stdc++.h> using namespace std;struct node {int x,…

ubuntu上部署vnc

环境:OS:18.04 说明: 安装盘没有vnc4server安装包,使用安装盘制作本地源找不到vnc的安装包,需要联网才行,下面是联网下的操作.1.安装vnc4serverroot@11g:/etc/apt#su - rootroot@11g:/etc/apt#apt updateroot@11g:/etc/apt#apt -y install vnc4server查看是否安装成功root@11g:…

centos7安装后yum 错误

前言 安装没有图形界面的centos7后,发现yum无法使用,一直错误,原因是因为yum需要更换源过程 先备份,yum源目录为 cd /etc/yum.repos.d/mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 下载阿里云的yum源wget -O /etc/yum.repos.d/CentOS-Base…

面试官:你了解git cherry-pick吗?

复盘一次不规范开发引发的线上问题事情要从一次不规范的代码开发开始说起 背景故事时间2024年某个风平浪静的周五晚上地点中国,北京,西二旗,某互联网大厂会议室人物小杰,小A,小B,老K对话老K:昨天提交的代码被测试打回来了!为什么小B没开发完的内容也一起提交上去了? 小…

Swin Transformer:最佳论文,准确率和性能双佳的视觉Transformer | ICCV 2021

论文提出了经典的Vision Transormer模型Swin Transformer,能够构建层级特征提高任务准确率,而且其计算复杂度经过各种加速设计,能够与输入图片大小成线性关系。从实验结果来看,Swin Transormer在各视觉任务上都有很不错的准确率,而且性能也很高来源:晓飞的算法工程笔记 公…

ros -slam - microros- PID控制器实现

上一节我们通过编码器完成了对机器人单个轮子的速度测量,完成了电机速度闭环控制的重要一步-反馈。 有了反馈,接着我们需要设计一个控制器来帮助我们实现这个需求,这个控制器的输入是当前的速度和目标速度,输出是应该给到电机的PWM占空比。 一、PID控制器介绍PID控制器是一…