当前位置:   article > 正文

eNSP 第五篇:VRRP,热备份,虚拟网关路由技术,双网关_ensp的vrrp

ensp的vrrp

VRRP

vrrp,虚拟路由冗余协议,工作在第三层中;vrrp可以分为网关冗余和设备冗余,网关冗余一般是接入终端的网关放于核心层中;设备冗余一般做在汇聚层到核心层之间,接入终端设备网关一般在汇聚层,与静态路由技术结合,对访问公网的流量经行路由规划;vrrp还经常和mstp结合,组成典型组网结构,mstp可以在对二层链路的流量经行规划,而vrrp则在三层状态下对流量经行规划,形成一个高效,负载均衡的网络结构;

vrrp一般工作双核心或者多核心的网络结构中,可以在一段接口下映射ip地址,当两台或者多台设备同时在一个接口中映射通过IP,则可以通过计算优先级等参数,使映射的IP只有一个生效,即为master状态,其设备映射的ip则不生效,即为backup状态,当master设备由于链路通信中断、设备故障等其他因素导致无法正常工作时,其他设备拥有相同映射ip的设备则会抢占为master,从而使整个网络可以正常工作,不至于造成网络的瘫痪等现象发生。

常用命令:

//配置虚拟IP,id范围:1-255

vrrp vrid [id] virtual-ip [虚拟IP]

//配置虚拟IP的优先级,默认100,越高越优先,优先范围:1-254

vrrp vrid [id] priority [优先级]

//配置抢占超时,默认0s(立即抢占)

vrrp vrid [id] preempt-mode timer delay [0~3600]

//配置接口监听及自降优先级值

vrrp vrid [id] track interface [接口] reduced [1-255]

实验

本篇只做vrrp相关配置

其他相关配置:https://blog.csdn.net/weixin_46678521/article/details/126472140

LSW1

[LSW1]interface vlan 2

[LSW1-Vlanif2]vrrp vrid 1 virtual-ip 10.2.2.1

[LSW1-Vlanif2]vrrp vrid 1 priority 120

[LSW1-Vlanif2]vrrp vrid 1 track interface g0/0/5 reduced 30

[LSW1-Vlanif2]vrrp vrid 1 preempt-mode timer delay 10

[LSW1-Vlanif2]quit

[LSW1]interface vlan 3

[LSW1-Vlanif3]vrrp vrid 2 virtual-ip 10.3.3.1

[LSW1-Vlanif3]vrrp vrid 2 track interface g0/0/5 reduced 30

[LSW1-Vlanif3]quit

[LSW1]interface vlan 4

[LSW1-Vlanif4]vrrp vrid 3 virtual-ip 10.4.4.254

[LSW1-Vlanif4]vrrp vrid 3 priority 120

[LSW1-Vlanif4]vrrp vrid 3 track interface g0/0/5 reduced 30

[LSW1-Vlanif4]vrrp vrid 3 preempt-mode timer delay 10

[LSW1-Vlanif4]quit

[LSW1]interface vlan 5

[LSW1-Vlanif5]vrrp vrid 4 virtual-ip 10.5.5.254

[LSW1-Vlanif5]vrrp vrid 4 track interface g0/0/5 reduced 30

[LSW1-Vlanif5]quit

LSW2

[LSW2]interface vlan 2

[LSW2-Vlanif2]vrrp vrid 1 virtual-ip 10.2.2.1

[LSW2-Vlanif2]vrrp vrid 1 track interface g0/0/5 reduced 30

[LSW2-Vlanif2]quit

[LSW2]interface vlan 3

[LSW2-Vlanif3]vrrp vrid 2 virtual-ip 10.3.3.1

[LSW2-Vlanif3]vrrp vrid 2 priority 120

[LSW2-Vlanif3]vrrp vrid 2 track interface g0/0/5 reduced 30

[LSW2-Vlanif3]vrrp vrid 2 preempt-mode timer delay 10

[LSW2-Vlanif3]quit

[LSW2]interface vlan 4

[LSW2-Vlanif4]vrrp vrid 3 virtual-ip 10.4.4.254

[LSW2-Vlanif4]vrrp vrid 3 track interface g0/0/5 reduced 30

[LSW2-Vlanif4]quit

[LSW2]interface vlan 5

[LSW2-Vlanif5]vrrp vrid 4 virtual-ip 10.5.5.254

[LSW2-Vlanif5]vrrp vrid 4 priority 120

[LSW2-Vlanif5]vrrp vrid 4 track interface g0/0/5 reduced 30

[LSW2-Vlanif5]vrrp vrid 4 preempt-mode timer delay 10

[LSW2-Vlanif5]quit

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/373580
推荐阅读
相关标签
  

闽ICP备14008679号