版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、交換機 vrrp+mstp配置實例銳捷tac賈文宇一、 組網(wǎng)需求1、 switch a 、switch b選用兩臺銳捷的s5750 ;switch c 、shwich d 選用銳捷的 s3750和s37602、 全網(wǎng)共有兩個業(yè)務vlan ,為 vlan 10 、vlan 203、 Switch a 、switch b 都分別對兩vlan起用兩vrrp組,實現(xiàn)兩組的業(yè)務的負載分擔和備份。4、 Switch a、switch b、switch c、switch d 都起用 mstp多生成數(shù)協(xié)議,并且所有設備都屬于同一個mst域,且實例映射一致(vlan 10映射實例1、vlan 20映射實例2 其
2、他vlan映射默認實例0)。5、 Vlan 10業(yè)務以switch a為根橋; vlan 20業(yè)務以switch b為根橋;實現(xiàn)阻斷網(wǎng)絡環(huán)路,并能實現(xiàn)不同vlan數(shù)據(jù)流負載分擔功能。二、 組網(wǎng)圖三、 配置步驟Switch a配置:s1#show runBuilding configuration.Current configuration : 1651 bytes!version RGNOS 10.2.00(2), Release(29287)(Tue Dec 25 20:39:14 CST 2007 -ngcf49)hostname s1co-operate enable!vlan 1!vl
3、an 10!vlan 20!no service password-encryption!spanning-tree 開啟生成樹(默認為mstp)spanning-tree mst configuration 進入mst配置模式 revision 1 指定MST revision number 為1 name region1 指定mst配置名稱 instance 0 vlan 1-9, 11-19, 21-4094 缺省情況下vlan都屬于實例0 instance 1 vlan 10 手工指定vlan10屬于實例1 instance 2 vlan 20 手工指定vlan20屬于實例2spann
4、ing-tree mst 1 priority 0 指定實例1的優(yōu)先級為0(為根橋)spanning-tree mst 2 priority 4096 指定實例2的優(yōu)先級為4096interface GigabitEthernet 0/1 switchport access vlan 10 配置g0/1屬于vlan10!interface GigabitEthernet 0/2 switchport access vlan 20 配置g0/2屬于vlan 20!interface GigabitEthernet 0/3!.interface GigabitEthernet 0/24 設置g0/
5、24為trunk接口且允許vlan10/20通過 switchport mode trunk!interface VLAN 10 創(chuàng)建vlan 10 svi接口 ip address 配置ip地址 vrrp 1 priority 120 配置vrrp組1 優(yōu)先級為120 vrrp 1 ip 54 配置vrrp組 1虛擬ip地址為 54!interface VLAN 20 創(chuàng)建vlan 20 svi接口 ip address 配置ip地址 v
6、rrp 2 ip 54 配置vrrp組 2虛擬ip地址為 54 默認vrrp組的優(yōu)先級為100默認不顯示!line con 0line vty 0 4 logins1#show vlanVLAN Name Status Ports- - - - 1 VLAN0001 STATIC Gi0/3, Gi0/4, Gi0/5, Gi0/6 Gi0/7, Gi0/8, Gi0/9, Gi0/10 Gi0/11, Gi0/12, Gi0/13, Gi0/14 Gi0/15, Gi0/16, Gi0/17, Gi0/18 Gi0/19, Gi0/20, Gi
7、0/21, Gi0/22 Gi0/23, Gi0/24 10 VLAN0010 STATIC Gi0/1, Gi0/24 20 VLAN0020 STATIC Gi0/2, Gi0/24Switch b配置:s2#show runBuilding configuration.Current configuration : 1607 bytes!version RGNOS 10.2.00(2), Release(27932)(Thu Dec 13 10:32:09 CST 2007 -ngcf31)hostname s2!vlan 1!vlan 10!vlan 20!no service pas
8、sword-encryption!spanning-treespanning-tree mst configuration revision 1 name region1 instance 0 vlan 1-9, 11-19, 21-4094 instance 1 vlan 10 instance 2 vlan 20spanning-tree mst 1 priority 4096spanning-tree mst 2 priority 0interface GigabitEthernet 0/1 switchport access vlan 10!interface GigabitEther
9、net 0/2 switchport access vlan 20!.interface GigabitEthernet 0/24 switchport mode trunk!interface VLAN 10 ip address vrrp 1 ip 54!interface VLAN 20 ip address vrrp 2 priority 120 vrrp 2 ip 54!line con 0line vty 0 4 login!e
10、nds2#show vlanVLAN Name Status Ports- - - - 1 VLAN0001 STATIC Gi0/3, Gi0/4, Gi0/5, Gi0/6 Gi0/7, Gi0/8, Gi0/9, Gi0/10 Gi0/11, Gi0/12, Gi0/13, Gi0/14 Gi0/15, Gi0/16, Gi0/17, Gi0/18 Gi0/19, Gi0/20, Gi0/21, Gi0/22 Gi0/23, Gi0/24 10 VLAN0010 STATIC Gi0/1, Gi0/24 20 VLAN0020 STATIC Gi0/2, Gi0/24Switch c配置
11、:s3#show runBuilding configuration.Current configuration : 1540 bytes!version RGNOS 10.2.00(2), Release(28794)(Fri Dec 21 09:27:15 CST 2007 -ngcf32)hostname s3!vlan 1!vlan 10!service password-encryption!spanning-treespanning-tree mst configuration revision 1 name region1 instance 0 vlan 1-9, 11-19,
12、21-4094 instance 1 vlan 10 instance 2 vlan 20spanning-tree mst 1 priority 0spanning-tree mst 2 priority 4096interface FastEthernet 0/1 switchport access vlan 10!interface FastEthernet 0/2 switchport access vlan 10!.interface GigabitEthernet 0/25!interface GigabitEthernet 0/26!interface GigabitEthern
13、et 0/27!interface GigabitEthernet 0/28!interface VLAN 10 ip address !ip route 54!line con 0line vty 0 4 loginSwitch d配置:s4#show runBuilding configuration.Current configuration : 1066 bytes!version RGNOS 10.2.00(2), Release(27932)(Thu Dec 13 10:31
14、:41 CST 2007 -ngcf32)hostname s4!vlan 1!vlan 20!no service password-encryption!spanning-treespanning-tree mst configuration revision 1 name region1 instance 0 vlan 1-9, 11-19, 21-4094 instance 1 vlan 10 instance 2 vlan 20spanning-tree mst 1 priority 4096spanning-tree mst 2 priority 0interface Gigabi
15、tEthernet 0/1 switchport access vlan 20!interface GigabitEthernet 0/2 switchport access vlan 20!.interface GigabitEthernet 0/12!interface VLAN 20 ip address !ip route 54!line con 0line vty 0 4 login!四、 查看vrrp、mstp信息Switch a 信息:s1#show vrrp 查看vrrp
16、 信息VLAN 10 - Group 1 State is Master Virtual IP address is 54 configured Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1 sec Preemption is enabled min delay is 0 sec Priority is 120 Master Router is (local), priority is 120 Master Advertisement interval is
17、1 sec Master Down interval is 3 secVLAN 20 - Group 2 State is Backup Virtual IP address is 54 configured Virtual MAC address is 0000.5e00.0102 Advertisement interval is 1 sec Preemption is enabled min delay is 0 sec Priority is 100 Master Router is , priority is 120 Master A
18、dvertisement interval is 1 sec Master Down interval is 3 secs1#s1#s1#s1#show spanning-tree interface gigabitEthernet 0/1 查看g0/1接口stp狀態(tài)信息PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortOperLinkType : point-to-poi
19、ntPortBPDUGuard : DisabledPortBPDUFilter : Disabled# MST 0 vlans mapped :1-9, 11-19, 21-4094PortState : forwardingPortPriority : 128PortDesignatedRoot : 8000.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :8000.00d0.f836.ed70PortDesignatedPort : 8001PortForwardTransitions : 6PortAdminPathC
20、ost : 200000PortOperPathCost : 200000PortRole : designatedPort# MST 1 vlans mapped :10PortState : forwardingPortPriority : 128PortDesignatedRoot : 0001.00d0.f823.ef82PortDesignatedCost : 0PortDesignatedBridge :0001.00d0.f823.ef82PortDesignatedPort : 8001PortForwardTransitions : 5PortAdminPathCost :
21、200000PortOperPathCost : 200000PortRole : rootPort# MST 2 vlans mapped :20PortState : forwardingPortPriority : 128PortDesignatedRoot : 0002.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :1002.00d0.f836.ed70PortDesignatedPort : 8001PortForwardTransitions : 4PortAdminPathCost : 200000PortOp
22、erPathCost : 200000PortRole : designatedPorts1#s1#s1#show spanning-tree interface gigabitEthernet 0/2 查看g0/2接口stp狀態(tài)信息PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortOperLinkType : point-to-pointPortBPDUGuard : D
23、isabledPortBPDUFilter : Disabled# MST 0 vlans mapped :1-9, 11-19, 21-4094PortState : forwardingPortPriority : 128PortDesignatedRoot : 8000.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :8000.00d0.f836.ed70PortDesignatedPort : 8002PortForwardTransitions : 5PortAdminPathCost : 20000PortOper
24、PathCost : 20000PortRole : designatedPort# MST 1 vlans mapped :10PortState : forwardingPortPriority : 128PortDesignatedRoot : 0001.00d0.f823.ef82PortDesignatedCost : 0PortDesignatedBridge :0001.00d0.f836.ed70PortDesignatedPort : 8002PortForwardTransitions : 4PortAdminPathCost : 20000PortOperPathCost
25、 : 20000PortRole : designatedPort# MST 2 vlans mapped :20PortState : discardingPortPriority : 128PortDesignatedRoot : 0002.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :0002.00d0.f8d7.ae12PortDesignatedPort : 8002PortForwardTransitions : 3PortAdminPathCost : 20000PortOperPathCost : 20000
26、PortRole : alternatePorts1#s1#s1#show spanning-tree interface gigabitEthernet 0/24 g0/24接口stp狀態(tài)信息PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortOperLinkType : point-to-pointPortBPDUGuard : DisabledPortBPDUFilte
27、r : Disabled# MST 0 vlans mapped :1-9, 11-19, 21-4094PortState : forwardingPortPriority : 128PortDesignatedRoot : 8000.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :8000.001a.a909.8fe0PortDesignatedPort : 8018PortForwardTransitions : 5PortAdminPathCost : 20000PortOperPathCost : 20000Port
28、Role : rootPort# MST 1 vlans mapped :10PortState : forwardingPortPriority : 128PortDesignatedRoot : 0001.00d0.f823.ef82PortDesignatedCost : 0PortDesignatedBridge :0001.00d0.f836.ed70PortDesignatedPort : 8018PortForwardTransitions : 5PortAdminPathCost : 20000PortOperPathCost : 20000PortRole : designa
29、tedPort# MST 2 vlans mapped :20PortState : forwardingPortPriority : 128PortDesignatedRoot : 0002.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :0002.001a.a909.8fe0PortDesignatedPort : 8018PortForwardTransitions : 4PortAdminPathCost : 20000PortOperPathCost : 20000PortRole : rootPorts1#Swit
30、ch b 信息:s2#show vrrpVLAN 10 - Group 1 State is Backup Virtual IP address is 54 configured Virtual MAC address is 0000.5e00.0101 Advertisement interval is 1 sec Preemption is enabled min delay is 0 sec Priority is 100 Master Router is , priority is 120 Master Advertisement in
31、terval is 1 sec Master Down interval is 3 secVLAN 20 - Group 2 State is Master Virtual IP address is 54 configured Virtual MAC address is 0000.5e00.0102 Advertisement interval is 1 sec Preemption is enabled min delay is 0 sec Priority is 120 Master Router is (local), priorit
32、y is 120 Master Advertisement interval is 1 sec Master Down interval is 3 secs2#s2#s2#s2#s2#s2#s2#show spanning-tree interface gigabitEthernet 0/1PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortOperLinkType : po
33、int-to-pointPortBPDUGuard : DisabledPortBPDUFilter : Disabled# MST 0 vlans mapped :1-9, 11-19, 21-4094PortState : forwardingPortPriority : 128PortDesignatedRoot : 8000.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :8000.001a.a909.8fe0PortDesignatedPort : 8001PortForwardTransitions : 1Port
34、AdminPathCost : 200000PortOperPathCost : 200000PortRole : designatedPort# MST 1 vlans mapped :10PortState : forwardingPortPriority : 128PortDesignatedRoot : 0001.00d0.f823.ef82PortDesignatedCost : 0PortDesignatedBridge :0001.00d0.f823.ef82PortDesignatedPort : 8002PortForwardTransitions : 2PortAdminP
35、athCost : 200000PortOperPathCost : 200000PortRole : rootPort# MST 2 vlans mapped :20PortState : forwardingPortPriority : 128PortDesignatedRoot : 0002.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :0002.001a.a909.8fe0PortDesignatedPort : 8001PortForwardTransitions : 1PortAdminPathCost : 20
36、0000PortOperPathCost : 200000PortRole : designatedPorts2#s2#s2#s2#show spanning-tree interface gigabitEthernet 0/2PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortOperLinkType : point-to-pointPortBPDUGuard : Disa
37、bledPortBPDUFilter : Disabled# MST 0 vlans mapped :1-9, 11-19, 21-4094PortState : forwardingPortPriority : 128PortDesignatedRoot : 8000.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :8000.001a.a909.8fe0PortDesignatedPort : 8002PortForwardTransitions : 1PortAdminPathCost : 20000PortOperPat
38、hCost : 20000PortRole : designatedPort# MST 1 vlans mapped :10PortState : forwardingPortPriority : 128PortDesignatedRoot : 0001.00d0.f823.ef82PortDesignatedCost : 0PortDesignatedBridge :1001.001a.a909.8fe0PortDesignatedPort : 8002PortForwardTransitions : 2PortAdminPathCost : 20000PortOperPathCost :
39、20000PortRole : designatedPort# MST 2 vlans mapped :20PortState : forwardingPortPriority : 128PortDesignatedRoot : 0002.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :0002.001a.a909.8fe0PortDesignatedPort : 8002PortForwardTransitions : 1PortAdminPathCost : 20000PortOperPathCost : 20000Por
40、tRole : designatedPorts2#s2#s2#s2#s2#show spanning-tree interface gigabitEthernet 0/24PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortOperLinkType : point-to-pointPortBPDUGuard : DisabledPortBPDUFilter : Disable
41、d# MST 0 vlans mapped :1-9, 11-19, 21-4094PortState : forwardingPortPriority : 128PortDesignatedRoot : 8000.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :8000.001a.a909.8fe0PortDesignatedPort : 8018PortForwardTransitions : 1PortAdminPathCost : 20000PortOperPathCost : 20000PortRole : desi
42、gnatedPort# MST 1 vlans mapped :10PortState : discardingPortPriority : 128PortDesignatedRoot : 0001.00d0.f823.ef82PortDesignatedCost : 0PortDesignatedBridge :0001.00d0.f836.ed70PortDesignatedPort : 8018PortForwardTransitions : 1PortAdminPathCost : 20000PortOperPathCost : 20000PortRole : alternatePor
43、t# MST 2 vlans mapped :20PortState : forwardingPortPriority : 128PortDesignatedRoot : 0002.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :0002.001a.a909.8fe0PortDesignatedPort : 8018PortForwardTransitions : 1PortAdminPathCost : 20000PortOperPathCost : 20000PortRole : designatedPorts2#Swit
44、ch c 信息:s3#show spanning-tree interface fastEthernet 0/1PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortOperLinkType : point-to-pointPortBPDUGuard : DisabledPortBPDUFilter : Disabled# MST 0 vlans mapped :1-9, 11
45、-19, 21-4094PortState : discardingPortPriority : 128PortDesignatedRoot : 8000.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :8000.00d0.f836.ed70PortDesignatedPort : 8001PortForwardTransitions : 1PortAdminPathCost : 200000PortOperPathCost : 200000PortRole : alternatePort# MST 1 vlans mappe
46、d :10PortState : forwardingPortPriority : 128PortDesignatedRoot : 0001.00d0.f823.ef82PortDesignatedCost : 0PortDesignatedBridge :0001.00d0.f823.ef82PortDesignatedPort : 8001PortForwardTransitions : 1PortAdminPathCost : 200000PortOperPathCost : 200000PortRole : designatedPort# MST 2 vlans mapped :20P
47、ortState : discardingPortPriority : 128PortDesignatedRoot : 0002.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :1002.00d0.f836.ed70PortDesignatedPort : 8001PortForwardTransitions : 0PortAdminPathCost : 200000PortOperPathCost : 200000PortRole : alternatePorts3#s3#s3#s3#s3#show spanning-tre
48、e interface fastEthernet 0/2PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortOperLinkType : point-to-pointPortBPDUGuard : DisabledPortBPDUFilter : Disabled# MST 0 vlans mapped :1-9, 11-19, 21-4094PortState : forw
49、ardingPortPriority : 128PortDesignatedRoot : 8000.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :8000.001a.a909.8fe0PortDesignatedPort : 8001PortForwardTransitions : 1PortAdminPathCost : 200000PortOperPathCost : 200000PortRole : rootPort# MST 1 vlans mapped :10PortState : forwardingPortPr
50、iority : 128PortDesignatedRoot : 0001.00d0.f823.ef82PortDesignatedCost : 0PortDesignatedBridge :0001.00d0.f823.ef82PortDesignatedPort : 8002PortForwardTransitions : 2PortAdminPathCost : 200000PortOperPathCost : 200000PortRole : designatedPort# MST 2 vlans mapped :20PortState : forwardingPortPriority
51、 : 128PortDesignatedRoot : 0002.001a.a909.8fe0PortDesignatedCost : 0PortDesignatedBridge :0002.001a.a909.8fe0PortDesignatedPort : 8001PortForwardTransitions : 1PortAdminPathCost : 200000PortOperPathCost : 200000PortRole : rootPorts3#Switch d 信息:s4#show spanning-tree interface gigabitEthernet 0/1PortAdminPortFast : DisabledPortOperPortFast : DisabledPortAdminAutoEdge : EnabledPortOperAutoEdge : DisabledPortAdminLinkType : autoPortO
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 物流課程設計實驗
- 種蘑菇課程設計
- 中華人民共和國民法典知識競賽題庫及答案
- 2024幼兒園安全教育工作總結結尾(31篇)
- 2024年自來水公司年終工作總結(35篇)
- 液體混合裝置plc課程設計
- 玉雕課程設計
- 食品行業(yè)客服工作總結
- 客房清潔員的工作總結
- 中醫(yī)科醫(yī)師工作總結
- 深部真菌病課件
- 用戶界面測試
- 人工氣道濕化的護理培訓課件
- 電網(wǎng)適用的法律法規(guī)標準規(guī)范清單
- 讀書分享-給教師的一百條建議
- GB/T 4269.3-2000農(nóng)林拖拉機和機械、草坪和園藝動力機械操作者操縱機構和其他顯示裝置用符號第3部分:草坪和園藝動力機械用符號
- GB/T 11618.1-2008銅管接頭第1部分:釬焊式管件
- 開工復工第一課
- 安徽省淮南市鳳臺縣基層診所醫(yī)療機構衛(wèi)生院社區(qū)衛(wèi)生服務中心村衛(wèi)生室地址信息
- 旅游服務禮儀說課市公開課金獎市賽課一等獎課件
- 【線性代數(shù)自考練習題】滇西應用技術大學專升本真題匯總(附答案解析)
評論
0/150
提交評論