首页 > 其他分享 >vrrp+mstp

vrrp+mstp

时间:2024-09-07 21:23:40浏览次数:12  
标签:10.1 default mstp GigabitEthernet0 vrrp trunk interface port

1、网络拓扑图

vrrp+mstp_数据丢失

2、核心:vrrp知识点

1)虚拟ip地址

vrrp vrid 1 virtual-IP 10.1.1.254

虚拟地址为:10.1.1.254

虚拟mac:0000-5e00-01xx

xx表示组号,此实例中为01

2)虚拟默认优先级为100,范围在0-255

vrrp vrid 1 priority 120

需改优先级为120

3)延时切换,默认时间为0

vrrp vrid 1 preempt-mode timer delay 30

设置延时切换为30s,防止数据丢失,

4)接口跟踪

vrrp vrid 1 track interface GigabitEthernet0/0/5 reduced 30

当跟踪接口出现故障后,优先级值减30,变为90

3、详细配置

sw1:

[sw1]display current-configuration  

#

sysname sw1

#

vlan batch 10 20 30 40

#

stp instance 1 root primary

stp instance 2 root secondary

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name gd

instance 1 vlan 10

instance 2 vlan 20

active region-configuration

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif10

ip address 10.1.1.1 255.255.255.0

vrrp vrid 1 virtual-ip 10.1.1.254

vrrp vrid 1 priority 120

vrrp vrid 1 preempt-mode timer delay 30

vrrp vrid 1 track interface GigabitEthernet0/0/5 reduced 30

#

interface Vlanif20

ip address 10.1.2.2 255.255.255.0

vrrp vrid 2 virtual-ip 10.1.2.254

#

interface Vlanif30

ip address 10.1.3.1 255.255.255.0

#

interface MEth0/0/1

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/2

eth-trunk 1

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/4

eth-trunk 1

#

interface GigabitEthernet0/0/5

port link-type access

port default vlan 30

#

interface GigabitEthernet0/0/6

#

interface GigabitEthernet0/0/7

#

interface GigabitEthernet0/0/8

#

interface GigabitEthernet0/0/9

#

interface GigabitEthernet0/0/10

#

interface GigabitEthernet0/0/11

#

interface GigabitEthernet0/0/12

#

interface GigabitEthernet0/0/13

#

interface GigabitEthernet0/0/14

#

interface GigabitEthernet0/0/15

#

interface GigabitEthernet0/0/16

#

interface GigabitEthernet0/0/17

#

interface GigabitEthernet0/0/18

#

interface GigabitEthernet0/0/19

#

interface GigabitEthernet0/0/20

#

interface GigabitEthernet0/0/21

#

interface GigabitEthernet0/0/22

#

interface GigabitEthernet0/0/23

#

interface GigabitEthernet0/0/24

#

interface NULL0

#

ospf 100 router-id 2.2.2.2

import-route direct

area 0.0.0.0

 network 10.1.3.0 0.0.0.255

#

user-interface con 0

idle-timeout 0 0

user-interface vty 0 4

#

return

[sw1]

sw2:

[sw2]display current-configuration  

#

sysname sw2

#

vlan batch 10 20 30 40

#

stp instance 1 root secondary

stp instance 2 root secondary

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name gd

instance 1 vlan 10

instance 2 vlan 20

active region-configuration

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif10

ip address 10.1.1.2 255.255.255.0

vrrp vrid 1 virtual-ip 10.1.1.254

#

interface Vlanif20

ip address 10.1.2.1 255.255.255.0

vrrp vrid 2 virtual-ip 10.1.2.254

vrrp vrid 2 priority 120

vrrp vrid 2 preempt-mode timer delay 30

vrrp vrid 2 track interface GigabitEthernet0/0/5 reduced 30

#

interface Vlanif40

ip address 10.1.4.1 255.255.255.0

#

interface MEth0/0/1

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/2

eth-trunk 1

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/4

eth-trunk 1

#

interface GigabitEthernet0/0/5

port link-type access

port default vlan 40

#

interface GigabitEthernet0/0/6

#

interface GigabitEthernet0/0/7

#

interface GigabitEthernet0/0/8

#

interface GigabitEthernet0/0/9

#

interface GigabitEthernet0/0/10

#

interface GigabitEthernet0/0/11

#

interface GigabitEthernet0/0/12

#

interface GigabitEthernet0/0/13

#

interface GigabitEthernet0/0/14

#

interface GigabitEthernet0/0/15

#

interface GigabitEthernet0/0/16

#

interface GigabitEthernet0/0/17

#

interface GigabitEthernet0/0/18

#

interface GigabitEthernet0/0/19

#

interface GigabitEthernet0/0/20

#

interface GigabitEthernet0/0/21

#

interface GigabitEthernet0/0/22

#

interface GigabitEthernet0/0/23

#

interface GigabitEthernet0/0/24

#

interface NULL0

#

ospf 100 router-id 3.3.3.3

import-route direct

area 0.0.0.0

 network 10.1.4.0 0.0.0.255

#

user-interface con 0

idle-timeout 0 0

user-interface vty 0 4

#

return

[sw2]

r1:

[r1]display current-configuration  

[V200R003C00]

#

sysname r1

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-usage threshold 80 restore 75

#

acl number 2000  

rule 5 permit  

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

nat address-group 1 100.1.1.10 100.1.1.200

#

interface GigabitEthernet0/0/0

ip address 10.1.3.2 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 10.1.4.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 100.1.1.2 255.255.255.0  

nat outbound 2000 address-group 1  

#

interface NULL0

#

ospf 100 router-id 1.1.1.1  

default-route-advertise always type 1

area 0.0.0.0  

 network 10.1.3.0 0.0.0.255  

 network 10.1.4.0 0.0.0.255  

#

ip route-static 0.0.0.0 0.0.0.0 100.1.1.1

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[r1]

4、结果验证

vrrp+mstp_优先级_02

标签:10.1,default,mstp,GigabitEthernet0,vrrp,trunk,interface,port
From: https://blog.51cto.com/u_13560030/11946634

相关文章

  • 生成树协议(STP:802.1D、RSTP:802.1w、MSTP:802.1s)
    在二层网络中,如果没有生成树协议,会带来哪些问题:1、广播风暴2、MAC地址表飘移3、重复数据帧接收回顾生成树有哪些术语:1、根桥为了破除环路,生成树网络首先要选举出一个首脑,头脑,首领。叫做根桥,也叫作根交换机2、桥IDbridge-id:由桥优先级(默认取值为32768,必须为4096......
  • 3、【实战中提升自己】华为 华三中小型企业网络架构搭建 【MSTP、链路聚合、VRRP部署
     1 拓扑与说明         某公司的网络架构,这样的架构在目前的网络中是在常见的,假设您接收一个这样的网络,应该如何部署,该实战系列,就是一步一步讲解,如何规划、设计、部署这样一个环境,这里会针对不同的情况给出不同的讲解,比如拓扑中有2个ISP,假设客户需求是,想实现主备的......
  • bacnet mstp设备数据 转IEC61850项目案例
    目录1 案例说明 12 VFBOX网关工作原理 13 使用YABE软件读取BACNETMSTP设备信息 24 配置网关采集BACNETMSTP数据 45 用IEC61850协议转发数据 66 网关使用多个逻辑设备和逻辑节点的方法 87 案例总结 91 案例说明使用Yabe软件获取bacnetmstp设备信息,如果已知bacnet设备信......
  • bacnet mstp设备数据 转IEC61850项目案例
    目录1 案例说明 12 VFBOX网关工作原理 13 使用YABE软件读取BACNETMSTP设备信息 24 配置网关采集BACNETMSTP数据 45 用IEC61850协议转发数据 66 网关使用多个逻辑设备和逻辑节点的方法 87 案例总结 91 案例说明使用Yabe软件获取bacnetmstp设备信息,如果已知bacnet设备......
  • 4.4.Proxy ARP_HSRP_VRRP_GLBP
    交换网络冗余备份ha(高可用性)1容错功能,单点故障2设备冗余,线路冗余,模块冗余。3优化rpr和rpr+rpr切换2-4mrpr+30-60smsfc(多层交换特性卡路由引擎)pfc(交换引擎)rpr+主次引擎都工作,备份主的配置等rpr+1主引擎工作备份也在工作2把runningconif和startupconfig备份3表项......
  • 4.2.RSTP_MSTP_Ether Channel
    spanningtreeprotocol(stp)portfast快速端口blk20-slis15s-ler15s-fwd接非交换机设备,如pc、路由器实验r4:inte0/0ipadd100.1.1.4255.255.255.0noshr6:intf0/0ipadd100.1.1.6255.255.255.0noshshutdownsw1:showspanningtreedebugspanning-treeeve......
  • 组网实现VRRP技术----ENSP
    一、实验目的1、不同vlan的主机互通;2、主设备故障时,备份设备会接替主设备,承担网关功能。二、实验拓扑三、实验步骤1、配置LSW3的两个下行口为access口创建vlan(方便下面的PC机归属vlan)配置左下接口,左下接口允许vlan10通过配置右下接口,右下接口允许vlan20通过2、配......
  • 网关冗余 VRRP
    目录1.VRRP1.1原理1.2VRRP的工作过程2.实验2.1 实验需求2.2 实验top2.3实验思路3.实验配置3.1基础信息配置3.1.1acsw3.1.2coresw13.1.3coresw23.1.4AR13.1.5互联网3.1.6pc3.2配置vrrp3.2.1coresw13.2.2coresw23.3静态路由配置4.实验效果4.......
  • VRRP和IPVS
    1.VRRP VRRP(VirtualRouterRedundancyProtocol,简称VRRP,虚拟路由冗余协议)是一种选择协议,它可以把一个虚拟路由器的责任动态分配到局域网上的VRRP路由器中的一台。控制虚拟路由器IP地址的VRRP路由器称为主路由器,它负责转发数据包到这些虚拟IP地址。VRRP一旦主路由器不可用......
  • VRRP
    VRRP解决问题:1、网关为单设备时,如果此设备发生故障,那么将会导致下连接设备均出现故障;此时我们将多设备组成一个网关组,再同一时刻只有一台工作即可,其余设备负责监听,当工作的设备出现故障,那么再选举出新设备接管即可;概述:1、将多台路由虚拟成一台,配置虚拟路由来当做网......