首页 > 其他分享 >ensp VRRP + MSTP

ensp VRRP + MSTP

时间:2023-12-23 15:45:14浏览次数:22  
标签:10 20 ip vlan MSTP instance VRRP stp ensp

1. VLAN 划分

# 创建vlan
vlan batch 10 20
# 进入e0/0/1口
int e0/0/1
# 允许一个vlan通过
port link-type access
port default vlan 10
# 进入e0/0/2 允许所有vlan通过
int e0/0/2
port link-type trunk
port trunk allow-pass vlan all

2. VRRP 设置

sw1

int vlanif 10
# 设置vlan10的ip地址
ip address 192.168.1.100 24
# 设置vlan10的虚拟网关
vrrp vrid 10 virtual-ip 192.168.1.254
# vlan10 优先级设置为120
vrrp vrid 10 priority 120
int vlanif 20
# 设置vlan20的ip地址
ip address 192.168.2.100 24
# 设置vlan20的虚拟网关
vrrp vrid 20 virtual-ip 192.168.2.254

sw2

int vlanif 10
# 设置vlan10的ip地址
ip address 192.168.1.100 24
# 设置vlan10的虚拟网关
vrrp vrid 10 virtual-ip 192.168.1.254
int vlanif 20
# 设置vlan20的ip地址
ip address 192.168.2.100 24
# 设置vlan20的虚拟网关
vrrp vrid 20 virtual-ip 192.168.2.254
# vlan20 优先级设置为120
vrrp vrid 20 priority 120

sw1 和 sw2 链路聚合

int eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
int g0/0/3
eth-trunk 1
int g0/0/2
eth-trunk 1

3.MSTP 设置

sw1

stp mode mstp
stp region-configuration
# 设置名称 名称要一致
region-name uu
revision-level 1
# 实例10使用vlan10
instance 10 vlan 10
# 实例20使用vlan20
instance 20 vlan 20
active region-configuration
q
# 实例10是主
stp instance 10 root primary
# 实例20是备份
stp instance 20 root secondary

sw2

stp mode mstp
stp region-configuration
# 设置名称 名称要一致
region-name uu
revision-level 1
# 实例10使用vlan10
instance 10 vlan 10
# 实例20使用vlan20
instance 20 vlan 20
active region-configuration
q
# 实例20是主
stp instance 20 root primary
# 实例10是备份
stp instance 10 root secondary

sw3

stp mode mstp
stp region-configuration
# 设置名称 名称要一致
region-name uu
revision-level 1
# 实例10使用vlan10
instance 10 vlan 10
# 实例20使用vlan20
instance 20 vlan 20
active region-configuration

标签:10,20,ip,vlan,MSTP,instance,VRRP,stp,ensp
From: https://www.cnblogs.com/sunhouzi/p/17923188.html

相关文章

  • 华为ensp-无线小型wlan配置教程
    实验拓扑图:实验平台:ENSP510实验设备:CenteredCloud、AC6005、AP4030、STA、Cellphonevlan范围划分vlan101:10.23.101.1/24vlan100:10.23.100.1/24实验步骤:一、创建VLAN100、101配置端口类型[AC1]vlanbatch100101[AC1]intg0/0/1[AC1-GigabitEthernet0/0/1]po......
  • 27-1 BFD联动实验(OSPF/Static Router/VRRP)
    拓扑要求:1.接入层和汇聚层配置MSTP+VRRP实现高可用性2.汇聚层和核心层配置BFD高可用性3.汇聚层和核心层之间允许OSPF,OSPF配置BFD实现高可用性4.核心层到LSP配置静态路由,要求配置BFD实现高可用性配置基础配置(VLAN+IP)PC1配置,PC2参考PC1Access配置#vlanbatch1020#......
  • MSTP VRRP技术汇总
    MSTI: MSTinstance MST实例,就是多生成树的实例每个MST域内可以存在多个生成树,每个生成树使用ID进行标识,instanceID范围:0-4096一个MSTI等于一颗生成树,一颗生成树可以关联多个VLAN,但一个VLAN只能与一个MSTI对应IST:内部生成树,各MST域内的一棵生成树 IST为每个域内......
  • mstp专线的优点有哪些
    随着企业信息化的快速高标准发展,依赖互联网、云服务等协作办公的需求越来越成为一个不可逆的趋势,由此组建一个高效适用的企业网络,对于提高企业办公效率,促进企业发展显得非常重要,那么,mstp专线的优点有哪些呢?一、可实现快速化部署mstp专线具有灵活化扩容的特性,由此其可以实现便捷......
  • ensp华为防火墙双机热备
    实验拓扑实验要求构建网络拓扑,根据拓扑图配置IP地址,配置2台防火墙VRRP和心跳接口,接口区域划分并配置访问控制策略,使PC2可以ping通PC1,测试FW1接口宕机后,PC2是否仍然可以与PC1通信。实验过程 配置IP地址注意PC的网关为虚拟IP FW1 FW2 配置VRRP,注意2个防火......
  • 使用ensp搭建路由拓扑,并使用BGP协议实现网络互通实操BGP路由协议学习一
    1.使用ENSP搭建的网络拓扑如下:         数据准备:设备名称接口IP地址DeviceALoopback01.1.1.1/32Eth 1/0/0172.16.0.1/16Eth0/0/0192.168.0.1/24DeviceBLoopback02.2.2.2/32Eth 0/0/110.1.1.1/24GE0/0/0192.168.0.2/24Eth 0/0/010.1.3.1/24DeviceCLoopbac......
  • Configuration error: VRRP definition must belong to an interface
     lobal_defs{}vrrp_instanceVI_1{stateMASTER#指定A节点为主节点备用节点上设置为BACKUP即可interfaceeth0#绑定虚拟IP的网络接口virtual_router_id51#VRRP组名,两个节点的设置必须一样,以指明各个节点属于同一VRRP组priority100......
  • 23-2 MSTP+VRRP实验
    拓扑配置VRRP+MSTP,使得PC1和PC2通信始终通过最优路径基础配置(VLAN+IP)LSW1#interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan8to9#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan8to9#in......
  • 23-1 MSTP实验理解
    拓扑配置多实例生成树,使同VLAN之间采用最优路径通信且不环路TRUNK,ACCESS基础配置LSW1#interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan8to9#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan......
  • 使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操
    1.使用ENSP搭建如下拓扑:              数据准备为完成此配置例,需准备如下的数据:设备RouterIDProcessIDIP地址DeviceA1.1.1.11区域0:192.168.0.0/24区域1:192.168.1.0/24DeviceB2.2.2.21区域0:192.168.0.0/24区域2:192.168.2.0/24DeviceC3.3.3.31区域1......