首页 > 其他分享 >MSTP-VRRP-DHCP-OSPF-BFD实验(三)

MSTP-VRRP-DHCP-OSPF-BFD实验(三)

时间:2023-05-15 23:31:41浏览次数:49  
标签:HX BFD int ip MSTP 192.168 VRRP SW1 SW2

配置核心交换机SVI
[HX_SW1]int vlanif 2
[HX_SW1-Vlanif2]ip add 192.168.2.253 24
[HX_SW1-Vlanif2]int vlanif 3
[HX_SW1-Vlanif3]ip add 192.168.3.253 24
[HX_SW1-Vlanif3]int vlanif 4
[HX_SW1-Vlanif4]ip add 192.168.4.253 24
[HX_SW1-Vlanif4]int vlanif 5
[HX_SW1-Vlanif5]ip add 192.168.5.253 24
[HX_SW1-Vlanif5]int vlanif 6
[HX_SW1-Vlanif6]ip add 192.168.6.253 24
[HX_SW1-Vlanif6]int vlanif 200
[HX_SW1-Vlanif200]ip add 192.168.200.253 24
[HX_SW1-Vlanif200]int vlanif 800
[HX_SW1-Vlanif800]ip add 192.168.8.2 24

-------------------

[HX_SW2]int vlanif 2
[HX_SW2-Vlanif2]ip add 192.168.2.254 24
[HX_SW2-Vlanif2]int vlanif 3
[HX_SW2-Vlanif3]ip add 192.168.3.254 24
[HX_SW2-Vlanif3]int vlanif 4
[HX_SW2-Vlanif4]ip add 192.168.4.254 24
[HX_SW2-Vlanif4]int vlanif 5
[HX_SW2-Vlanif5]ip add 192.168.5.254 24
[HX_SW2-Vlanif5]int vlanif 6
[HX_SW2-Vlanif6]ip add 192.168.6.254 24
[HX_SW2-Vlanif6]int vlanif 200
[HX_SW2-Vlanif200]ip add 192.168.200.254 24
[HX_SW2-Vlanif200]int vlanif 801
[HX_SW2-Vlanif801]ip add 192.168.8.254 24
配置 virtual-ip 地址
[HX_SW1]int vlanif 2
[HX_SW1-Vlanif2]vrrp vrid 2 virtual-ip 192.168.2.1 
[HX_SW1-Vlanif2]vrrp vrid 2 priority 105
[HX_SW1-Vlanif2]int vlanif 3
[HX_SW1-Vlanif3]vrrp vrid 3 virtual-ip 192.168.3.1
[HX_SW1-Vlanif3]vrrp vrid 3 priority 105
[HX_SW1-Vlanif3]int vlanif 200
[HX_SW1-Vlanif200]vrrp vrid 200 virtual-ip 192.168.200.1
[HX_SW1-Vlanif200]vrrp vrid 200 priority 105

------------------
[HX_SW1-Vlanif200]int vlanif 4
[HX_SW1-Vlanif4]vrrp vrid 4 virtual-ip 192.168.4.1
[HX_SW1-Vlanif4]int vlanif 5
[HX_SW1-Vlanif5]vrrp vrid 5 virtual-ip 192.168.5.1
[HX_SW1-Vlanif5]int vlanif 6
[HX_SW1-Vlanif6]vrrp vrid 6 virtual-ip 192.168.6.1

-----------------

[HX_SW2]int vlanif 2
[HX_SW2-Vlanif2]vrrp vrid 2 virtual-ip 192.168.2.1
[HX_SW2-Vlanif2]int vlanif 3
[HX_SW2-Vlanif3]vrrp vrid 3 virtual-ip 192.168.3.1
[HX_SW2-Vlanif3]int vlanif 200
[HX_SW2-Vlanif200]vrrp vrid 200 virtual-ip 192.168.200.1
[HX_SW2-Vlanif200]int vlanif 4
[HX_SW2-Vlanif4]vrrp vrid 4 virtual-ip 192.168.4.1
[HX_SW2-Vlanif4]vrrp vrid 4 priority 105
[HX_SW2-Vlanif4]int vlanif 5
[HX_SW2-Vlanif5]vrrp vrid 5 virtual-ip 192.168.5.1
[HX_SW2-Vlanif5]vrrp vrid 5 priority 105
[HX_SW2-Vlanif5]int vlanif 6
[HX_SW2-Vlanif6]vrrp vrid 6 virtual-ip 192.168.6.1
[HX_SW2-Vlanif6]vrrp vrid 6 priority 105
配置结果核对
[HX_SW1]display  vrrp brief 
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
2     Master       Vlanif2                  Normal   192.168.2.1    
3     Master       Vlanif3                  Normal   192.168.3.1    
4     Backup       Vlanif4                  Normal   192.168.4.1    
5     Backup       Vlanif5                  Normal   192.168.5.1    
6     Backup       Vlanif6                  Normal   192.168.6.1    
200   Master       Vlanif200                Normal   192.168.200.1  
----------------------------------------------------------------
Total:6     Master:3     Backup:3     Non-active:0     
[HX_SW1]

-------------

[HX_SW2]display vrrp brief 
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
2     Backup       Vlanif2                  Normal   192.168.2.1    
3     Backup       Vlanif3                  Normal   192.168.3.1    
4     Master       Vlanif4                  Normal   192.168.4.1    
5     Master       Vlanif5                  Normal   192.168.5.1    
6     Master       Vlanif6                  Normal   192.168.6.1    
200   Backup       Vlanif200                Normal   192.168.200.1  
----------------------------------------------------------------
Total:6     Master:3     Backup:3     Non-active:0
接入端测试

MSTP-VRRP-DHCP-OSPF-BFD实验(三)_SVI

标签:HX,BFD,int,ip,MSTP,192.168,VRRP,SW1,SW2
From: https://blog.51cto.com/u_11726705/6281619

相关文章

  • MSTP-VRRP-DHCP-OSPF-BFD实验(二)
    所有交换机需启用MSTP服务[JR_SW7]stpregion-configuration[JR_SW7-mst-region]region-nameaa[JR_SW7-mst-region]revision-level1[JR_SW7-mst-region]instance1vlan23200[JR_SW7-mst-region]instance2vlan456[JR_SW7-mst-region]activeregion-configuration......
  • golang vrrp 包
    vrrp是一个比较有用的功能,可以实现业务访问的的高可用,keepalived就使用了此协议(当然还集成了lvs)此包是基于了社区提供的VRRP-go包调整的,解决了一些问题:比如不是gomod的,部分依赖三方包不兼容参考使用gomod gomodinitgithub.com/rongfengliang/demoappv......
  • MSTP
    概念MSTP:multiplespanningtreeprotocolMSTP兼容RSTP和STP,既可以快速收敛,又提供了数据转发的多条冗余链路;数据转发过程中实现vlan数据的负载均衡MST域Multiplespanningtreeregion:由交换网络中多台网络设备及之间的网段构成MSTIMST域内可以生成多颗生成树,每颗生成树都称......
  • VRRP
    概念VRRP:VirtualrouteredundancyprotocolVRRP属于三层冗余技术VRRP既能实现网关的备份,又能解决多个网关相互冲突的问题报文报文名称:advertisement,发送频率是1s,周期是3报文目的地址:224.0.0.18报文目的MAC:01-00-5E-00-00-12报文协议号:112优先级参数0:不参与VRRPm......
  • 防火墙----VRRP
      hrp接口需要配置IP地址,当未配置HRP协议时,dispvrrpbrief看到的都是Backup状态hrp接口需要加入安全区域,也可以加入自己创建的安全区域,并放通安全策略,localtoany(或刚创建的,hrp接口所加入的安全区域)------------2台防火墙都要配置,才能互ping成功,hrp的必要条件配置双机......
  • BFD单臂回声
    全局启用BFD[R3]bfd配置bfdR3]bfdaabindpeer-ip12.1.1.2interfaceGigabitEthernet0/0/0source-ip1.1.1.1one-arm-echo[R3-bfd-session-aa]discriminatorlocala [R3-bfd-session-aa]discriminatorlocal1[R3-bfd-session-aa]commit静态路由引用[R3]iproute-stat......
  • OSPF联动BFD
    配置R1[R1]ospfrouter-id2.2.2.2[R1-ospf-1]area0[R1-ospf-1-area-0.0.0.0]network2.2.2.00.0.0.255[R1-ospf-1-area-0.0.0.0]network12.1.1.00.0.0.255[R1-ospf-1-area-0.0.0.0]network13.1.1.00.0.0.255[R1-ospf-1-area-0.0.0.0]quit[R1]bfd[R1-ospf-1]bfdal......
  • 静态BFD
    配置R1[R1]bfd#####全局启用BFD[R1]bfd1b [R1]bfd1bind?ldp-lspInformationaboutLDPLSPmpls-teInformationaboutMPLSTEpeer-ipSetpeerIPaddressstatic-lspInformationaboutstaticLSP[R1]bfd1bindp......
  • VRRP 协议 及 DHCP
    目录一、VRRP协议1.单网关与双网关的缺陷2.基本概述3.原理过程4.实验(1)实验拓扑图(2)实验目标(3)实验过程(4)实验结果二、DHCP1.优点2.分配方式3.租约过程4.配置(1)拓扑图(2)过程(3)结果一、VRRP协议1.单网关与双网关的缺陷单网关:​ 当网关路由器出现故障......
  • MSTP-多实例生成树
    RSTP与STP的缺点同一局域网内所有的vlan共享一个生成树,无法在vlan间实现数据流量的负载均衡;链路利用率低,被阻塞的冗余链路不承载任何流量,造成了带宽的浪费,还可能造成部分vlan报文无法转发。MSTP:MSTP兼容STP和RSTP,既可以快速收敛,又能使不同VLAN的流量沿各自的路径转发,从而为冗......