华为企业组网实例:VRRP+MSTP典型组网配置

本文介绍了如何在华为网络设备上配置VRRP和MSTP,以实现高可用性和防止环路。详细步骤包括VLAN配置、Trunk设置、链路聚合、MSTP和VRRP配置,并提供了各环节的验证方法。通过此配置,可以确保在网络设备故障时,流量能自动切换,保证业务连续性。
摘要由CSDN通过智能技术生成

VRRP+MSTP典型组网配置

VRRP是一种容错协议,它保证当主机的下一跳路由器出现故障时,由另一台路由器来代替出现故障的路由器进行工作,从而保持网络通信的连续性和可靠性。

MSTP:多生成树协议,通过生成多个生成树,来解决以太网环路问题。

实验拓扑

在这里插入图片描述

一、VLAN配置

SW3配置

sy sw3
un in en
vlan batch 10 20 30 40 
interface g0/0/2
 port link-type access
 port default vlan 10
 q
interface g0/0/3
 port link-type access
 port default vlan 20

SW4配置

sy sw4
un in en
vlan batch 10 20 30 40
interface g0/0/2
 port link-type access
 port default vlan 30
 q
interface g0/0/3
 port link-type access
 port default vlan 40
 q

二、Trunk配置

SW3配置

interface g0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 20
 
interface g0/0/4
 port link-type trunk
 port trunk allow-pass vlan 10 20

SW4配置

interface g0/0/1
 port link-type trunk
 port trunk allow-pass vlan 30 40
 q
interface g0/0/4
 port link-type trunk
 port trunk allow-pass vlan 30 40
 q

SW1配置

sy sw1
un in en
vlan batch 10 20 30 40

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 20
 
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 30 40

SW2配置

sy sw2
un in en
vlan batch 10 20 30 40

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 30 40
 
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 10 20

三、链路聚合

SW1和SW2之间我们用两根网线,做成链路聚合。

SW1配置

[hxsw1]int Eth-Trunk 1
[hxsw1-Eth-Trunk1]mode lacp-static
[hxsw1-Eth-Trunk1]trunkport g0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[hxsw1-Eth-Trunk1]trunkport g0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.

SW2配置

[hxsw2]int Eth-Trunk 1<
  • 104
    点赞
  • 886
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 35
    评论
评论 35
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

亦良Cool

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值