当前位置:   article > 正文

华为企业组网实例:VRRP+MSTP典型组网配置_链路聚合和mstp和vrrp实例

链路聚合和mstp和vrrp实例

VRRP+MSTP典型组网配置

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

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

实验拓扑

在这里插入图片描述

一、VLAN配置

SW3配置

sy sw3
un in en
vlan batch 10 20 30 40 
  • 1
  • 2
  • 3
interface e0/0/3
 port link-type access
 port default vlan 10
 q
interface e0/0/2
 port link-type access
 port default vlan 20
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

二、Trunk配置

SW3配置

interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 20
 
interface Ethernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 10 20
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

SW4配置

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

interface Ethernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 30 40
 q
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

三、链路聚合

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.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

SW2配置

[hxsw2]int Eth-Trunk 1
[hxsw2-Eth-Trunk1]mode lacp-static 	
[hxsw2-Eth-Trunk1]trunkport g0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[hxsw2-Eth-Trunk1]trunkport g0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
[
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/689763
推荐阅读
相关标签
  

闽ICP备14008679号