




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
SmartLinkMonitorLink配SmartLink常用于雙上行鏈路組網,提高接入的可靠性。MonitorLink通過監視上行接設備支持的SmartLink和MonitorLink特性主要包括:SmartLink基本功能、負載分擔、通知VPLS/VLL模塊感知鏈路切換功能和MonitorLink基本功能。配置SmartLink基本功能,可實現主備鏈路備份和切換等基本功能,從而提高組網的可當SmartLink和VPLS/VLL在組網中配合使用時,可以配置此功能,使VPLS/VLL模塊介紹如何配置MonitorLink功能,包括創建MonitorLink組、配置上/下行鏈路接口以及SmartLink和Monitor通過清除Flush報文統計信息、鎖定數據流以及手工倒換,可以實現SmartLink和MonitorLink的目的。介紹SmartLink配置舉例。請結合配置流程了解配置過程。配置示例中包括組網需求、SmartLinkMonitorLink簡定SmartLink,又叫做備份鏈路。一個SmartLink由兩個接口組成,其中一個接口作為另目SwitchA如圖6-1所示SwitchA采上行方式分別連接到SwitchB和SwitchC,這樣SwitchA到>SwitchD),但是網絡中的環路會產生網絡風暴。在SwitchA上配置SmartLink,正常鏈路發生故障,SmartLink會自動將數據流量切換到Interface2所在鏈路,保證業務不中 在一些二層拓撲協議(如SmartLink)組網中,拓撲協議無法監視到上行接口的狀態,從而導致拓撲協議無法進行鏈路切換。MonitorLink可用于擴展一些二層拓撲協議的應SmartLink原理SmartLink通過兩個端口相互配合工作來實現功能。這樣的一對端口組成了一個SmartLink組。為了區別一個SmartLink組中的兩個端口,其中的一個叫做主端口,另一個叫做從端口。同時我們利用Flush報文、SmartLink實例和控制VLAN等機制,以更好地實現SmartLink的功能(包括負載分擔)。6-2SmartLinkInternetSwitchInterface InterfaceSwitch SwitchSmartLinkGroupInterface1 Interface2SwitchD
MasterPortSlavePortSmartLink
主接口/從接口
Flush報
進行MAC表項和ARP表項的更新。這時,SmartLink組通過發送Flush報文通知其他設控制VLAN(Control 發送控制發送控制VLAN是SmartLink組用于廣播Flush報文的VLAN。如圖6-2,如果在 接收控制負載分擔SmartLink支持配置多個負載分擔VLAN實例。當SmartLink組的主從鏈路均正常時,路故障時,SmartLink組會自動將所有的流量切換到另一條鏈。SmartLinkSmartLink組的備鏈路通過綁定不同的實例來實現負載分擔。SmartLinkMSTP的實6-3SmartLinkInternetSwitchInterface InterfaceSwitch SwitchSmartLinkGroupInterface1 Interface2SwitchD
MasterPortSlavePort鏈路正常工作原理SwitchD上的SmartLink組包含了Interface1和Interface2兩個接口,其中Interface1為主接InterfaceSwInterfaceSwitchInterfaceSwitchSwitchInterfaceInterfaceSwitchMasterPortSlavePowDirection鏈路故障處理原理SmaSmartLinkGrouMasterPortSlavePorlowDirectio通過Flush報文通知設備更新表項這種方式適用于上游設備(如圖6-5中的SwitchA、SwitchB和SwitchC)支持SmartLink自動通過流量更新表項這種方式適用于與不支持SmartLink功能的設備(包括其他廠商設備)對接的情況,需InterfaceSwitchInterfaceSwitchInterfaceSwitchInterfaceSwitchSwitchInterfaceInterfaceSwitchFlowDirectionSmaSmartLinkGrouMasterPortSlavePorlowDirectio鏈路恢復處理原理 使用SmartLink組回切功能,需要在SwitchD上使能回切功能。當原主用鏈路故障恢復后,經過回切定時器設定的時間,SmartLink會自動將流量切換到原主用鏈路 如圖6-3所示組網示例,當SwitchD的Interface1的鏈路恢復后,如果配置了SmartLink組將切換到轉發狀態。而如果使用配置命令強制讓SmartLink進行鏈路切換,在執行命令流量,即鏈路利用率只有50%。SmartLink支持負載分擔實例,備份鏈路分擔指定的負InternetSwitchSwitch SwitchSmartLinkGroupVLAN100~VLAN VLAN300~VLANInterface1 Interface2SwitchD
MasterPortSlaveP如圖6-8所示,在未配置負載分擔的情況下,所有報通過SwitchD的Interface1接口沿轉發(Active)鏈路進行傳輸。為了提高鏈路利用率,通過配置SmartLink負載分400配置為SmartLink負載分擔實例,讓VLAN300~VLAN400的數據通過SwitchD的Interface2接口進行傳輸。而未配置為負載分擔實例的VLAN100~VLAN200的報文還是通過主用鏈路轉發,從而實現在SmartLink組中對實例中映射的VLAN數據流量進行MonitorLink上行接口和下行接口組合成一個MonitorLink組。6-9MonitorLinkCorenetworkInterface1SwitchBInterface
InterfaceInterface4U
UDow
UplinkPortDownlinkPortnetw MonitorLinkGMonitorLink接口、靜態聚合組、手工聚合組或SmartLink組,其中SmartLink組只能作為上行接成了一個MonitorLink組;Interface3和Interface4組成了一個MonitorLink組。上行接口上行接口又稱為Uplink接口,是MonitorLink組中受者,上行接口故障則表示該MonitorLink組故障,該組的下行接口將都會被強制設為Down狀態。如圖6-9所示,Interface1和Interface3為上行接口。上行鏈路也可以是SmartLink組,當上行鏈路是SmartLink組時,只有當SmartLink組的兩個接口都處于inactive狀態(包括Down)時,6-10SmartLinkMonitorLinkCorenetworkSwitchSwitch
SwitchSwitchSwitch
SwitchSwitch
SwitchSwitchSwitchF SmartLinkGroupMonitorLinkGroupUsernetwork下行接口
下行接口又稱為Downlink接口,是MonitorLink組中者,下行接口故障不影響上行6-11MonitorLinkCorenetworkInterface1SwitchBInterface
InterfaceInterface4U
UDow
UplinkPortDownlinkPortnetw MonitorLinkG如圖6-11所示,如果Interface1所在的上行鏈路發生故障,MonitorLink會將Interface2強路發生故障。當Interface1所在的上行鏈路恢復正常后,MonitorLink會取消對Interface2當上行接口是SmartLink組時,只有當SmartLink組的兩個接口都處于inactive狀態(包SmartLinkSmartLink可以解決雙上行組網中的環路問題,但是,同一時刻雙上行鏈路中只有一條處于轉發狀態,也就是說一條鏈路不承載流量,即鏈路利用率只有50%。SmartLink提InternetSwitchSwitch SwitchSmartLinkGroupVLAN100~VLAN VLAN300~VLANInterface1 Interface2SwitchD
MasterPortSlaveP如圖6-12所示,通過配置SmartLink負載分擔,將VLAN300~VLAN400配置為Smart而未配置為負載分擔實例的VLAN100~VLAN200的報文還是通過主用鏈路轉發。這SmartLink組所確定的路徑進行轉發,達到提升鏈路利用率的目的。SmartLinkMonitorLink一般情況下,SmartLink只能感知與其接口直連的鏈路故障。例如,SwitchD的Interface1和Interface2配置了SmartLink。如圖6-13所示,SmartLink只能感知與其直連例如SwitchB與SwitchA之間的鏈路發生故障時,SmartLink不直接感知此故障,將MonitorLink配置在SmartLink的上游設備上,可使SmartLink迅速感知上游鏈路故障,進行鏈路切換。SmartLink與MonitorLink配合使用,擴大了SmartLink的應用場景6-13SmartLinkMonitorLinkInterneInterfaceSwitch SwitchInterfaceInterfaceInterface
Interface
SmartLinkGroupSwitch SwitchMonitorLinkGrou如圖6-13所示,SmartLink配置在SwitchD和SwitchE上。當SwitchB與SwitchD或SwitchC與SwitchE之間的鏈路出現故障時,SmartLink組迅速感知并進行鏈路的切換。為了使可以在SwitchB和SwitchC上配置MonitorLink組。以SwitchD和SwitchB為例。在SwitchD上配置SmartLink組,Interface1和Interface2加入此SmartLink組。在SwitchB上配置MonitorLink組,接口Interface5作為上行接口,接口故障,將強制關閉下行接口,從而觸發SwitchD上的SmartLink組內的鏈路切換。當上SmartLinkMonitorLink圖6-14描述的是SmartLink及MonitorLink技術級聯的典型組網應用。當組網中需要通過級聯來提高網絡接入的可靠性時,可通過SmartLink與MonitorLink級聯組網,達到更加可靠的鏈路備份效果。MonitorLink組可以把SmartLink組作為其上行成員接口。6-14SmartLinkMonitorLinkInterne
SwitchSwitchSwitch
InterfaceC
InterfaceCInterfaceJ InterfaceJSwitchInterfaceC InterfaceJInterfaceF InterfaceF
SmartLinkGroupMonitorLinkGrou如圖6-14所示,將SwitchC和SwitchJ的兩個上行鏈路配置為SmartLink組,保證上行鏈路的可靠性。在SwitchC和SwitchJ上配置MonitorLink組,將SmartLink組作為MonitorSmartLinkMonitorLinkMasterSlaveUplinkInterfaceInterfaceInterfaceC3InterfaceInterfaceInterfaceInterfaceJ3InterfaceInterfaceInterface配置任務概覽設備支持的SmartLink和MonitorLink特性主要包括:SmartLink基本功能、負載分擔、通知VPLS/VLL模塊感知鏈路切換功能和MonitorLink基本功能。6-2SmartLinkMonitorLink場描對應任務配置SmartLink當SmartLink和6.10配置SmartLinkVPLS/VLL說配置Monitor觸發下行接口Up/Down配置注意事項涉及網元License版本支持系產支持版本系產支持版本說明特性依賴和限制無6-4SmartLinkMonitorLink參缺省SmartLink6003SmartLink基本功配置SmartLink基本功能,可實現主備鏈路備份和切換等基本功能,從而提高組網的可前置任務 配置流程背景信息
SmartLink組中的從接口在SmartLink組啟動后會被阻塞。如果主鏈路發生故障,Smart如果由于鏈路閃斷導致的Smartlink倒換,會影響報文轉發和系統性能,可以通過配置SmartLink倒換的延時解決此問題。如果SmartLink組的接口有Up/Down動作,SmartLink組的狀態不會立刻倒換,而是等待延時時間到達后,根據SmartLink組的接口最后獲得的Up/Down狀態處理SmartLink組的狀態,從而抑制了由于鏈路閃斷導致的Smart 操作步驟
步驟1執行命令system-view步驟2執行命令smart-linkgroupgroup-id,進入SmartLink組視圖。設備最多支持創建16個SmartLink組。步驟3(可選)執行命令protected-vlanreference-instanceinstance-id1toinstance-id2]}&<1-10>,配置SmartLink組保護實例。配置了SmartLink組的保護實例之后,SmartLink功能只對保護實例中映射的VLAN數據有效,未映射到保護實例中的VLAN數據將不會受SmartLink影響。如果不配置SmartLink組綁定保護實例,則SmartLink功能對所有VLAN數據有效。說明當需要配置保護實例與MUXVLAN間的映射關系時,建議同一個MUXVLAN下的主VLAN、互通型和型從VLAN配置在同一個保護實例下,否則會導致部分環路。步驟4執行命令portinterface-typeinterface-numbermaster,將指定接口加入SmartLink組,并步驟5執行命令portinterface-typeinterface-numberslave,將指定接口加入SmartLink組,并配一個SmartLink組包括一個主接口和一個從接口。缺省情況下,SmartLink組中不存在步驟6(可選)執行命令smart-linkhold-timehold-time,配置SmartLink倒換的延時時間。----結束配置Flush報文的發送和接收功能背景信息當SmartLink發生鏈路切換后,原有的轉項將不適用于新的拓撲網絡,需要對整個網絡進行MAC表項和ARP表項的更新。這時,SmartLink通過發送Flush報文通知相關那些處于從SmartLink設備到其目的設備主、備鏈的接口才需進行此配置。如圖6-15所示,SwitchA上配置了SmartLink功能。此時需要在SwitchB的Interface3、Interface4,SwitchC的Interface5、Interface6,SwitchD的Interface7、Interface8上配置Switch
InternInterneSwitchInterfaceInterfaceInterfaceInterfaceInterfaceSmartLinkgrouSInterfaceInterfaceInterfaceSwitch配置Flush說明刷新,這種刷新方式會導致用戶流量收斂速度比較慢,所以建議用戶在配置SmartLink組的時候操作步驟
執行命令flushsendcontrol-vlanvlan-idpasswordsimple|shapassword],配置SmartLink組的Flush報文發送功能,并配置Flush報文的加密方式、控制VLAN編號和。其中vlan-id必須是設備上已經存在的VLAN的發送Flush報文的設備配置的、控制VLANID和與接收Flush報文的設備配置的、控制VLANID和需要相同。說明 l控制VLAN必須包含在protected-vlanreference-instance命令配置的保護實例列表l配置此命令并不能把接口加入到控制VLAN,需要在接口下配置允許此控制VLANl為了保證更好的安全性,建議您使用更安全的SHA算法作為SmartLink的認證算 --。執行命令smart-linkflushreceivecontrol-vlanvlan-id&<1-10>simple|shapassword|all},配置Flush報文接收功能,并配置接口接收 說明 l為了保證更好的安全性,建議您使用更安全的SHA算法作為SmartLink的認證算l在系統視圖下,可以執行命令smart-linkflushreceivepassword{simple|sha}password,對設備所有配置接收Flush報文的控制VLAN的端口進行統一加----結束背景信息當SmartLink組中主鏈路出現故障時,會自動倒換到備鏈路。當原主鏈路故障恢復后, 說明操作步驟步驟1執行命令system-view步驟2執行命令smart-linkgroupgroup-id,進入SmartLink步驟3執行命令restoreenable,使能SmartLink組的回切功能。缺省情況下,SmartLink組回切功能處于關閉狀態。步驟4執行命令timerwtrwtr-time,設置SmartLink組回切時間。缺省情況下,SmartLink組回切時間為60秒。----結束Smart背景信息
SmartLink功能使能后,組中的從接口會被阻塞。SmartLink功能關閉后,會將被阻塞操作步驟
步驟1執行命令system-view步驟2執行命令smart-linkgroupgroup-id,進入SmartLink步驟3執行命令smart-linkenable,使能SmartLink----結束檢查配置結果操作步驟
使用命令disysmart-linkgroup{all|group-id}查看SmartLink組狀態信息 ----結束SmartLink負載分擔功前置任務
背景信息
操作步驟
步驟1執行命令system-view步驟2執行命令stpregion-configuration,進入MST步驟3執行命令instanceinstance-idvlanvlan-id1tovlan-id2&<1-10>,配置實例和說明當需要配置實例與MUXVLAN間的映射關系時,建議同一個MUXVLAN下的主VLAN、互通型和型從VLAN配置在同一個實例下,否則會導致部分環路。步驟4執行命令activeregion-configuration,激活MST配置MST域的、VLAN映射表和MSTP修訂級別時,必須執行命令activeregion-步驟5執行命令quit步驟6執行命令smart-linkgroupgroup-id,進入SmartLink步驟7執行命令load-balanceinstanceinstance-id1toinstance-id2&<1-10>slave,用來配說明使用load-balanceinstance命令指定的負載分擔實例,必須包含在protected-vlanreference-----結束檢查配置結果使用命令disysmart-linkgroup{all|group-id}查看SmartLink組狀態信息SmartLink通知VPLS/VLL模塊感知鏈當SmartLink和VPLS/VLL在組網中配合使用時,可以配置此功能,使VPLS/VLL模塊前置任務說明在配置SmartLink通知VPLS/VLL模塊感知鏈路切換功能之前,需要完成以下配置任 背景信息如圖6-16所示,如果CE-A上配置了SmartLink并通過PE的VLANIF接口或Dot1q終結子接口雙歸屬接入VPLS/VLL,可以在PE的物理接口上配置SmartLink和VPLS/VLL聯說明Smart PE-InterfaceInterfaceUVPLS/VInterfaceCE-PE-操作步驟
步驟1執行命令system-view步驟2執行命令interfaceinterface-typeinterface-number步驟3執行命令smart-linkvpls-notify|vll-notifyenable,使能接口收到Flush----結束檢查配置結果
配置MonitorLink組的上行接口和下行介紹如何配置MonitorLink功能,包括創建MonitorLink組、配置上/下行鏈路接口以及背景信息 操作步驟
步驟1執行命令system-view步驟2執行命令monitor-linkgroupgroup-id,進入MonitorLink組視圖。設備最多支持創建16個MonitorLink組。步驟3執行命令portinterface-typeinterface-numberdownlinkdownlink-id|uplink},配置iduplink,配置SmartLink組為MonitorLink說明上行接口的狀態決定MonitorLink組的狀態。因此在下行接口加入到MonitorLink組后,雖然可以通過命令shutdown或undoshutdown對其進行操作,但操作效果只能維持到MonitorLink組中上 則所有下行接口均被undoshutdown。 若從MonitorLink組中刪除上行接口或者組中已存在Up狀態的上行接口變為Down狀態,則如果要將SmartLink組加入到MonitorLink組中,需要先將MonitorLink組中已經存在的上行鏈路步驟4(可選)執行命令timerrecover-timerecover-time----結束檢查配置結果 使用命令disymonitor-linkgroup{all|group-id}查看MonitorLink組的基本配6.12SmartLink和Monitor通過清除Flush報文統計信息、鎖定數據流以及手工倒換,可以實現SmartLink和MonitorLink的目的。清除Flush報文統計信息背景信息
在日常工作中,如果需要統計在某一時間段內SmartLink的Flush報文統計信息,可注注操作步驟
步驟1在用戶視圖下執行resetsmart-linkflush命令,清除Flush----結束背景信息
在鏈路中需要對SmartLink組的主鏈路進行檢修,為了不影響正常的業務,需對注注將數據流鎖定在某接口后,如果此接口發生故障,這時SmartLink不會自動將數據流量操作步驟步驟1執行命令system-view步驟2執行命令smart-linkgroupgroup-id,進入SmartLink步驟3 ----結束手工倒換數據流背景信息 沒有使用smart-link{lock 在SmartLink組視圖下可以重復使用本命令,每執行一次鏈路倒換,鏈路倒換會出現暫操作步驟步驟1執行命令system-view步驟2執行命令smart-linkgroupgroup-id,進入SmartLink步驟3執行命令smart-linkmanualswitch----結束介紹SmartLink配置舉例。請結合配置流程了解配置過程。配置示例中包括組網需求、組網需求GE0/0/SwitchGE0/0/GE0/0/GE0/0/1SmartLinkgrouGE0/0/SwitchGE0/0/10to3 ActivelinkInac10to3 配置思路
操作步驟
步驟1配置VLAN#<<[>system-]sysname[SwitchA]vlanbatch10to[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1]portlink-type[SwitchA-GigabitEthernet0/0/1]porttrunkallow-passvlan10to30[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/2]portlink-type[SwitchA-GigabitEthernet0/0/2]porttrunkallow-passvlan10to30[SwitchA-GigabitEthernet0/0/2]quit步驟2在SwitchA上創建SmartLink備份組,并指定端口角色#配置SwitchA[SwitchA][SwitchA]interfacegigabitethernet0/0/1[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet0/0/2[SwitchA-GigabitEthernet0/0/2]quit[SwitchA]smart-linkgroup1[SwitchA-smlk-group1]portgigabitethernet0/0/1master[SwitchA-smlk-group1]portgigabitethernet0/0/2slave步驟3#[SwitchA-smlk-group1][SwitchA-smlk-group1]restoreenable[SwitchA-smlk-group1]timerwtr30步驟4使能發送Flush[SwitchA-smlk-group1][SwitchA-smlk-group1]flushsendcontrol-vlan10passwordsha步驟5使能接收Flush[SwitchB][SwitchB]interfacegigabitethernet[SwitchB-GigabitEthernet0/0/1]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchB-GigabitEthernet0/0/1]quit[SwitchB]interfacegigabitethernet[SwitchB-GigabitEthernet0/0/2]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchB-GigabitEthernet0/0/2]quit[SwitchC][SwitchC]interfacegigabitethernet[SwitchC-GigabitEthernet0/0/1]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchC-GigabitEthernet0/0/1]quit[SwitchC]interfacegigabitethernet[SwitchC-GigabitEthernet0/0/2]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchC-GigabitEthernet0/0/2]quit[SwitchD][SwitchD]interfacegigabitethernet[SwitchD-GigabitEthernet0/0/1]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchD-GigabitEthernet0/0/1]quit[SwitchD]interfacegigabitethernet[SwitchD-GigabitEthernet0/0/2]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchD-GigabitEthernet0/0/2]quit步驟6在SwitchA使能SmartLink[SwitchA-smlk-group1]quit步驟7#使用disysmart-linkgroup命令查看SwitchA上的SmartLink組信息。如果顯示如下 [SwitchA][SwitchA] ysmart-linkgroupSmartLinkgroup1informationSmartLinkgroupwasenabledWtr-timeis:30sec.ThereisnoLoad-Thereisnoprotected-vlanreference-DeviceID:0018-2000-0083Control-vlanID: FlushCountLast-Flush- Master Inactive2009/01/0510:33:460000/00/0000:00:00使用shutdown命令關閉接口GE0/0/1,可以看到接口GE0/0/1已經處于Inactive狀態,[SwitchA][SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1][SwitchA-GigabitEthernet0/0/1]dis ysmart-linkgroup1SmartLinkgroup1information:SmartLinkgroupwasenabledWtr-timeis:30sec.ThereisnoLoad-Thereisnoprotected-vlanreference-DeviceID:0018-2000-0083Control-vlanID: FlushCountLast-Flush- MasterInactive1 2009/01/0510:33:462009/01/0510:34:46#[SwitchA-GigabitEthernet0/0/1]undo #[SwitchA-GigabitEthernet0/0/1][SwitchA-GigabitEthernet0/0/1]dis ysmart-linkgroup1SmartLinkgroup1information:SmartLinkgroupwasenabledWtr-timeis:30sec.ThereisnoLoad-Thereisnoprotected-vlanreference-DeviceID:0018-2000-0083Control-vlan ID:Last-Flush-MasterActive 212009/01/0510:35:462009/01/0510:34:46----結束配置文件
##vlanbatch10to30interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan10to30stpdisable#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan10to30stpdisable#smart-linkgroup1restoreenableportGigabitEthernet0/0/1masterportGigabitEthernet0/0/2slavetimerwtr30flushsendcontrol-vlan10passwordsha%^%#rwIhOw`~g7,xyl>~|:v9Cyw2CH,# ##vlanbatch10to30interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan10tosmart-linkflushreceivecontrol-vlan10passwordsha%^%#fR)IGHHT:>]iNbG:Nq#)<^1p#`np!#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan10tosmart-linkflushreceivecontrol-vlan10passwordsha ##vlanbatch10to30portlink-typetrunkporttrunkallow-passvlan10tosmart-linkflushreceivecontrol-vlan10passwordsha%^%#IOf[Q`=F=QK"O4-j9A}Y-portlink-typetrunkporttrunkallow-passvlan10tosmart-linkflushreceivecontrol-vlan10passwordsha ##vlanbatch10to30interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan10tosmart-linkflushreceivecontrol-vlan10passwordshainterfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan10tosmart-linkflushreceivecontrol-vlan10passwordsha%^%#i~K431w:TERjN]OK0kS+Y*VB=*-#組網需求
GE0/0/GE0/0/GE0/0/GE0/0/SwitchSwitchGE0/0/GE0/0/SmartLinkgrouGE0/0/GE0/0/SwitchInterneVLAN100500AcInterneVLAN100500配置思路
操作步驟
步驟1配置VLAN#<<[>system-]sysname[SwitchA]vlanbatch10100[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1]portlink-type[SwitchA-GigabitEthernet0/0/1]porttrunkallow-passvlan10100500[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/2]portlink-type[SwitchA-GigabitEthernet0/0/2]porttrunkallow-passvlan10100500[SwitchA-GigabitEthernet0/0/2]quit[SwitchA]stpregion-configuration[SwitchA-mst-region]instance10vlan[SwitchA]stpregion-configuration[SwitchA-mst-region]instance10vlan500[SwitchA-mst-region]activeregion-configuration[SwitchA-mst-region]quit步驟3將去使能STP功能的上行接口加入SmartLink組并指定為主接口或從接口#配置SwitchA[SwitchA][SwitchA]interfacegigabitethernet0/0/1[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet0/0/2[SwitchA-GigabitEthernet0/0/2]quit[SwitchA]smart-linkgroup1[SwitchA-smlk-group1]portgigabitethernet0/0/1master[SwitchA-smlk-group1]portgigabitethernet0/0/2slave步驟4在SwitchA[SwitchA-smlk-group1]load-balanceinstance10 步驟5#[SwitchA-smlk-group1][SwitchA-smlk-group1]restoreenable[SwitchA-smlk-group1]timerwtr30步驟6使能發送Flush[SwitchA-smlk-group1]flushsendcontrol-vlan10passwordsha 步驟7使能接收Flush[SwitchB][SwitchB]interfacegigabitethernet[SwitchB-GigabitEthernet0/0/1]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchB-GigabitEthernet0/0/1]quit[SwitchB]interfacegigabitethernet[SwitchB-GigabitEthernet0/0/2]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchB-GigabitEthernet0/0/2]quit[SwitchC][SwitchC]interfacegigabitethernet[SwitchC-GigabitEthernet0/0/1]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchC-GigabitEthernet0/0/1]quit[SwitchC]interfacegigabitethernet[SwitchC-GigabitEthernet0/0/2]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchC-GigabitEthernet0/0/2]quit[SwitchD][SwitchD]interfacegigabitethernet[SwitchD-GigabitEthernet0/0/1]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchD-GigabitEthernet0/0/1]quit[SwitchD]interfacegigabitethernet[SwitchD-GigabitEthernet0/0/2]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchD-GigabitEthernet0/0/2]quit步驟8在SwitchA使能SmartLink[SwitchA-smlk-group1]quit步驟9#使用disysmart-linkgroup命令查看SwitchA上的SmartLink組信息。如果顯示如下 [SwitchA][SwitchA] ysmart-linkgroupSmartLinkgroup1informationSmartLinkgroupwasenabledWtr-timeis:30sec.Load-BalanceInstance:Thereisnoprotected-vlanreference-instanceDeviceID:0018-2000-0083Control-vlanID:10 FlushCountLast-Flush- Master Inactive2009/01/0510:33:460000/00/0000:00:00使用shutdown命令關閉接口GE0/0/1,可以看到接口GE0/0/1已經處于Inactive狀態,[SwitchA][SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1][SwitchA-GigabitEthernet0/0/1]dis ysmart-linkgroup1SmartLinkgroup1information:SmartLinkgroupwasenabledWtr-timeis:30sec.Load-BalanceInstance:Thereisnoprotected-vlanreference-instanceDeviceID:0018-2000-0083Control-vlanID:10 FlushCountLast-Flush- MasterInactive 2009/01/0510:33:462009/01/0510:34:46#[SwitchA-GigabitEthernet0/0/1]undo #[SwitchA-GigabitEthernet0/0/1][SwitchA-GigabitEthernet0/0/1] ysmart-linkgroupSmartLinkgroup1informationSmartLinkgroupwasenabledWtr-timeis:30sec.Load-BalanceInstance:Thereisnoprotected-vlanreference-instanceDeviceID:0018-2000-0083Control-vlanID:10 FlushCountLast-Flush- Master Inactive2009/01/0510:35:462009/01/0510:34:46假設PC1所屬的VLAN為VLAN100,PC2所屬的VLAN為VLAN500,PC1和PC2都能訪----結束配置文件
##vlanbatch10100500stpregion-configurationinstance10vlan500#portlink-typetrunkporttrunkallow-passvlan10100500stpdisable#portlink-typetrunkporttrunkallow-passvlan10100500stpdisable#smart-linkgroupload-balanceinstance10slaverestoreenablesmart-linkportGigabitEthernet0/0/2slavetimerwtr30flushsendcontrol-vlan10passwordsha%^%#rwIhOw`~g7,xyl>~|:v9Cyw2CH,# ##vlanbatch10100500portlink-typetrunkporttrunkallow-passvlan10100smart-linkflushreceivecontrol-vlan10passwordsha%^%#fR)IGHHT:>]iNbG:Nq#)<^1p#`np!#portlink-typetrunkporttrunkallow-passvlan10100smart-linkflushreceivecontrol-vlan10passwordsha ##vlanbatch10100500portlink-typetrunkporttrunkallow-passvlan10100smart-linkflushreceivecontrol-vlan10passwordsha%^%#IOf[Q`=F=QK"O4-j9A}Y-portlink-typetrunkporttrunkallow-passvlan10100smart-linksmart-linkflushreceivecontrol-vlan10passwordsha##vlanbatch10100500interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan10100smart-linkflushreceivecontrol-vlan10passwordshainterfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan10100smart-linkflushreceivecontrol-vlan10passwordsha%^%#i~K431w:TERjN]OK0kS+Y*VB=*-#SmartLinkMonitorLink組網需求
如圖6-19所示,設備SwitchC向下連接用戶網絡,通過雙歸屬上行連接到SwitchA為了防止上行鏈路出現故障導致下游業務中斷,需要引入一種機制。即在上行鏈IP/MPLconetwoSmartLinkgrouGE0/0/MonitorLinkgrouSwitchGE0/0/
GE0/0/GE0/0/GE0/0/
GE0/0/MonitorLinkgroupGE0/0/3SwitchBSmartLinkgroupGE0/0/ GE0/0/SwitchUser User ActivelinInactivelin配置思路在SwitchA上配置MonitorLink組,其上行鏈路為SmartLink組。此處SmartLink和MonitorLink配合使用,SmartLink組提高了MonitorLink組上行鏈路的可靠性。在SwitchB上配置MonitorLink組,使得SwitchC上的SmartLink可以迅速感知上行鏈的故障,擴大了SmartLink的應用范圍。操作步驟
步驟1在SwitchA、SwitchB和SwitchC三臺設備上配置控制VLAN,并將加入SmartLink組或MonitorLink組的接口加入該VLAN中<<[>system-]sysname[SwitchA]vlanbatch[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/1]portlink-typetrunk[SwitchA-GigabitEthernet0/0/1]porttrunkallow-passvlan10[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/2]portlink-typetrunk[SwitchA-GigabitEthernet0/0/2]porttrunkallow-passvlan10[SwitchA-GigabitEthernet0/0/2]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/3]portlink-typetrunk[SwitchA-GigabitEthernet0/0/3]porttrunkallow-passvlan10[SwitchA-GigabitEthernet0/0/3]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/4]portlink-typetrunk[SwitchA-GigabitEthernet0/0/4]porttrunkallow-passvlan10[SwitchA-GigabitEthernet0/0/4]quit步驟2創建SmartLink組功能#配置SwitchA。[SwitchA][SwitchA]smart-linkgroup1[SwitchA-smlk-group1]quit#[SwitchC][SwitchC]smart-linkgroup2[SwitchC-smlk-group2]quit步驟3將接口加入SmartLink組并指定主接口、從接口#配置SwitchA。[SwitchA][SwitchA]interfacegigabitethernet0/0/1[SwitchA-GigabitEthernet0/0/1]quit[SwitchA]interfacegigabitethernet0/0/2[SwitchA-GigabitEthernet0/0/2]quit[SwitchA]smart-linkgroup1[SwitchA-smlk-group1][SwitchA-smlk-group1]portgigabitethernet0/0/1master[SwitchA-smlk-group1]portgigabitethernet0/0/2slave#[SwitchC][SwitchC]interfacegigabitethernet0/0/1[SwitchC-GigabitEthernet0/0/1]stpdisable[SwitchC-GigabitEthernet0/0/1]quit[SwitchC]interfacegigabitethernet0/0/2[SwitchC-GigabitEthernet0/0/2]stpdisable[SwitchC-GigabitEthernet0/0/2]quit[SwitchC]smart-linkgroup2[SwitchC-smlk-group2]portgigabitethernet0/0/1master[SwitchC-smlk-group2]portgigabitethernet0/0/2步驟4#[SwitchA-smlk-group1][SwitchA-smlk-group1]restoreenable[SwitchA-smlk-group1]timerwtr30#[SwitchC-smlk-group2][SwitchC-smlk-group2]restoreenable[SwitchC-smlk-group2]timerwtr30步驟5使能發送/接收Flush[SwitchA-smlk-group1][SwitchA-smlk-group1]flushsendcontrol-vlan10passwordsha123[SwitchA-smlk-group1]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/3]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchA-GigabitEthernet0/0/3]quit[SwitchA]interfacegigabitethernet[SwitchA-GigabitEthernet0/0/4]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchA-GigabitEthernet0/0/4]quit[SwitchB][SwitchB]interfacegigabitethernet[SwitchB-GigabitEthernet0/0/3]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchB-GigabitEthernet0/0/3]quit[SwitchB]interfacegigabitethernet[SwitchB-GigabitEthernet0/0/4]smart-linkflushreceivecontrol-vlan10passwordsha123[SwitchB-GigabitEthernet0/0/4]quit[SwitchC-smlk-group2][SwitchC-smlk-group2]flushsendcontrol-vlan10passwordsha123[SwitchC-smlk-group2]quit步驟6使能SmartLink#[SwitchA][SwitchA]smart-linkgroup[SwitchA-smlk-group1]smart-linkenable[SwitchA-smlk-group1]quit#[SwitchC][SwitchC]smart-linkgroup[SwitchC-smlk-group2]smart-linkenable[SwitchC-smlk-group2]quit步驟7創建MonitorLink組,并添加上行/#[SwitchA][SwitchA]monitor-linkgroup[SwitchA-mtlk-group1]smart-linkgroup1[SwitchA-mtlk-group1]portgigabitethernet0/0/3downlink#[SwitchB][SwitchB]monitor-linkgroup[SwitchB-mtlk-group2]portgigabitethernet0/0/1uplink[SwitchB-mtlk-group2]portgigabitethernet0/0/3downlink1步驟8配置MonitorLink組的回切時間#配置SwitchA。[SwitchA-mtlk-group1][SwitchA-mtlk-group1]timerrecover-time10[SwitchA-mtlk-group1]quit#[SwitchB-mtlk-group2][SwitchB-mtlk-group2]timerrecover-time10[SwitchB-mtlk-group2]quit步驟9[SwitchA][SwitchA]dis ysmart-linkgroup1SmartLinkgroup1information:SmartLinkgroupwasenabledWtr-timeis:30sec.ThereisnoLoad-Thereisnoprotected-vlanreference-DeviceID:0018-2000-0083Control-vlanID: FlushCountLast-Flush-Master Inactive0000/00/0000:00:000000/00/0000:00:00[SwitchA]dis ymonitor-linkgroup1MonitorLinkgroup1information:Recover-timeris10Smart-00:00:0000:00:00StateLast-up-0000/00/0000:00:00Last-down-0000/00/0000:00:00----結束配置文件 ##interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan10stpdisable#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlan10stpdisable#interfaceportlink-typeportporttrunkallow-passvlansmart-linkflushreceivecontrol-vlan10passwordsha%^%#rwIhOw`~g7,xyl>~|:v9Cyw2CH,#portlink-typetrunkporttrunkallow-passvlansmart-linkflushreceivecontrol-vlan10passwordsha%^%#fR)IGHHT:>]iNbG:Nq#)<^1p#`np!#smart-linkgroup1restoreenableportGigabitEthernet0/0/2slavetimerwtr30flushsendcontrol-vlan10passwordshamonitor-linkgroup1smart-linkgroup1uplinkportGigabitEthernet0/0/3downlink1timerrecover-time10# ##interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan#interfaceGigabitEthernet0/0/3portlink-typetrunkporttrunkallow-passvlansmart-linkflushreceivecontrol-vlan10passwordsha%^%#IOf[Q`=F=QK"O4-j9A}Y-interfaceGigabitEthernet0/0/4portlink-typetrunkporttrunkallow-passvlansmart-linkflushreceivecontrol-vlan10passwordshamonitor-linkgroupportGigabitEthernet0/0/1uplinkportGigabitEthernet0/0/3downlink1timerrecover-time10# ##interfaceGigabitEthernet0/0/1portlink-typetrunkporttrunkallow-passvlan10stpdisable#interfaceGigabitEthernet0/0/2portlink-typetrunkporttrunkallow-passvlanstpstpdisablesmart-linkgroup2restoreenableportGigabitEthernet0/0/2slavetimerwtr30flushsendcontrol-vlan10passwordsha組網需求說明運行SmartLink協議,正常情況下只有主鏈路傳送業務數據。如果主鏈路故障,SmartLink協議將打開阻斷的接口,業務數據從該接口傳送到相連的PE設備。需要引入一種機制,通知VPLS模塊清除本端VSI轉項,同時觸發相關設SmaSmartLinGE0/0/GE0/0/1.GE0/0/1.UserGE0/0/GE0/0/UserGE0/0/CEGE0/0/2.GE0/0/2.CEPE
PEPEActivelinkInactivelin配置思路
操作步驟步驟1在PE1、PE2、PE3和PE4上配置VPLS》VPLS配置。步驟2配置Dot1q子接口接入略。具體配置方法請參見《S1720&S2700&S5700&S6720V200R010C00配置指南-以太網交換》QinQ配置。<[>system-]sysname<[>system-]sysname[CE1]vlanbatch[CE1]interfacegigabitethernet[CE1-GigabitEthernet0/0/1]portlink-type[CE1-GigabitEthernet0/0/1]porttrunkallow-passvlan10[CE1-GigabitEthernet0/0/1]quit[CE1]interfacegigabitethernet[CE1-GigabitEthernet0/0/2]portlink-type[CE1-GigabitEthernet0/0/2]porttrunkallow-passvlan10[CE1-GigabitEthernet0/0/2]quit步驟4在PE1和PE2上配置VLAN,并將下行鏈路接口加入該VLAN<<[>system-]sysnamePE1[PE1]vlanbatch10[PE1]interfacegigabitethernet[PE1-GigabitEthernet0/0/1]portlink-type[PE1-GigabitEthernet0/0/1]porttrunkallow-passvlan10[PE1-GigabitEthernet0/0/1]quit[PE1]interfacegigabitethernet[PE1-GigabitEthernet0/0/2]portlink-type[PE1-GigabitEthernet0/0/2]porttrunkallow-passvlan10[PE1-GigabitEthernet0/0/2]quit >system- ]sysname[PE2]vlanbatch[PE2]interfacegigabitethernet[PE2-GigabitEthernet0/0/1]portlink-type[PE2-GigabitEthernet0/0/1]porttrunkallow-passvlan10[PE2-GigabitEthernet0/0/1]quit[PE2]interfacegigabitethernet[PE2-GigabitEthernet0/0/2]portlink-type[PE2-GigabitEthernet0/0/2]porttrunkallow-passvlan10[PE2-GigabitEthernet0/0/2]quit步驟5將去使能STP功能的上行接口加入SmartLink組并指定為主接口或從接口#去使能接口的STP功能
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 中建施工方案流程詳解
- 項目管理中的可持續發展理念實踐試題及答案
- 2025年注冊會計師備考時間分配試題及答案
- 財務報表披露中的常見合規問題試題及答案
- 2024項目管理資格的考試重點與趨勢分析試題及答案
- 2024年項目管理復習策略試題及答案
- 礦區塑膠跑道施工方案
- 證券從業資格證考試監測試題及答案
- 2024項目管理考試復習試題及答案
- 2025年注會備考的自我監督與激勵機制試題及答案
- 美國加征關稅從多個角度全方位解讀關稅課件
- 期中(試題)-2024-2025學年人教精通版(2024)英語三年級下冊
- 2025-2030中國煤焦油雜酚油行業市場發展趨勢與前景展望戰略研究報告
- 防洪防汛安全教育知識培訓
- 定額〔2025〕1號文-關于發布2018版電力建設工程概預算定額2024年度價格水平調整的通知
- 《思想政治教育方法論》考研(第3版)鄭永廷配套考試題庫及答案【含名校真題、典型題】
- 一種基于STM32的智能門鎖系統的設計-畢業論文
- 項目選址比選方案分析參考范本
- 中機2015~2016年消防系統維保養護年度總結報告
- 預制混凝土襯砌管片生產工藝技術規程doc
- 極域電子教室解決方案
評論
0/150
提交評論