华为vrrp配置

华为vrrp配置VRRP 是公共的一个冗余协议 HSRP 是思科私有的协议 拓补图如下 VRRP 配置

VRRP基本概念

vrrp原理

同一组的vrrp中只有一个master。通过优先级进行选举谁是master,优先级相同则通过IP地址进行选举。真正具有转发功能的是master,当master出现故障时,其他的backup会根据优先级重新选举新的master,继续进行转发。中间可能会断开几秒。

拓补图如下:

华为vrrp配置

VRRP配置

R1:
#
interface GigabitEthernet0/0/0
 ip address 3.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
 ip address 4.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/2
 ip address 5.1.1.254 255.255.255.0
#
rip 1
 version 2
 network 3.0.0.0
 network 4.0.0.0
 network 5.0.0.0
#
LSW1:
#
interface Vlanif10
 ip address 1.1.1.252 255.255.255.0
 vrrp vrid 1 virtual-ip 1.1.1.254
 vrrp vrid 1 priority 150
 vrrp vrid 1 track interface GigabitEthernet0/0/4 reduced 100
 vrrp vrid 1 authentication-mode md5  admin
#
interface Vlanif20
 ip address 2.1.1.252 255.255.255.0
 vrrp vrid 2 virtual-ip 2.1.1.254
#
interface Vlanif30
 ip address 3.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/4
 port link-type trunk
 port trunk pvid vlan 30
 port trunk allow-pass vlan 2 to 4094
#
rip 1
 version 2
 network 1.0.0.0
 network 2.0.0.0
 network 3.0.0.0
#






















































LSW2
#
interface Vlanif10
 ip address 1.1.1.253 255.255.255.0
 vrrp vrid 1 virtual-ip 1.1.1.254
 vrrp vrid 1 authentication-mode md5  admin
#
interface Vlanif20
 ip address 2.1.1.253 255.255.255.0
 vrrp vrid 2 virtual-ip 2.1.1.254
 vrrp vrid 2 priority 150
 vrrp vrid 2 track interface GigabitEthernet0/0/4 reduced 100
#
interface Vlanif40
 ip address 4.1.1.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/4
 port link-type trunk
 port trunk pvid vlan 40
 port trunk allow-pass vlan 2 to 4094
#
#
rip 1
 version 2
 network 1.0.0.0
 network 2.0.0.0
 network 4.0.0.0
#
LSW3和LSW4一样
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 20
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#


























































版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/232626.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • android usb调试在哪,USB调试在哪 安卓USB调试怎么打开「建议收藏」

    android usb调试在哪,USB调试在哪 安卓USB调试怎么打开「建议收藏」关于安卓USB调试大家都知道,但是由于因为安卓系统版本的原因,USB调试的选项有一些变化,导致有的朋友不知道如何打开USB调试,现在小编就给大家提供最新的USB调试模式打开方法。1、“USB调试”是什么?在计算机和Android设备之间复制数据、移动设备上安装应用程序、读取日志数据等需要打开手机上的“USB调试”模式。“USB调试”是Android提供的一个用于开发工作的功能。只有在打开了“USB…

    2025年11月10日
    2
  • BigDecimal.setScale用法总结「建议收藏」

    BigDecimal.setScale用法总结「建议收藏」1. BigDecimalnum1=newBigDecimal(2.225667);//这种写法不允许,会造成精度损失2. BigDecimalnum2=newB

    2022年8月1日
    7
  • 2022 sblime3 激活码【最新永久激活】2022.03.01

    (2022 sblime3 激活码)本文适用于JetBrains家族所有ide,包括IntelliJidea,phpstorm,webstorm,pycharm,datagrip等。https://javaforall.net/100143.htmlIntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,上面是详细链接哦~4…

    2022年4月2日
    54
  • Eclipse自动补全功能设置

    Eclipse自动补全功能设置如何设置Eclipse自动补全方法一:按照步骤设置第一步:点击Eclipse导航栏的Window按钮第二步:在Eclipse导航栏的window中找到preferences第三部:进入preferences中找到java→Editor→ContentAssit,在红箭头所指的方框内输入26个英文字母和一些符号“‘<>按照这些操作来进行,您就可以让Eclipse自动补全方法二:使用快捷键Alt+/…

    2022年6月28日
    35
  • Java 构造函数特点「建议收藏」

    Java 构造函数特点「建议收藏」(1).一般函数是用于定义对象应该具备的功能。而构造函数定义的是,对象在调用功能之前,在建立时,应该具备的一些内容。也就是对象的初始化内容。(2).构造函数是在对象建立时由jvm调用,给对象初始化。一般函数是对象建立后,当对象调用该功能时才会执行。(3).普通函数可以使用对象多次调用,构造函数就在创建对象时调用。(4).构造函数的函数名要与类名一样,而普通的函数只要符合标识符的命名…

    2022年6月17日
    21
  • python 爬虫 美女_Python3爬取美女妹子图片

    python 爬虫 美女_Python3爬取美女妹子图片1.效果图先看效果图,哈哈哈,是不是很有学习的欲望了,开干。爬图的数量根据你输入的页数确定,纯洁的我只是适当的爬了几张学习技术。效果图2.爬取妹子图片准备工作Python3.xPycharm等随意一款编辑器os库、requests库、pyquery库2.1安装库2.1.1cmd安装方式打开cmd控制台打开cam控制台在控制台分别输入以下代码:pipinstallrequestspip…

    2025年11月17日
    4

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号