如何透過 SNMP 確認 TP-Link 商用路由器連線狀態和數據流量統計

TL-R600VPN , ER7206 , TL-ER6120 , TL-ER6020 , TL-ER5120 , TL-R480T+ , ER605 , TL-R470T+
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.
TP-Link SMB 路由器支援含公共 OID 的 SNMP,若要確認連線狀態和流量統計,需要使用 OID ifEntry (.1.3.6.1.2.1.2.2.1) 和其 children OID。
1. 確認 WAN 或 LAN 介面的 children OID。
SNMP Walk ifDescr (.1.3.6.1.2.1.2.2.1.2) 顯示介面的 children OID,如下所示,多 WAN 路由器透過 Snmpwalk 工具取得 OID。大部分介面為內部通訊,且無須被注意。其中,「ifDescr.17 = br-lan」表示 17 是 LAN 的 children OID,若您前往路由器頁面 – Network – VLAN,您將看到 WAN1 和 WAN2 的 VLAN ID 分別為 10 和 20。而「ifDescr.19 = eth0.10」表示 WAN1 的 children OID 為 19,且 WAN2 為 20。
若您使用多 WAN 的路由器,您可以透過每個連接埠的 VLAN ID,確認相關性。
2. 確認連線狀態。
目前已知 17、19 和 20 分別對應至 LAN、WAN1 和 WAN2。若要確認連線狀態,SNMP Walk ifOperStatus (.1.3.6.1.2.1.2.2.1.8)。如下圖所示,WAN1 已連線(up),WAN2 未連線(down)。您也可以直接 SNMP Get ifOperStatus.19 (.1.3.6.1.2.1.2.2.1.8.19) 取得 WAN1 連線狀態。
3. 確認資料流量統計。
- 接收 (RX): SNMP Walk ifInOctets (.1.3.6.1.2.1.2.2.1.10)。.17、.19 和 .20 的值分別對應至 LAN、WAN1 和 WAN2 至 RX 統計(單位為 Byte)。您也可以 SNMP Get ifInOctects (.1.3.6.1.2.1.2.2.1.10.19) 取得 WAN1 的 RX bytes。
- 傳輸 (TX): SNMP Walk ifOutOctets (.1.3.6.1.2.1.2.2.1.16)。.17、.19 和 .20 的值分別對應至 LAN、WAN1 和 WAN2 至 TX 統計(單位為 Byte)
這篇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