2臺交換機mstp

2021-09-25 05:53:34 字數 4285 閱讀 1236

lsw3的配置

[huawei]dis cu

vlan batch 10 20

stp instance 1 priority 4096 設定lsw3的例項1的優先順序低於lsw4 使其成為1的根

stp instance 2 priority 8192

cluster enable

ntdp enable

ndp enable

stp region-configuration

region-name huawei

revision-level 1

instance 1 vlan 10 設定例項1對映的vlan

instance 2 vlan 20

active region-configuration 啟用

inte***ce vlanif10

ip address 192.168.1.1 255.255.255.0

inte***ce vlanif20

ip address 192.168.2.1 255.255.255.0

inte***ce meth0/0/1

inte***ce gigabitethernet0/0/1

port link-type trunk

port trunk allow-pass vlan 10 20

stp instance 2 cost 40000 配置例項2的開銷值大於預設的 使其成為堵塞埠

inte***ce gigabitethernet0/0/2

port link-type trunk

port trunk allow-pass vlan 10 20

lsw4的配置

[huawei]dis cu

sysname huawei

vlan batch 10 20

stp instance 1 priority 8192

stp instance 2 priority 4096

cluster enable

ntdp enable

ndp enable

drop illegal-mac alarm

diffserv domain default

stp region-configuration

region-name huawei

revision-level 1

instance 1 vlan 10

instance 2 vlan 20

active region-configuration

inte***ce gigabitethernet0/0/1

port link-type trunk

port trunk allow-pass vlan 10 20

stp instance 1 cost 40000

inte***ce gigabitethernet0/0/2

port link-type trunk

port trunk allow-pass vlan 10 20

檢視埠情況

[huawei] dis stp brief

mstid port role stp state protection

0 gigabitethernet0/0/1 desi forwarding none

0 gigabitethernet0/0/2 desi forwarding none

0 gigabitethernet0/0/3 desi forwarding none

0 gigabitethernet0/0/4 desi forwarding none

1 gigabitethernet0/0/1 desi forwarding none

1 gigabitethernet0/0/2 desi forwarding none

2 gigabitethernet0/0/1 alte discarding none

2 gigabitethernet0/0/2 root forwarding none

[huawei]dis stp instance 1

-------[msti 1 global info]-------

msti bridge id :4096.4c1f-cc26-6bc6

msti regroot/irpc :4096.4c1f-cc26-6bc6 / 0

msti rootportid :0.0

master bridge :32768.4c1f-cc26-6bc6

cost to master :0

tc received :6

tc count per hello :0

time since last tc :0 days 23h:6m:26s

number of tc :8

last tc occurred :gigabitethernet0/0/2

----[port1(gigabitethernet0/0/1)][forwarding]----

port role :designated port

port priority :128

port cost(dot1t ) :config=auto / active=20000

designated bridge/port :4096.4c1f-cc26-6bc6 / 128.1

port times :remhops 20

tc or tcn send :3

tc or tcn received :2

----[port2(gigabitethernet0/0/2)][forwarding]----

port role :designated port

port priority :128

port cost(dot1t ) :config=auto / active=20000

designated bridge/port :4096.4c1f-cc26-6bc6 / 128.2

port times :remhops 20

tc or tcn send :2

tc or tcn received :2

[huawei]display stp inte***ce gigabitethernet 0/0/3

-------[cist global info][mode mstp]-------

cist bridge :32768.4c1f-cc26-6bc6

config times :hello 2s maxage 20s fwdly 15s maxhop 20

active times :hello 2s maxage 20s fwdly 15s maxhop 20

cist root/erpc :32768.4c1f-cc26-6bc6 / 0

cist regroot/irpc :32768.4c1f-cc26-6bc6 / 0

cist rootportid :0.0

bpdu-protection :disabled

tc or tcn received :29

tc count per hello :0

stp converge mode :normal

time since last tc :0 days 2h:10m:14s

number of tc :51

last tc occurred :gigabitethernet0/0/4

----[port3(gigabitethernet0/0/3)][forwarding]----

port protocol :enabled

port role :designated port

port priority :128

port cost(dot1t ) :config=auto / active=20000

designated bridge/port :32768.4c1f-cc26-6bc6 / 128.3

port edged :config=default / active=disabled

point-to-point :config=auto / active=true

transit limit :147 packets/hello-time

交換機交換機

交換機。常常聽人說交換機 路由器。什麼是交換機?為什麼叫交換機?交換什麼?交換機是不是就是路由器?這二者有什麼區別?這是我的疑問。沒辦法,基礎沒打好。一 什麼是交換機 交換機是這麼一種裝置 將網路分成若干小段,以解決網路擁堵,降低出錯,提高傳輸效率。為什麼分成若干小段可以提高傳輸效率呢?這涉及到網路...

接入交換機,匯聚交換機,核心交換機

通常將網路中直接面向使用者連線或訪問網路的部分稱為接入層,將位於接入層和核心層之間的部分稱為分布層或匯聚層。接入交換機一般用於直接連線電腦,匯聚交換機一般用於樓宇間。匯聚相對於乙個區域性或重要的中轉站,核心相當於乙個出口或總彙總。原來定義的匯聚層的目的是為了減少核心的負擔,將本地資料交換機流量在本地...

交換機分布快取 核心交換機PK普通交換機

核心交換機我們平時提的挺多,那麼他與普通交換機到底有什麼區別的呢,今天我們一起來了解下。一 埠的區別 普通交換機埠數量一般為24 48個,網口大部分為千兆乙太網或者百兆乙太網口,主要功能用於接入使用者資料或者匯聚一些接入層的交換機資料,這種交換機最多可以配置vlan簡單路由協議和一些簡單的snmp等...