本文主要是介绍MSTP配置示例,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
多生成树可以实现链路的防环、冗余备份、负载均衡功能
拓朴如下:
主要配置如下:
[R1]
interface GigabitEthernet0/0/1ip address 10.1.1.254 255.255.255.0
#
interface GigabitEthernet0/0/2ip address 10.2.2.254 255.255.255.0
#[S1]
interface GigabitEthernet0/0/23port link-type trunkport trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/24port link-type trunkport trunk allow-pass vlan 10 20
#[S2]
stp instance 1 root primary
stp instance 2 root secondary
#
stp region-configurationregion-name 12revision-level 5instance 1 vlan 10instance 2 vlan 20active region-configuration
#[S3]
stp instance 1 root secondary
stp instance 2 root primary
#
interface GigabitEthernet0/0/22port link-type trunkport trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24port link-type trunkport trunk allow-pass vlan 10 20
#
这篇关于MSTP配置示例的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!