【正文】
o Yes Forwarding(轉發(fā)) Forwarding(轉發(fā)) Yes Yes RSTP的 BPDU 格式 RSTP的收斂 拓撲改變和 RSTP MST MST( Multiple Spanning Tree Protocol,多生成樹協(xié)議), MST是由 。收斂保證了所有的設備擁有相同的數據庫(即相同的網絡拓撲結構),這樣保證全網范圍內的數據一致性。 STP的術語 非指定端口 ? 在一個交換網絡中選舉完根端口和指定端口之后剩下的端口被稱為非指定端口。PID(端口 ID)由端口優(yōu)先級(默認為 128)加端口的 MAC地址組成。Lesson 7 第二層交換機的功能 第二層交換機的工作原理 生成樹協(xié)議 (STP) 高級生成樹協(xié)議 第二層交換機的基本配置 交換機的端口安全 第二層交換機的工作原理 ? 面板指示燈 ? 交換機和網橋的比較 ? 交換機的數據轉發(fā)方式 ? 第二層交換機的功能 ? 冗余 (Redundant) 面板指示燈 交換機和網橋的比較 網橋 (Bridge) 交換機(Switch) CutThrough( 直通轉發(fā)) ? Switch checks destination address and immediately begins forwarding frame FragmentFree( 碎片丟棄) ? Switch checks the first 64 bytes, then immediately begins forwarding frame Store and Forward( 存儲轉發(fā)) ? Complete frame is received and checked before forwarding 交換機的數據轉發(fā)方式 第二層交換機的功能 ? 地址學習 (Address learning) ? 轉發(fā) /過濾決定 (Forward/filter decision) ? 避免循環(huán) (Loop avoidance) MAC地址表 (MAC Address Table) 交換機上電初始化期間 MAC地址表是空的 地址學習 (Learning Addresses) ? Station A sends a frame to station C. ? The switch caches the MAC address of station A to port E0 by learning the source address of data frames. ? The frame from station A to station C is flooded out to all ports except port E0 (unknown unicasts are flooded). 地址學習 (Learning Addresses) ? Station D sends a frame to station C. ? The switch caches the MAC address of station D to port E3 by learning the source address of data frames. ? The frame from station D to station C is flooded out to all ports except port E3 (unknown unicasts are flooded). 過濾幀 (Filtering Frames) ? Station A sends a frame to station C. ? The destination is known。根端口將被標記為轉發(fā)端口 .可以轉發(fā)數據幀。非指定端口將被置為阻塞狀態(tài)。一般來說從堵塞狀態(tài)進入到轉發(fā)狀態(tài)需要 50 秒左右的時間。 MST可以使用多個 STP 實例,每個協(xié)議支持不同的 VLAN組 Standard Case MST Case MST 區(qū)域 (Regions) ?MST configuration on each switch: – Name – Revision number – VLAN association table 交換機的基本配置 Catalyst 2950交換機的默認配置: IP address: CDP: enabled 100BaseT port: autonegotiate duplex mode Spanning tree: enabled Console password: none 交換機的基本配置 ? 配置主機名: Switch (config) hostname [主機名 ] ? 配置 IP地址: Switch(config)int vlan1 Switch(configif)ip