تسعى مجموعة الوثائق لهذا المنتج جاهدة لاستخدام لغة خالية من التحيز. لأغراض مجموعة الوثائق هذه، يتم تعريف "خالية من التحيز" على أنها لغة لا تعني التمييز على أساس العمر، والإعاقة، والجنس، والهوية العرقية، والهوية الإثنية، والتوجه الجنسي، والحالة الاجتماعية والاقتصادية، والتمييز متعدد الجوانب. قد تكون الاستثناءات موجودة في الوثائق بسبب اللغة التي يتم تشفيرها بشكل ثابت في واجهات المستخدم الخاصة ببرنامج المنتج، أو اللغة المستخدمة بناءً على وثائق RFP، أو اللغة التي يستخدمها منتج الجهة الخارجية المُشار إليه. تعرّف على المزيد حول كيفية استخدام Cisco للغة الشاملة.
حول هذه الترجمة
ترجمت Cisco هذا المستند باستخدام مجموعة من التقنيات الآلية والبشرية لتقديم محتوى دعم للمستخدمين في جميع أنحاء العالم بلغتهم الخاصة. يُرجى ملاحظة أن أفضل ترجمة آلية لن تكون دقيقة كما هو الحال مع الترجمة الاحترافية التي يقدمها مترجم محترف. تخلي Cisco Systems مسئوليتها عن دقة هذه الترجمات وتُوصي بالرجوع دائمًا إلى المستند الإنجليزي الأصلي (الرابط متوفر).
يصف هذا وثيقة كيف أن يفهم واستكشاف أخطاء EtherChannels على مادة حفازة 9000 sery مفتاح.
المتطلبات الأساسية
المتطلبات
توصي Cisco بأن تكون لديك معرفة بالمواضيع التالية:
بنية المحولات Catalyst 9000 Series Switches
بنية برنامج Cisco IOS® XE
بروتوكول التحكم في تجميع الارتباطات (LACP) وبروتوكول تجميع المنافذ (PAgP)
المكونات المستخدمة
تستند المعلومات الواردة في هذا المستند إلى إصدارات المكونات المادية التالية:
Catalyst 9200
Catalyst 9300
Catalyst 9400
Catalyst 9500
Catalyst 9600
تم إنشاء المعلومات الواردة في هذا المستند من الأجهزة الموجودة في بيئة معملية خاصة. بدأت جميع الأجهزة المُستخدمة في هذا المستند بتكوين ممسوح (افتراضي). إذا كانت شبكتك قيد التشغيل، فتأكد من فهمك للتأثير المحتمل لأي أمر.
معلومات أساسية
يرجى الرجوع إلى ملاحظات الإصدار الرسمية من Cisco وأدلة التكوين للحصول على معلومات حديثة حول القيود والقيود وخيارات التكوين والتحذيرات بالإضافة إلى أي تفاصيل أخرى ذات صلة حول هذه الميزة.
توفر EtherChannel روابط عالية السرعة تتحمل الأخطاء بين المحولات والموجهات والخوادم. أستخدم EtherChannel لزيادة النطاق الترددي بين الأجهزة، ونشره في أي مكان في الشبكة حيث يحتمل حدوث أختناقات. توفر EtherChannel إستعادة تلقائية لفقدان إرتباط، فإنها تعيد توزيع الحمل عبر الارتباطات المتبقية. إن يفشل خطوة، EtherChannel يعيد حركة مرور من ال failed خطوة إلى بقية خطوة في القناة دون تدخل.
يمكن تكوين EtherChannels بدون تفاوض أو تفاوض ديناميكي باستخدام دعم بروتوكول تجميع الارتباطات، إما PAgP أو LACP.
عند تمكين PAgP أو LACP، يتعرف المحول على هوية الشركاء وقدرات كل واجهة. ثم يقوم المحول بتجميع الواجهات بشكل ديناميكي بتكوينات مماثلة في إرتباط منطقي واحد (قناة أو منفذ تجميع)، ويقوم المحول على مجموعات الواجهة هذه على قيود الأجهزة والإدارة ومعلمة المنفذ.
علامات LACP
يتم إستخدام علامات LACP للتفاوض على معلمات قناة المنفذ عند وصولها. ألق نظرة على معنى كل علم:
راية
الحالة
نشاط LACP (بت أقل قيمة)
0 = الوضع الخامل
1 = الوضع النشط
مهلة LACP: يشير إلى مهلة LACP المرسلة/المستلمة
0 = مهلة طويلة. 3 × 30 ثانية (الافتراضي)
1 = مهلة قصيرة. 3 × 1 ثانية (معدل LACP السريع)
التجميع
0 = إرتباط فردي (لا يتم اعتباره للتجميع)
1 = قابل للتجميع (مرشح محتمل للتجميع)
التزامن
0 = خارج المزامنة الارتباط (حالة غير جيدة)
1 = الارتباط متزامن (حالة جيدة)
تجميع
0 = غير جاهز لتلقي/معالجة الإطارات
1 = جاهز لتلقي/معالجة الإطارات
توزيع
0 = غير جاهز لإرسال/إرسال الإطارات
1 = جاهز لإرسال/إرسال الإطارات
افتراضية
0 = أنه يستخدم المعلومات الموجودة في وحدات توزيع الطاقة المستلمة للشريك
1 = أنه يستخدم المعلومات الافتراضية للشريك
منتهية الصلاحية (بت أهم)
0 = انتهاء صلاحية وحدات توزيع الطاقة (PDU)،
1 = PDU صالح
القيمة المتوقعة لعلامات LACP هي 0x3D (hex) أو 011101 (ثنائي) للوصول إلى حالة P (مضمن في قناة الميناء).
يوضح هذا القسم كيفية التحقق من الحالة والعملية الصحيحة لبروتوكول LACP.
فحوصات أساسية
فحصت مخرجات LACP باستخدام الأوامر التالية:
show lacp sys-id show lacp neighbor show lacp counters show interfaces accounting debug lacp [event|packet|fsm|misc] debug condition <condition>
يعرض إخراج الأمر الأول معرف نظام المحول وأولويته (ل LACP).
switch#show lacp sys-id 32768, f04a.0206.1900 <-- Your system MAC address
تحقق من تفاصيل جار LACP، مثل الوضع التشغيلي، النظام المجاور Dev ID، وأولويته.
switch#show lacp 1 neighbor
Flags: S - Device is requesting Slow LACPDUs
F - Device is requesting Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
Channel group 1 neighbors
LACP port Admin Oper Port Port
Port Flags Priority Dev ID Age key Key Number State
Gi1/0/1 SA 32768 f04a.0205.d600 12s 0x0 0x1 0x102 0x3D <-- Dev ID: Neighbor MAC Address
Gi1/0/2 SA 32768 f04a.0205.d600 24s 0x0 0x1 0x103 0x3D <-- Dev ID: Neighbor MAC Address
Gi1/0/3 SA 32768 f04a.0205.d600 16s 0x0 0x1 0x104 0x3D <-- Dev ID: Neighbor MAC Address
Gi1/0/4 SA 32768 f04a.0205.d600 24s 0x0 0x1 0x105 0x3D <-- Dev ID: Neighbor MAC Address
التحقق من صحة حزم LACP التي يتم إرسالها واستقبالها بواسطة كل واجهة. إذا تم اكتشاف حزم LACP التالفة، فإن Pkts Err زيادة العداد.
switch#show int gi1/0/1 accounting
GigabitEthernet1/0/1
Protocol Pkts In Chars In Pkts Out Chars Out
Other 0 0 10677 640620
PAgP 879 78231 891 79299
Spanning Tree 240 12720 85 5100
CDP 2179 936495 2180 937020
DTP 3545 170160 3545 212700
LACP 3102 384648 3127 387748
تصحيح الأخطاء
عند عدم وجود مزامنة LACP أو عند عدم تشغيل النظير البعيد ل LACP، يتم إنشاء رسائل syslog.
%ETC-5-L3DONTBNDL2: Gig1/0/1 suspended: LACP currently not enabled on the remote port.
%ETC-5-L3DONTBNDL2: Gig/1/0/1 suspended: LACP currently not enabled on the remote port.
إذا لاحظت مشاكل تفاوض LACP، فقم بتمكين تصحيح أخطاء LACP لتحليل السبب.
switch#debug lacp event Link Aggregation Control Protocol events debugging is on switch#debug lacp packet Link Aggregation Control Protocol packet debugging is on switch#debug lacp fsm Link Aggregation Control Protocol fsm debugging is on switch#debug lacp misc Link Aggregation Control Protocol miscellaneous debugging is on
إذا لزم الأمر، فقم أيضا بتمكين حالة تصحيح الأخطاء إلى واجهة معينة وقم بتصفية الإخراج.
switch#show debugging
Packet Infra debugs:
Ip Address Port
------------------------------------------------------|----------
LACP:
Link Aggregation Control Protocol miscellaneous debugging is on
Link Aggregation Control Protocol packet debugging is on
Link Aggregation Control Protocol fsm debugging is on
Link Aggregation Control Protocol events debugging is on
Condition 1: interface Gi1/0/1 (1 flags triggered)
Flags: Gi1/0/1
حلل تصحيح أخطاء LACP، واستخدم الأمر show logging لعرضها. يظهر إخراج تصحيح الأخطاء آخر إطارات LACP قبل أن تظهر واجهة قناة المنفذ:
switch#show logging LACP :lacp_bugpak: Send LACP-PDU packet via Gi1/0/1
LACP : packet size: 124
LACP: pdu: subtype: 1, version: 1
LACP: Act: tlv:1, tlv-len:20, key:0x1, p-pri:0x8000, p:0x102, p-state:0x3D, s-pri:0x8000, s-mac:f04a.0206.1900
LACP: Part: tlv:2, tlv-len:20, key:0x1, p-pri:0x8000, p:0x102, p-state:0xF, s-pri:0x8000, s-mac:f04a.0205.d600
LACP: col-tlv:3, col-tlv-len:16, col-max-d:0x8000
LACP: term-tlv:0 termr-tlv-len:0
LACP: HA: Attempt to sync events -- no action (event type 0x1) LACP :lacp_bugpak: Receive LACP-PDU packet via Gi1/0/1
LACP : packet size: 124
LACP: pdu: subtype: 1, version: 1
LACP: Act: tlv:1, tlv-len:20, key:0x1, p-pri:0x8000, p:0x102, p-state:0x3D, s-pri:0x8000, s-mac:f04a.0205.d600
LACP: Part: tlv:2, tlv-len:20, key:0x1, p-pri:0x8000, p:0x102, p-state:0x3D, s-pri:0x8000, s-mac:f04a.0206.1900
LACP: col-tlv:3, col-tlv-len:16, col-max-d:0x8000
LACP: term-tlv:0 termr-tlv-len:0
LACP: Gi1/0/1 LACP packet received, processing <-- beginning to process LACP PDU
lacp_rx Gi1/0/1 - rx: during state CURRENT, got event 5(recv_lacpdu)
@@@ lacp_rx Gi1/0/1 - rx: CURRENT -> CURRENT
LACP: Gi1/0/1 lacp_action_rx_current entered
LACP: recordPDU Gi1/0/1 LACP PDU Rcvd. Partners oper state is hex F <-- operational state
LACP: Gi1/0/1 partner timeout mode changed to 0
lacp_ptx Gi1/0/1 - ptx: during state FAST_PERIODIC, got event 2(long_timeout)
@@@ lacp_ptx Gi1/0/1 - ptx: FAST_PERIODIC -> SLOW_PERIODIC
LACP: Gi1/0/1 lacp_action_ptx_fast_periodic_exit entered
LACP: lacp_p(Gi1/0/1) timer stopped
LACP: Gi1/0/1 lacp_action_ptx_slow_periodic entered
LACP: timer lacp_p_s(Gi1/0/1) started with interval 30000.
LACP: recordPDU Gi1/0/1 Partner in sync and aggregating <-- peer is in sync
LACP: Gi1/0/1 Partners oper state is hex 3D <-- operational state update
LACP: timer lacp_c_l(Gi1/0/1) started with interval 90000.
LACP: Gi1/0/1 LAG_PARTNER_UP.
LACP: Gi1/0/1 LAG unchanged
lacp_mux Gi1/0/1 - mux: during state COLLECTING_DISTRIBUTING, got event 5(in_sync) (ignored)
lacp_handle_standby_port_internal called, depth = 1
LACP: lacp_handle_standby_port_internal: No Standby port found for LAG 1
lacp_handle_standby_port_internal called, depth = 1
LACP: lacp_handle_standby_port_internal: No Standby port found for LAG 1
lacp_handle_standby_port_internal called, depth = 1
LACP: lacp_handle_standby_port_internal: No Standby port found for LAG 1
LACP: lacp_t(Gi1/0/1) timer stopped
LACP: lacp_t(Gi1/0/1) expired
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/4, changed state to up%LINK-3-UPDOWN: Interface Port-channel1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
إذا قمت بالتركيز على أهم سطرين من تصحيح أخطاء LACP، فهناك بعض المفاهيم التي تستحق تعريف بعض مفاهيم وحدات توزيع الطاقة (PDU) ل LACP.
ترمز إلى دولة الميناء وهو المفهوم الأكثر أهمية. وقد تم تصميمها باستخدام 8 وحدات بت (علامات LACP). راجع قسم معلومات الخلفية للحصول على مزيد من المعلومات
إس-ماك
إنه عنوان MAC للنظام المستخدم من قبل LACP
ملاحظة: تعد القيم التي يتم رؤيتها في تصحيح الأخطاء سداسية عشرية، لقراءة القيم التي يجب ترجمتها إلى أنظمة عشرية أو ثنائية بشكل صحيح.
التحقق من عملية PAgP
يوضح هذا القسم كيفية التحقق من الحالة الصحيحة لبروتوكول PAgP وتشغيله.
فحوصات أساسية
تحقق من مخرجات PAgP باستخدام الأوامر التالية:
show pagp neighbor show pagp counters show interfaces accounting
تحقق من تفاصيل جار PAgP، مثل وضع التشغيل ومعرف نظام الشريك واسم المضيف والأولوية.
switch#show pagp 1 neighbor
Flags: S - Device is sending Slow hello. C - Device is in Consistent state.
A - Device is in Auto mode. P - Device learns on physical port.
Channel group 1 neighbors
Partner Partner Partner Partner Group
Port Name Device ID Port Age Flags Cap.
Gi1/0/1 switch f04a.0205.d600 Gi1/0/1 16s SC 10001 <-- Dev ID: Neighbor MAC Address
Gi1/0/2 switch f04a.0205.d600 Gi1/0/2 19s SC 10001 <-- Dev ID: Neighbor MAC Address
Gi1/0/3 switch f04a.0205.d600 Gi1/0/3 17s SC 10001 <-- Dev ID: Neighbor MAC Address
Gi1/0/4 switch f04a.0205.d600 Gi1/0/4 15s SC 10001 <-- Dev ID: Neighbor MAC Address
تحقق من تفاصيل مخرجات حزم PAgP التي يتم إرسالها واستقبالها بواسطة كل واجهة. إذا تم اكتشاف حزم PAgP تالفة، فإن Pkts Err زيادة العداد.
switch#show int gi1/0/1 accounting
GigabitEthernet1/0/1
Protocol Pkts In Chars In Pkts Out Chars Out
Other 0 0 10677 640620
PAgP 879 78231 891 79299
Spanning Tree 240 12720 85 5100
CDP 2179 936495 2180 937020
DTP 3545 170160 3545 212700
LACP 3102 384648 3127 387748
تصحيح الأخطاء
إذا لاحظت مشاكل تفاوض PAgP، قم بتمكين تصحيح أخطاء PAgP لتحليل السبب.
switch#debug pagp event Port Aggregation Protocol events debugging is on switch#debug pagp packet Port Aggregation Protocol packet debugging is on switch#debug pagp fsm Port Aggregation Protocol fsm debugging is on switch#debug pagp misc Port Aggregation Protocol miscellaneous debugging is on
إن يحتاج، مكنت شرط debug إلى قارن خاص ومرشح الإنتاج.
ملاحظة: تصحيح أخطاء PAgP لا يرتبط بالنظام الأساسي.
تم إعداد التحقق من تصحيح الأخطاء وعوامل التصفية.
switch#show debugging
Packet Infra debugs:
Ip Address Port
------------------------------------------------------|----------
PAGP:
Port Aggregation Protocol miscellaneous debugging is on
Port Aggregation Protocol packet debugging is on
Port Aggregation Protocol fsm debugging is on
Port Aggregation Protocol events debugging is on
Condition 1: interface Gi1/0/1 (1 flags triggered)
Flags: Gi1/0/1
تحليل تصحيح أخطاء PAgP. يعرض إخراج تصحيح الأخطاء آخر إطارات PAgP قبل أن تظهر واجهة قناة المنفذ:
PAgP: Receive information packet via Gi1/0/1, packet size: 89
flags: 5, my device ID: f04a.0205.d600, learn-cap: 2, port-priority: 128, sent-port-ifindex: 9, group-cap: 10001, group-ifindex: 4E
your device ID: f04a.0206.1900, learn-cap: 2, port-priority: 128, sent-port-ifindex: 9, group-cap: 10001, group-ifindex: 4E
partner count: 1, num-tlvs: 2
device name TLV: switch
port name TLV: Gi1/0/1
PAgP: Gi1/0/1 PAgP packet received, processing <-- Processing ingress PAgP frame
PAgP: Gi1/0/1 proved to be bidirectional <--
PAgP: Gi1/0/1 action_b0 is entered
PAgP: Gi1/0/1 Input = Transmission State, V12 Old State = U5 New State = U5
PAgP: Gi1/0/1 action_a6 is entered
PAgP: Gi1/0/1 action_b9 is entered
PAgP: set hello interval from 1000 to 30000 for port Gi1/0/1 <--
PAgP: Gi1/0/1 Input = Transmission State, V10 Old State = U5 New State = U6 PAgP: set partner 0 interval from 3500 to 105000 for port Gi1/0/1
PAgP: Gi1/0/1 Setting hello flag
PAgP: timer pagp_p(Gi1/0/1) started with interval 105000.
PAgP: pagp_i(Gi1/0/1) timer stopped
PAgP: Gi1/0/1 Input = Port State, E5 Old State = S7 New State = S7
PAgP: pagp_h(Gi1/0/1) expired
PAgP: Send information packet via Gi1/0/1, packet size: 89
flags: 5, my device ID: f04a.0206.1900, learn-cap: 2, port-priority: 128, sent-port-ifindex: 9, group-cap: 10001, group-ifindex: 4E
your device ID: f04a.0205.d600, learn-cap: 2, port-priority: 128, sent-port-ifindex: 9, group-cap: 10001, group-ifindex: 4E
partner count: 1, num-tlvs: 2
device name TLV: switch
port name TLV: Gi1/0/1
PAgP: 89 bytes out Gi1/0/1
PAgP: Gi1/0/1 Transmitting information packetPAgP: timer pagp_h(Gi1/0/1) started with interval 30000 <--
%LINK-3-UPDOWN: Interface Port-channel1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up
التحقق من برمجة EtherChannel
يصف هذا قسم كيف أن يدقق البرمجية وجهاز عملية إعداد ل EtherChannel.
التحقق من البرنامج
تحقق من إدخالات البرامج.
show run interface show etherchannel summary
فحصت ال EtherChannel تشكيل.
switch#show run int gigabitEthernet 1/0/1
تحقق من أن جميع أعضاء المنفذ يتم تجميعهم في قناة المنفذ.
show platform software interface switch <switch number or role> r0 br show platform software fed switch <switch number or role> etherchannel group-mask show platform software fed switch <switch number or role> ifm mappings etherchannel show platform software fed switch <switch number or role> ifm if-id <if ID>
تحقق من معرف قناة المنفذ والواجهات المضمنة.
switch#show platform software interface switch active r0 br
Forwarding Manager Interfaces Information
Name ID QFP ID
---------------------------------------------------------------
GigabitEthernet1/0/1 9 0 GigabitEthernet1/0/2 10 0 GigabitEthernet1/0/3 11 0 GigabitEthernet1/0/4 12 0 Port-channel1 76 0
ركز على قسم معرف IF وتأكد من أن القيمة (الرقم السداسي عشر) مكافئة للمعرف (الرقم العشري) الملاحظ في الأمر السابق.
switch#show platform software fed switch active etherchannel 1 group-mask
Group Mask Info
Aggport IIF Id: 000000000000004c <-- IfId Hex 0x4c = 76 decimal
Active Port: : 4
Member Ports
If Name If Id local Group Mask
-----------------------------------------------------------------------
GigabitEthernet1/0/4 000000000000000c true 7777777777777777 <-- IfId Hex 0xc = 12 decimal
GigabitEthernet1/0/3 000000000000000b true bbbbbbbbbbbbbbbb <-- IfId Hex 0xb = 11 decimal
GigabitEthernet1/0/2 000000000000000a true dddddddddddddddd <-- IfId Hex 0xa = 10 decimal
GigabitEthernet1/0/1 0000000000000009 true eeeeeeeeeeeeeeee <-- IfId Hex 0x9 = 10 decimal
إستلمت ال if id من الميناء قناة مع الأمر تالي. يجب أن تتطابق القيمة مع القيمة من الأمر الأقدم.
أستخدم معرف IF للأمر التالي. ويجب أن تكون المعلومات المبينة مطابقة للنواتج التي تم جمعها في وقت سابق.
switch#show platform software fed switch active ifm if-id 0x0000004cInterface IF_ID : 0x000000000000004c
Interface Name : Port-channel1
Interface Block Pointer : 0x7f0178ca1a28
Interface Block State : READY
Interface State : Enabled
Interface Status : ADD, UPD
Interface Ref-Cnt : 8
Interface Type : ETHERCHANNEL
Port Type : SWITCH PORT
Channel Number : 1
SNMP IF Index : 78
Port Handle : 0xdd000068
# Of Active Ports : 4
Base GPN : 1536
Index[2] : 000000000000000c
Index[3] : 000000000000000b
Index[4] : 000000000000000a
Index[5] : 0000000000000009
Port Information
Handle ............ [0xdd000068]
Type .............. [L2-Ethchannel]
Identifier ........ [0x4c]
Unit .............. [1]
DI ................ [0x7f0178c058a8]
Port Logical Subblock
L3IF_LE handle .... [0x0]
Num physical port . [4]
GPN Base .......... [1536]
Physical Port[2] .. [0x7b000027]
Physical Port[3] .. [0x1f000026]
Physical Port[4] .. [0xc000025]
Physical Port[5] .. [0xb7000024]
Num physical port on asic [0] is [0]
DiBcam handle on asic [0].... [0x0]
Num physical port on asic [1] is [4]
DiBcam handle on asic [1].... [0x7f0178c850a8]
SubIf count ....... [0]
Port L2 Subblock
Enabled ............. [No]
Allow dot1q ......... [No]
Allow native ........ [No]
Default VLAN ........ [0]
Allow priority tag ... [No]
Allow unknown unicast [No]
Allow unknown multicast[No]
Allow unknown broadcast[No]
Allow unknown multicast[Enabled]
Allow unknown unicast [Enabled]
Protected ............ [No]
IPv4 ARP snoop ....... [No]
IPv6 ARP snoop ....... [No]
Jumbo MTU ............ [0]
Learning Mode ........ [0]
Vepa ................. [Disabled]
App Hosting........... [Disabled]
Port QoS Subblock
Trust Type .................... [0x7]
Default Value ................. [0]
Ingress Table Map ............. [0x0]
Egress Table Map .............. [0x0]
Queue Map ..................... [0x0]
Port Netflow Subblock
Port Policy Subblock
List of Ingress Policies attached to an interface
List of Egress Policies attached to an interface
Port CTS Subblock
Disable SGACL .................... [0x0]
Trust ............................ [0x0]
Propagate ........................ [0x0]
Port SGT ......................... [0xffff]
Ref Count : 8 (feature Ref Counts + 1)
IFM Feature Ref Counts
FID : 97 (AAL_FEATURE_L2_MULTICAST_IGMP), Ref Count : 1
FID : 119 ((null)), Ref Count : 1
FID : 84 (AAL_FEATURE_L2_MATM), Ref Count : 1
No Sub Blocks Present
أدوات المنصات
يوضح هذا الجدول الأدوات والميزات المتاحة للمساعدة في فهم متى يتم إستخدامها:
أداة
مستوى
متى تستخدمه
EPC
الأجهزة والبرامج
استخدمه للتحقق من صحة إطارات LACP التي تم تنزيلها على الواجهة المادية أو للتحقق من أنها تصل إلى وحدة المعالجة المركزية.
المنصات إلى الأمام
الأجهزة
إذا قمت بتأكيد إطارات LACP التي تم وضعها على المحول، فاستخدم هذه الأداة لمعرفة قرار إعادة التوجيه الداخلي للمحول.
PSV
الأجهزة
إذا قمت بتأكيد إطارات LACP التي تم وضعها على المحول، فاستخدم هذه الأداة لمعرفة قرار إعادة التوجيه الداخلي للمحول.
CoPP
الأجهزة
ومع ذلك، إذا تم إعادة توجيه الحزمة إلى وحدة المعالجة المركزية من منظور الأجهزة، فلم يتم رؤيتها على مستوى البرامج (وحدة المعالجة المركزية). من المرجح جدا أن هذه الميزة قد أسقطت إطار LACP على طول المسار بين الجهاز ووحدة المعالجة المركزية.
التقاط حزمة وحدة المعالجة المركزية (CPU) من Fed
البرنامج
يمكنك إستخدامها للتحقق من أن إطار LACP تم انتقاؤه إلى وحدة المعالجة المركزية من خلال قائمة الانتظار الصحيحة، كما يتحقق من صحة ما إذا كانت وحدة المعالجة المركزية (CPU) ترسل إطارات LACP مرة أخرى إلى الجهاز.
ملاحظة: يتم تحليل بروتوكول LACP فقط باستخدام هذه الأدوات، ومع ذلك، يمكن إستخدامها أيضا لتحليل إطارات PAgP.
التقاط الحزمة المضمنة (EPC)
الأوامر الخاصة بإعداد Wireshark (EPC) والتقاط وحدات توزيع الطاقة (PDU) الخاصة ببروتوكول التحكم في الوصول إلى شبكة الاتصال (LACP) من خلال المدخل/المخرج.
monitor capture <capture name> [control-plane|interface
]
BOTH monitor capture <capture name> match mac [any|host <source MAC address>|<source MAC address>][any|host <destinationMAC address>|<destinationMAC address>] monitor capture <capture name> file location flash:<name>.pcap show monitor capture <capture name> parameter show monitor capture <capture name> monitor capture <capture name> start monitor capture <capture name> stop show monitor capture file flash:<name>.pcap [detailed]
ملاحظة: يتم إدخال الأوامر ضمن وضع الامتياز.
إعداد التقاط Wireshark.
تلميح: إذا كنت تريد التركيز على واجهة مدمجة معينة و/أو عنوان MAC محدد المصدر، قم بضبط الواجهة ومطابقة كلمات MAC الأساسية.
monitor capture CAP interface GigabitEthernet1/0/1 BOTH monitor capture CAP interface GigabitEthernet1/0/2 BOTH monitor capture CAP interface GigabitEthernet1/0/3 BOTH monitor capture CAP interface GigabitEthernet1/0/4 BOTH monitor capture CAP match mac any host 0180.c200.0002 show monitor capture CAP file location flash:CAP.pcap
ملاحظة: يساعدك عنوان MAC للوجهة 0180.c200.002 المعرف على الالتقاط على تصفية إطارات LACP.
تحقق من تكوين Wireshark بشكل صحيح:
switch#show mon cap CAP parameter monitor capture CAP interface GigabitEthernet1/0/1 BOTH monitor capture CAP interface GigabitEthernet1/0/2 BOTH monitor capture CAP interface GigabitEthernet1/0/3 BOTH monitor capture CAP interface GigabitEthernet1/0/4 BOTH monitor capture CAP match mac any host 0180.c200.0002 monitor capture CAP file location flash:LACP.pcap
switch#show mon cap CAP
Status Information for Capture CAP
Target Type:
Interface: GigabitEthernet1/0/1, Direction: BOTH
Interface: GigabitEthernet1/0/2, Direction: BOTH
Interface: GigabitEthernet1/0/3, Direction: BOTH
Interface: GigabitEthernet1/0/4, Direction: BOTH
Status : Inactive
Filter Details:
MAC
Source MAC: 0000.0000.0000 mask:ffff.ffff.ffff
Destination MAC: 0180.c200.0002 mask:0000.0000.0000
Buffer Details:
Buffer Type: LINEAR (default)
File Details:
Associated file name: flash:CAP.pcap
Limit Details:
Number of Packets to capture: 0 (no limit)
Packet Capture duration: 0 (no limit)
Packet Size to capture: 0 (no limit)
Packet sampling rate: 0 (no sampling)
بدء الالتقاط:
switch#mon cap CAP start Started capture point : CAP
أوقفه بعد (على الأقل) 30 ثانية إذا لم تستخدم المؤقت السريع لمعدل LACP:
switch#mon cap CAP stop
Capture statistics collected at software:
Capture duration - 58 seconds
Packets received - 16
Packets dropped - 0
Packets oversized - 0
Bytes dropped in asic - 0
Stopped capture point : CAP
إذا كنت بحاجة إلى التحقق من حقل LACP من إطار معين، فاستخدم الكلمة الأساسية التفصيلية.
switch#show mon cap file flash:CAP.pcap detailed
Starting the packet display ........ Press Ctrl + Shift + 6 to exit
Frame 1: 124 bytes on wire (992 bits), 124 bytes captured (992 bits) on interface 0
Interface id: 0 (/tmp/epc_ws/wif_to_ts_pipe)
Interface name: /tmp/epc_ws/wif_to_ts_pipe
Encapsulation type: Ethernet (1)
Arrival Time: Mar 28, 2023 15:48:14.985430000 UTC
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1680018494.985430000 seconds
[Time delta from previous captured frame: 0.000000000 seconds]
[Time delta from previous displayed frame: 0.000000000 seconds]
[Time since reference or first frame: 0.000000000 seconds]
Frame Number: 1
Frame Length: 124 bytes (992 bits)
Capture Length: 124 bytes (992 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:slow:lacp]
Ethernet II, Src: f0:4a:02:06:19:04 (f0:4a:02:06:19:04), Dst: 01:80:c2:00:00:02 (01:80:c2:00:00:02)
Destination: 01:80:c2:00:00:02 (01:80:c2:00:00:02)
Address: 01:80:c2:00:00:02 (01:80:c2:00:00:02)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
Source: f0:4a:02:06:19:04 (f0:4a:02:06:19:04)
Address: f0:4a:02:06:19:04 (f0:4a:02:06:19:04)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: Slow Protocols (0x8809)
Slow Protocols
Slow Protocols subtype: LACP (0x01)
Link Aggregation Control Protocol
LACP Version: 0x01
TLV Type: Actor Information (0x01)
TLV Length: 0x14
Actor System Priority: 32768
Actor System ID: f0:4a:02:06:19:00 (f0:4a:02:06:19:00)
Actor Key: 1
Actor Port Priority: 32768
Actor Port: 261
Actor State: 0x3d, LACP Activity, Aggregation, Synchronization, Collecting, Distributing
.... ...1 = LACP Activity: Active
.... ..0. = LACP Timeout: Long Timeout
.... .1.. = Aggregation: Aggregatable
.... 1... = Synchronization: In Sync
...1 .... = Collecting: Enabled
..1. .... = Distributing: Enabled
.0.. .... = Defaulted: No
0... .... = Expired: No
[Actor State Flags: **DCSG*A]
Reserved: 000000
TLV Type: Partner Information (0x02)
TLV Length: 0x14
Partner System Priority: 32768
Partner System: f0:4a:02:05:d6:00 (f0:4a:02:05:d6:00)
Partner Key: 1
Partner Port Priority: 32768
Partner Port: 261
Partner State: 0x3d, LACP Activity, Aggregation, Synchronization, Collecting, Distributing
.... ...1 = LACP Activity: Active
.... ..0. = LACP Timeout: Long Timeout
.... .1.. = Aggregation: Aggregatable
.... 1... = Synchronization: In Sync
...1 .... = Collecting: Enabled
..1. .... = Distributing: Enabled
.0.. .... = Defaulted: No
0... .... = Expired: No
[Partner State Flags: **DCSG*A]
Reserved: 000000
TLV Type: Collector Information (0x03)
TLV Length: 0x10
Collector Max Delay: 32768
Reserved: 000000000000000000000000
TLV Type: Terminator (0x00)
TLV Length: 0x00
Pad: 000000000000000000000000000000000000000000000000...
Frame 2: 124 bytes on wire (992 bits), 124 bytes captured (992 bits) on interface 0
Interface id: 0 (/tmp/epc_ws/wif_to_ts_pipe)
Interface name: /tmp/epc_ws/wif_to_ts_pipe
Encapsulation type: Ethernet (1)
Arrival Time: Mar 28, 2023 15:48:17.548836000 UTC
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1680018497.548836000 seconds
[Time delta from previous captured frame: 2.563406000 seconds]
[Time delta from previous displayed frame: 2.563406000 seconds]
[Time since reference or first frame: 2.563406000 seconds]
ملاحظة: يمكن أن يختلف تنسيق الإخراج على 9200 جهاز ولا يمكن قراءته من المحول. قم بتصدير عملية الالتقاط واقرأها من الكمبيوتر الشخصي إذا كان هذا هو الحال.
المنصات إلى الأمام
لتصحيح أخطاء معلومات إعادة التوجيه وتتبع مسار الحزمة في مستوى إعادة توجيه الأجهزة، أستخدم show platform hardware fed switch
forward interface
erasecat4000_flash:. يحاكي هذا الأمر الحزمة المعرفة من قبل المستخدم ويسترجع معلومات إعادة التوجيه من مستوى إعادة توجيه الأجهزة. خلقت ربط على المدخل ميناء يؤسس على الربط معلم أن أنت تعين في هذا أمر. أنت يستطيع أيضا زودت ربط كامل من ال على قبض ربط يخزن في PCAP مبرد.
يوضح هذا الموضوع بالتفصيل الخيارات الخاصة بإعادة توجيه الواجهة فقط، أي الخيارات المتاحة مع show platform hardware fed switch {switch_num|active|standby}forward interface erasecat4000_flash:.
show platform hardware fed switch <switch number or role> forward interface <interface ID> <source mac address> <destination mac address> <protocol number | arp | cos | ipv4 | ipv6 | mpls> show platform hardware fed switch <switch number or role> forward interface <interface ID> pcap <pcap file name> number <packet number> data show platform hardware fed switch <switch number or role> forward interface <interface ID> vlan <VLAN ID> <source mac address> <destination mac address> <protocol-number | arp | cos | ipv4 | ipv6 | mpls>
قم بتعريف التقاط المنصات للأمام. في هذه الحالة، CAP.pcap يتم تحليل الإطار 1.
switch#show platform hardware fed switch active forward interface gigabitEthernet 1/0/1 pcap flash:CAP.pcap number 1 data
show forward is running in the background. After completion, syslog will be generated.
بمجرد إتمام التقاط إعادة توجيه النظام الأساسي، يتم عرض رسائل syslog التالية.
تحليل التقاط إعادة توجيه النظام الأساسي. يخبرك قسم المخرج ما هو قرار إعادة التوجيه الداخلي. من المتوقع أن يتم ضرب إطارات LACP و PAgP على وحدة المعالجة المركزية.
switch#show platform hardware fed switch active forward last summary
Input Packet Details:
###[ Ethernet ]###
dst = 01:80:c2:00:00:02
src. = f0:4a:02:06:19:04
type = 0x8809 <-- slow protocols (LACP) defined by IANA
###[ Raw ]###
load = '01 01 01 14 80 00 F0 4A 02 06 19 00 00 01 80 00 01 05 3D 00 00 00 02 14 80 00 F0 4A 02 05 D6 00 00 01 80 00 01 05 3D 00 00 00 03 10 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00'
Ingress:
Port :
Global Port Number : 1536
Local Port Number : 0
Asic Port Number : 0
Asic Instance : 1
Vlan : 1
Mapped Vlan ID : 4
STP Instance : 2
BlockForward : 0
BlockLearn : 0
L3 Interface : 37
IPv4 Routing : enabled
IPv6 Routing : enabled
Vrf Id : 0
Adjacency:
Station Index : 107 [SI_CPUQ_L2_CONTROL]
Destination Index : 21106
Rewrite Index : 1
Replication Bit Map : 0x20 ['coreCpu']
Decision:
Destination Index : 21106 [DI_CPUQ_L2_CONTROL]
Rewrite Index : 1 [RI_CPU]
Dest Mod Index : 0 [IGR_FIXED_DMI_NULL_VALUE]
CPU Map Index : 0 [CMI_NULL]
Forwarding Mode : 0 [Bridging]
Replication Bit Map : ['coreCpu']
Winner : L2DESTMACVLAN LOOKUP
Qos Label : 65
SGT : 0
DGTID : 0
Egress:
Possible Replication :
Port : CPU_Q_L2_CONTROL
Output Port Data :
Port : CPU
Asic Instance : 0
CPU Queue : 1 [CPU_Q_L2_CONTROL]
Unique RI : 0
Rewrite Type : 0 [NULL]
Mapped Rewrite Type : 15 [CPU_ENCAP]
Vlan : 1
Mapped Vlan ID : 4
********************************************************************************
متجه حالة الحزمة (PSV)
PSV مماثل لالتقاط Platform Forward مع الاستثناء أن PSV يلتقط إطارات المدخل المباشر من الشبكة أن يطابق معيار المشغل.
ملاحظة: يتم دعم PSV فقط على الأنظمة الأساسية من C9500-32C و C9500-32QC و C9500-24Y4C و C9500-48Y4C و C9606R.
debug platform hardware fed <switch number or role> capture trigger interface ingress debug platform hardware fed <switch number or role> capture trigger layer2 show platform hardware fed <switch number or role> capture trigger show platform hardware fed <switch number or role> capture status show platform hardware fed <switch number or role> capture summary
يتم إستخدام فتحتي C9500-48Y4C المتصلتين ببعضهما البعض لقناة المنفذ التالية وميزة التقاط PSV.
قم بإعداد معايير المشغل. أستخدم الكلمة الأساسية طبقة 2 للمطابقة مع عنوان MAC المصدر المحدد وعنوان LACP MAC كغاية.
switch#debug platform hardware fed active capture trigger interface twentyFiveGigE1/0/1 ingress switch#debug platform hardware fed active capture trigger layer2 0000.0000.0000 0180.c200.0002 <-- match source MAC: any, match destination MAC: LACP MAC address Capture trigger set successful.
ملاحظة: يعني عنوان MAC 000.000.000 المعرف على التقاط PSV مطابقة أي.
تم إعداد التحقق من صحة معايير المشغل.
switch#show platform hardware fed active capture trigger
Trigger Set:
Ingress Interface: TwentyFiveGigE1/0/1
Dest Mac: 0180.c200.0002
بمجرد تشغيل PST، يتم عرض الحالة كمكتمل.
switch#show platform hardware fed active capture status Asic: 0 Status: Completed
تحليل إخراج التقاط PSV باستخدام الأمر التالي. من المتوقع أن ترى إطارات LACP و PAgP مثقوبة على وحدة المعالجة المركزية.
switch#show platform hardware fed active capture summary
Trigger: Ingress Interface:TwentyFiveGigE1/0/1 Dest Mac:0180.c200.0002
Input Output State Reason
Tw1/0/1 cpuQ 1 PUNT Bridged
منظم مستوى التحكم (CoPP)
CoPP هو أساسا منظم جودة الخدمة الذي يتم تطبيقه على أنبوب البيانات بين مستوى البيانات (الأجهزة) ومستوى التحكم (وحدة المعالجة المركزية) لتجنب حدوث مشاكل كبيرة في وحدة المعالجة المركزية. يمكن أن يقوم CoPP بتصفية إطارات LACP و PAgP إذا كانت هذه الإطارات تتجاوز الحد الذي حددته الميزة.
التحقق من الصحة إذا قام CoPP بإسقاط حزم حزم LACP.
show platform hardware fed switch active qos queue stats internal cpu policer
مخرجات هذا الأمر، لا تحتوي قائمة انتظار التحكم في المستوى الثاني على عمليات إسقاط:
switch#show platform hardware fed switch active qos queue stats internal cpu policer
CPU Queue Statistics
============================================================================================
(default) (set) Queue Queue
QId PlcIdxQueue Name Enabled Rate Rate Drop(Bytes) Drop(Frames)
--------------------------------------------------------------------------------------------
0 11 DOT1X Auth Yes 1000 1000 0 0
1 1 L2 Control Yes 2000 2000 0 0 <-- L2 Control queue filters LACP packets, rate set to 2000 (packets per second), no drops
2 14 Forus traffic Yes 4000 4000 0 0
<output omitted>
* NOTE: CPU queue policer rates are configured to the closest hardware supported value
CPU Queue Policer Statistics
====================================================================
Policer Policer Accept Policer Accept Policer Drop Policer Drop
Index Bytes Frames Bytes Frames
-------------------------------------------------------------------
0 0 0 0 0
1 13328202 79853 0 0 <-- QId = 1 matches policer index (level 1) = 1, no drops
2 0 0 0 0
ولا يتوقع أن يرهق قائمة انتظار التحكم في المستوى الثاني. يلزم التقاط حزمة مستوى التحكم عند ملاحظة العكس.
التقاط حزمة وحدة المعالجة المركزية (CPU) من Fed
إذا كنت قد ضمنت تلقي حزم LACP على مستوى الواجهة، فإن EPC و ELAM/PSV أكدا أن إطارات LACP تم ضربها إلى وحدة المعالجة المركزية دون ملاحظة أي حالات سقوط على مستوى CoPP، ثم أستخدم أداة التقاط حزمة وحدة المعالجة المركزية (CPU) الخاصة بوحدة المعالجة المركزية (FED).
يوضح لك التقاط حزمة وحدة المعالجة المركزية (CPU) الخاصة بوحدة المعالجة المركزية (CPU) الخاصة بوحدة المعالجة المركزية (FED) سبب توجيه ضربات إلى حزمة من الأجهزة إلى وحدة المعالجة المركزية، كما يوضح لك ما هي قائمة انتظار وحدة المعالجة المركزية (CPU) التي تم إرسال الحزمة إليها. كما يمكن لالتقاط حزمة وحدة المعالجة المركزية (CPU) من Fed التقاط الحزم التي تم إنشاؤها بواسطة وحدة المعالجة المركزية (CPU) التي تم حقنها في الأجهزة.
debug platform software fed sw active punt packet-capture set-filter <filter> debug platform software fed switch active punt packet-capture start debug platform software fed switch active punt packet-capture stop show platform software fed switch active punt packet-capture status show platform software fed switch active punt packet-capture brief
debug platform software fed sw active inject packet-capture set-filter <filter> debug platform software fed switch active inject packet-capture start debug platform software fed switch active inject packet-capture stop show platform software fed switch active inject packet-capture status show platform software fed switch active inject packet-capture brief
بانت
قم بتعريف التقاط الحزمة لتصفية حزم LACP فقط.
switch#debug platform software fed sw active punt packet-capture set-filter "eth.dst==0180.c200.0002" Filter setup successful. Captured packets will be cleared
ابدأ عملية الالتقاط.
switch#debug platform software fed sw active punt packet-capture start Punt packet capturing started.
أوقفه بعد (على الأقل) 30 ثانية إذا لم تستخدم المؤقت السريع لمعدل LACP.
switch#debug platform software fed switch active punt packet-capture stop Punt packet capturing stopped. Captured 11 packet(s)
تحقق من حالة التقاط حزمة وحدة المعالجة المركزية (CPU) الخاصة بوحدة المعالجة المركزية (CPU) الخاصة بوحدة المعالجة المركزية (FED).
switch#show platform software fed switch active punt packet-capture status Punt packet capturing: disabled. Buffer wrapping: disabled Total captured so far: 11 packets. Capture capacity : 4096 packets Capture filter : "eth.dst==0180.c200.0002"
تحليل إخراج التقاط حزمة وحدة المعالجة المركزية (CPU) الخاصة بوحدة المعالجة المركزية (CPU) الخاصة بوحدة المعالجة المركزية (FED).
switch#show platform software fed switch active punt packet-capture brief
Punt packet capturing: disabled. Buffer wrapping: disabled
Total captured so far: 11 packets. Capture capacity : 4096 packets
Capture filter : "eth.dst==0180.c200.0002"
------ Punt Packet Number: 1, Timestamp: 2023/03/31 00:27:54.141 ------
interface : physical: GigabitEthernet1/0/2[if-id: 0x0000000a], pal: GigabitEthernet1/0/2 [if-id: 0x0000000a] <-- interface that punted the frame
metadata : cause: 96 [Layer2 control protocols], sub-cause: 0, q-no: 1, linktype: MCP_LINK_TYPE_LAYER2 [10] <-- LACP frame was punted due to L2 ctrl protocol to queue 1 (L2 control)
ether hdr : dest mac: 0180.c200.0002, src mac: f04a.0205.d602 <-- source and destination MAC addresses
ether hdr : ethertype: 0x8809
------ Punt Packet Number: 2, Timestamp: 2023/03/31 00:27:58.436 ------
interface : physical: GigabitEthernet1/0/4[if-id: 0x0000000c], pal: GigabitEthernet1/0/4 [if-id: 0x0000000c]
metadata : cause: 96 [Layer2 control protocols], sub-cause: 0, q-no: 1, linktype: MCP_LINK_TYPE_LAYER2 [10]
ether hdr : dest mac: 0180.c200.0002, src mac: f04a.0205.d604
ether hdr : ethertype: 0x8809
------ Punt Packet Number: 3, Timestamp: 2023/03/31 00:28:00.758 ------
interface : physical: GigabitEthernet1/0/1[if-id: 0x00000009], pal: GigabitEthernet1/0/1 [if-id: 0x00000009]
metadata : cause: 96 [Layer2 control protocols], sub-cause: 0, q-no: 1, linktype: MCP_LINK_TYPE_LAYER2 [10]
ether hdr : dest mac: 0180.c200.0002, src mac: f04a.0205.d601
ether hdr : ethertype: 0x8809
------ Punt Packet Number: 4, Timestamp: 2023/03/31 00:28:11.888 ------
interface : physical: GigabitEthernet1/0/3[if-id: 0x0000000b], pal: GigabitEthernet1/0/3 [if-id: 0x0000000b]
metadata : cause: 96 [Layer2 control protocols], sub-cause: 0, q-no: 1, linktype: MCP_LINK_TYPE_LAYER2 [10]
ether hdr : dest mac: 0180.c200.0002, src mac: f04a.0205.d603
ether hdr : ethertype: 0x8809
حقن
قم بتعريف التقاط الحزمة لتصفية حزم LACP فقط.
switch#debug platform software fed sw active inject packet-capture set-filter "eth.dst==0180.c200.0002" Filter setup successful. Captured packets will be cleared
ابدأ عملية الالتقاط.
switch#debug platform software fed sw active inject packet-capture start Punt packet capturing started.
أوقفه بعد (على الأقل) 30 ثانية إذا لم تستخدم المؤقت السريع لمعدل LACP.