日日操夜夜添-日日操影院-日日草夜夜操-日日干干-精品一区二区三区波多野结衣-精品一区二区三区高清免费不卡

公告:魔扣目錄網為廣大站長提供免費收錄網站服務,提交前請做好本站友鏈:【 網站目錄:http://www.ylptlb.cn 】, 免友鏈快審服務(50元/站),

點擊這里在線咨詢客服
新站提交
  • 網站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會員:747

生成樹協議(英語:Spanning Tree Protocol,STP),是一種工作在OSI網絡模型中的第二層(數據鏈路層)的通信協議,基本應用是防止交換機冗余鏈路產生的環(huán)路.用于確保以太網中無環(huán)路的邏輯拓撲結構.從而避免了廣播風暴,大量占用交換機的資源。

案例:

生成樹協議在華為交換機的簡單應用

 

[SW1]stp enable

[SW1]vlan batch 10 20

[SW1]interface g0/0/1

[SW1-GigabitEthernet0/0/1]port link-type trunk

[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[SW1]interface g0/0/2

[SW1-GigabitEthernet0/0/2]port link-type trunk

[SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan all

配置sw2

[Huawei]sysname SW2

[SW2]vlan batch 10 20

[SW2]stp enable

[SW2]interface g0/0/1

[SW2-GigabitEthernet0/0/1]port link-type trunk

[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[SW2]interface g0/0/3

[SW2-GigabitEthernet0/0/3]port link-type trunk

[SW2-GigabitEthernet0/0/3]port trunk allow-pass vlan all

配置sw3

[SW3]vlan batch 10 20

[SW3]stp enable

[SW3]interface g0/0/2

[SW3-GigabitEthernet0/0/2]port link-type trunk

[SW3-GigabitEthernet0/0/2]port trunk allow-pass vlan all

[SW3]interface g0/0/3

[SW3-GigabitEthernet0/0/3]port link-type trunk

[SW3-GigabitEthernet0/0/3]port trunk allow-pass vlan all

第二步配置stp模式

[SW1]stp mode ?

mstp Multiple Spanning Tree Protocol (MSTP) mode

rstp Rapid Spanning Tree Protocol (RSTP) mode

stp Spanning Tree Protocol (STP) mode

[SW1]stp mode stp

[SW1]stp priority 4096

[SW2]stp mode stp

[SW2]stp priority 8192

[SW3]stp mode stp

[SW1]display stp

-------[CIST Global Info][Mode STP]-------

CIST Bridge :4096 .4c1f-cc1b-22ed

Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20

Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20

CIST Root/ERPC :4096 .4c1f-cc1b-22ed / 0

CIST RegRoot/IRPC :4096 .4c1f-cc1b-22ed / 0

CIST RootPortId :0.0

BPDU-Protection :Disabled

TC or TCN received :7

TC count per hello :0

STP Converge Mode :Normal

Time since last TC :0 days 0h:1m:33s

Number of TC :9

Last TC occurred :GigabitEthernet0/0/2

生成樹協議在華為交換機的簡單應用

 

[SW2]display stp

-------[CIST Global Info][Mode STP]-------

CIST Bridge :8192 .4c1f-cca6-0f90

Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20

Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20

CIST Root/ERPC :4096 .4c1f-cc1b-22ed / 20000

CIST RegRoot/IRPC :8192 .4c1f-cca6-0f90 / 0

CIST RootPortId :128.1

BPDU-Protection :Disabled

TC or TCN received :42

TC count per hello :0

STP Converge Mode :Normal

Time since last TC :0 days 0h:4m:13s

Number of TC :8

Last TC occurred :GigabitEthernet0/0/1

生成樹協議在華為交換機的簡單應用

 

[SW3]display stp

-------[CIST Global Info][Mode STP]-------

CIST Bridge :32768.4c1f-ccf2-7f99

Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20

Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20

CIST Root/ERPC :4096 .4c1f-cc1b-22ed / 20000

CIST RegRoot/IRPC :32768.4c1f-ccf2-7f99 / 0

CIST RootPortId :128.2

BPDU-Protection :Disabled

TC or TCN received :66

TC count per hello :0

STP Converge Mode :Normal

Time since last TC :0 days 0h:5m:59s

Number of TC :9

Last TC occurred :GigabitEthernet0/0/2

生成樹協議在華為交換機的簡單應用

 

現在來查看一下sw2的g0/0/1的stp狀態(tài)

[SW2]display stp interface g0/0/1

-------[CIST Global Info][Mode STP]-------

CIST Bridge :8192 .4c1f-cca6-0f90

Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20

Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20

CIST Root/ERPC :4096 .4c1f-cc1b-22ed / 20000

CIST RegRoot/IRPC :8192 .4c1f-cca6-0f90 / 0

CIST RootPortId :128.1

BPDU-Protection :Disabled

TC or TCN received :42

TC count per hello :0

STP Converge Mode :Normal

Time since last TC :0 days 0h:9m:55s

Number of TC :8

Last TC occurred :GigabitEthernet0/0/1

----[Port1(GigabitEthernet0/0/1)][FORWARDING]----

Port Protocol :Enabled

Port Role :Root Port

Port Priority :128

Port Cost(Dot1T ) :Config=auto / Active=20000

Designated Bridge/Port :4096.4c1f-cc1b-22ed / 128.1

Port Edged :Config=default / Active=disabled

Point-to-point :Config=auto / Active=true

Transit Limit :147 packets/hello-time

Protection Type :None

Port STP Mode :STP

Port Protocol Type :Config=auto / Active=dot1s

BPDU Encapsulation :Config=stp / Active=stp

PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 0

TC or TCN send :2

TC or TCN received :35

BPDU Sent :3

TCN: 2, Config: 1, RST: 0, MST: 0

BPDU Received :303

TCN: 0, Config: 303, RST: 0, MST: 0

生成樹協議在華為交換機的簡單應用
 

分享到:
標簽:交換機
用戶無頭像

網友整理

注冊時間:

網站:5 個   小程序:0 個  文章:12 篇

  • 51998

    網站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會員

趕快注冊賬號,推廣您的網站吧!
最新入駐小程序

數獨大挑戰(zhàn)2018-06-03

數獨一種數學游戲,玩家需要根據9

答題星2018-06-03

您可以通過答題星輕松地創(chuàng)建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學四六

運動步數有氧達人2018-06-03

記錄運動步數,積累氧氣值。還可偷

每日養(yǎng)生app2018-06-03

每日養(yǎng)生,天天健康

體育訓練成績評定2018-06-03

通用課目體育訓練成績評定