若同一 VLAN 中的裝置連接到 TP-Link 交換器後無法彼此通訊,應該怎麼辦?

TL-SG2008P , TL-SG3452X , TL-SG2218P , TL-SG3452XP , TL-SG2016P , SG2210XMP-M2 , SG3428XPP-M2 , TL-SG2210P , SG6654XHP , SG2210MP , TL-SX3008F , TL-SL2428P , TL-SX3016F , SG2218 , SG3428 , TL-SG3452P , TL-SG3428X , S4500-16GP , SG3218XP-M2 , SL2428P , TL-SG3428X-M2 , SG3210X-M2 , S4500-8GHP2F , S4500-16G2F , TL-SG3428XF , TL-SG2210MP , SG3428X-M2 , SG3210 , TL-SG3428XPP-M2 , SG3452X , SG3210XHP-M2 , TL-SG3210XHP-M2 , SG2008 , TL-SG2428P , SG3428XF , SG2005P-PD , SG2428LP , SG6428XHP , SX3008F , SG3428X , SX3016F , TL-SG3428X-UPS , SX6632YF , SG2218P , SG2428P , SG2008P , SG3452XP , TL-SG3428 , TL-SG2218 , SG2210P , SG6654X , SG2016P , SG6428X , S5500-4XHPP2XF , TL-SG3428MP , TL-SG2008 , TL-SG3210 , TL-SG3452 , TL-SX3206HPP , SG3428XMP , TL-SG3428XMP , SX3206HPP , S5500-24MPP4XF
Recent updates may have expanded access to feature(s) discussed in this FAQ. Visit your product's support page, select the correct hardware version for your device, and check either the Datasheet or the firmware section for the latest improvements added to your product. Please note that product availability varies by region, and certain models may not be available in your region.
情境:
如圖所示,兩台在 VLAN 10 中擁有固定 IP 地址的電腦無法彼此通訊。數據封包需要通過三個交換器才能在兩台電腦之間傳輸。
故障排除步驟:
說明:本指南以 SG2210MP 的網頁 GUI 為例。
步驟 1:檢查連接埠狀態。前往 SYSTEM > System Info > System Summary 您可以在其中檢查連接埠狀態。此時與 PC 連接的 Port 1 和 Uplink Port 9 均處於 Link Up 狀態。
如果埠狀態不穩定或連線速度不理想,前往 MAINTENANCE > Device Diagnostics,選擇相對應的埠,然後點擊 Apply(套用)。如下面所示,四對線路都顯示為正常,表示網路線運作良好。
步驟 2:檢查 spanning tree(生成樹協定)與 loop detection(迴圈偵測)的狀態。在獨立模式中,生成樹協定和迴圈偵測預設是關閉的,而在控制器模式中,生成樹協定預設是關閉的,迴圈偵測預設是啟用的。
如果啟用了生成樹協定(STP),請前往 L2 FEATURES > Spanning Tree > Port Config 在這裡您可以檢查埠的狀態。這裡設定了 STP 的 uplink Port 9 的狀態是 Forwarding,且未被封鎖。
如果啟用了 loopback detection(迴圈偵測), 請前往 L2 FEATURES > Switching > Port > Loopback Detection 在這裡您可以檢查相應埠的迴圈狀態和封鎖狀態。此處啟用了迴圈偵測並連接到 PC 的 Port 1 未被封鎖。
方法 1:透過 CLI 指令檢查埠的封包丟棄情況。如以下所示,Tx Discards 和 Rx Discards 均為 0,表示沒有網路雍塞或封包丟棄的情況發生。
方法 2:前往 MAINTENANCE > Traffic Monitor 並在一段時間內(例如 10 秒)監控埠的 Octets Rx 和 Tx 統計數據。這些統計數據可以透過推算這段時間內的平均吞吐量並與連接埠頻寬進行比較進而來了解連接埠是否存在雍塞。
步驟 3:檢查 VLAN 的建立。前往 L2 FEATURES > VLAN > 802.1Q VLAN。這裡已經建立了 VLAN 10。
步驟 4:檢查相對應埠的 VLAN 設定。前往 L2 FEATURES > VLAN > 802.1Q VLAN > VLAN Config 然後點擊編輯。這裡將連接到 PC 的 Port 1 和 Uplink Port 9 新增到了 VLAN 10。通常,PC Port 會設定為 untagged,而 Uplink 在 VLAN 中會設 tagged。
步驟 5:檢查相對應埠的 PVID 設定。前往 L2 FEATURES > VLAN > 802.1Q VLAN > Port Config 您可以在這裡檢查所有埠的 PVID 設定。連接到 PC 的 Port 1 PVID 應設定為 10,而 Uplink Port 的預設值保持為 1。
步驟 6:檢查 MAC 位址表。前往 L2 FEATURES > Switching > MAC Address > Address Table 您可以在其中檢查 MAC 位址之間的對應,VLAN ID 和埠之間的對應關係。對應錯誤可能會影響數據轉發,導致設備無法彼此通訊。
步驟 7:檢查過濾政策(例如 ACL、IMPB)。前往 SECURITY > ACL > ACL Config。在這裡,尚未為 VLAN 10 設定任何 ACL。
前往 SECURITY > IPv4 IMPB > ARP Detection。ARP Detection(ARP 偵測)預設為關閉。在這裡,VLAN 10 的 ARP 偵測未啟用。
前往 SECURITY > IPv4 IMPB > IPv4 Source Guard。IPv4 Source Guard 預設為關閉。在這裡,相對應的埠並未啟用 IPv4 Source Guard。
IPv6 IMPB 的檢查過程相類似,此處不再贅述。
這篇faq是否有用?
您的反饋將幫助我們改善網站
What’s your concern with this article?
- Dissatisfied with product
- Too Complicated
- Confusing Title
- Does not apply to me
- Too Vague
- 其他
謝謝
感謝您的反饋。
點擊此處與TP-Link技術支持聯繫。
基本 Cookies
These cookies are necessary for the website to function and cannot be deactivated in your systems.
TP-Link
SESSION, JSESSIONID, accepted_local_switcher, tp_privacy_base, tp_privacy_marketing, tp_smb-select-product_scence, tp_smb-select-product_scenceSimple, tp_smb-select-product_userChoice, tp_smb-select-product_userChoiceSimple, tp_smb-select-product_userInfo, tp_smb-select-product_userInfoSimple, tp_top-banner, tp_popup-bottom, tp_popup-center, tp_popup-right-middle, tp_popup-right-bottom, tp_productCategoryType
Youtube
id, VISITOR_INFO1_LIVE, LOGIN_INFO, SIDCC, SAPISID, APISID, SSID, SID, YSC, __Secure-1PSID, __Secure-1PAPISID, __Secure-1PSIDCC, __Secure-3PSID, __Secure-3PAPISID, __Secure-3PSIDCC, 1P_JAR, AEC, NID, OTZ
Zendesk
OptanonConsent, __cf_bm, __cfruid, _cfuvid, _help_center_session, _pendo___sg__.<container-id>, _pendo_meta.<container-id>, _pendo_visitorId.<container-id>, _zendesk_authenticated, _zendesk_cookie, _zendesk_session, _zendesk_shared_session, ajs_anonymous_id, cf_clearance
分析和行銷 Cookies
Analysis cookies enable us to analyze your activities on our website in order to improve and adapt the functionality of our website.
The marketing cookies can be set through our website by our advertising partners in order to create a profile of your interests and to show you relevant advertisements on other websites.
Google Analytics & Google Tag Manager
_gid, _ga_<container-id>, _ga, _gat_gtag_<container-id>
Google Ads & DoubleClick
test_cookie, _gcl_au