10、40、100ギガビットイーサネットインターフェイスのループバックテストの実行
10、40、100ギガビットイーサネットインターフェイスのループバックテストを使用するためのチェックリスト
目的
ループバック テストを使用して、10、40、100 ギガビット イーサネット インターフェイスの問題を切り分けるには。
アクション
表 1 は、10、40、100ギガビットイーサネットインターフェイスのループバックテストを使用するためのリンクとコマンドを提供します。
タスク |
コマンドまたはアクション |
---|---|
ギガビット イーサネット インターフェイスで疑われるハードウェアの問題を診断する | |
送信ポートと受信ポートを接続します。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
回路の問題が疑われる箇所を診断する | からステップ 2 ~ 8 を実行する。ファスト イーサネットまたはギガビット イーサネットインターフェースに疑われるハードウェアの問題を診断する。 |
ギガビット イーサネット インターフェイスで疑われるハードウェアの問題を診断する
問題点
説明
ハードウェアの問題が疑われる場合、以下の手順で問題があるかどうかを確認することができます。
ソリューション
イーサネット インターフェースのハードウェアの問題が疑われる場合は、以下の手順で診断してください。
ループバックを作成する
物理ループバックを作成したり、ローカル ループバックを設定することで、疑わしいハードウェアの問題を診断するのに役立てることができます。物理ループバックを作成することで、送受信ポートのテストと検証が可能になるため、推奨します。物理ループバックを作成するフィールド エンジニアがいない場合、インターフェイスのローカル ループバックを設定することができます。ローカル ループバックは、物理インターフェース カード(PIC)の内部でループバックを作成します。
光ファイバーインタフェースの物理ループバックを作成する
対処
ポートで物理ループバックを作成するには、既知の正常なファイバーケーブルを使用して送信ポートを受信ポートに接続します。
シングルモードポートにはシングルモードファイバーを、マルチモードポートにはマルチモードファイバーを使用していることを確認してください。
意味
物理ループバックを作成してテストすると、PIC の送信ポートと受信ポートがテストされます。フィールドエンジニアが物理ループを作成できる場合は、PICのより完全なテストが得られるため、このアクションをお勧めします。
関連項目
ローカルループバックを構成する
対処
送信ポートを受信ポートに物理的に接続せずにローカル ループバックを設定するには、次の手順を実行します。
設定モードでは、次の階層レベルに移動します。
[edit] user@router# edit interfaces
interface-name
gigether-optionsローカルループバックを設定します。
[edit interfaces
interface-name
gigether-options user@router# set loopback設定の確認:
user@router# show
たとえば、以下のように表示されます。
[edit interfaces xe-2/0/0 gigether-options] user@router# show loopback;
変更をコミットします。
user@router# commit
たとえば、以下のように表示されます。
[edit interfaces xe-2/0/0 gigether-options] user@router# commit commit complete
ローカル ループバックを作成すると、テスト対象のインターフェイスに内部ループが作成されます。ローカル ループバックは、その PIC でトラフィックを内部的にループします。ローカルループバックはPICの相互接続をテストしますが、送信ポートと受信ポートはテストしません。イーサネットインターフェイスでは、リモート ループバックを作成できないため、 または ステートメントを使用するオプションはありません。local
remote
階層レベルで ステートメントを含めるだけで、インターフェイスはローカル ループバック モードになります。loopback
[edit interfaces interface-name
gigether-options
テストの完了後は、必ずループバックステートメントを削除してください。
関連項目
ギガビットイーサネットインターフェイスが稼働していることを確認する
目的
ギガビットイーサネットインターフェイスのステータスを表示して、物理リンクがアップしているかダウンしているかを判断するのに必要な情報を提供します。
アクション
ギガビット イーサネット インターフェイスのステータスがアップであることを確認するには、次の Junos OS CLI(コマンドライン インターフェイス)の運用モード コマンドを使用します。
user@router> show interfaces (xe-fpc
/pic
/port
| et-fpc
/pic
/port
)
サンプル出力
user@router# show interfaces xe-2/0/0 extensive Physical interface: xe-2/0/0, Enabled, Physical link is Up Interface index: 187, SNMP ifIndex: 591, Generation: 190 Link-level type: Ethernet, MTU: 1514, MRU: 1522, LAN-PHY mode, Speed: 10Gbps, BPDU Error: None, Loop Detect PDU Error: None, MAC-REWRITE Error: None, Loopback: Local, Source filtering: Disabled, Flow control: Enabled, Speed Configuration: Auto Pad to minimum frame size: Disabled Device flags : Present Running Loop-Detected Interface flags: SNMP-Traps Internal: 0x4000 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Schedulers : 0 Hold-times : Up 4000 ms, Down 0 ms Damping : half-life: 0 sec, max-suppress: 0 sec, reuse: 0, suppress: 0, state: unsuppressed Current address: d8:18:d3:b3:6d:ea, Hardware address: d8:18:d3:b3:6d:ea Last flapped : 2019-04-20 17:13:55 PDT (13w4d 21:42 ago) Statistics last cleared: 2019-07-25 14:55:21 PDT (00:01:01 ago) Traffic statistics: Input bytes : 537600 0 bps Output bytes : 539600 0 bps Input packets: 6400 0 pps Output packets: 6400 0 pps IPv6 transit statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Dropped traffic statistics due to STP State: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 0, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 6400 6400 0 1 0 0 0 2 0 0 0 3 0 0 0 Queue number: Mapped forwarding classes 0 best-effort 1 expedited-forwarding 2 assured-forwarding 3 network-control Active alarms : None Active defects : None PCS statistics Seconds Bit errors 0 Errored blocks 0 MAC statistics: Receive Transmit Total octets 652800 652800 Total packets 6400 6400 Unicast packets 6400 6400 Broadcast packets 0 0 Multicast packets 0 0 CRC/Align errors 0 0 FIFO errors 0 0 MAC control frames 0 0 MAC pause frames 0 0 Oversized frames 0 Jabber frames 0 Fragment frames 0 VLAN tagged frames 0 Code violations 0 Total errors 0 0 Filter statistics: Input packet count 6400 Input packet rejects 0 Input DA rejects 0 Input SA rejects 0 Output packet count 6400 Output packet pad count 0 Output packet error count 0 CAM destination filters: 0, CAM source filters: 0 Packet Forwarding Engine configuration: Destination slot: 0 (0x00) CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 9500000000 95 0 low none 3 network-control 5 500000000 5 0 low none Preclassifier statistics: Traffic Class Received Packets Transmitted Packets Dropped Packets real-time 0 0 0 network-control 6400 6400 0 best-effort 0 0 0 Link Degrade : Link Monitoring : Disable Interface transmit statistics: Disabled Logical interface xe-2/0/0.0 (Index 353) (SNMP ifIndex 599) (Generation 175) Flags: Up SNMP-Traps 0x4004000 Encapsulation: ENET2 Traffic statistics: Input bytes : 537600 Output bytes : 539000 Input packets: 6400 Output packets: 6400 Local statistics: Input bytes : 0 Output bytes : 9800 Input packets: 0 Output packets: 100 Transit statistics: Input bytes : 537600 0 bps Output bytes : 529200 0 bps Input packets: 6400 0 pps Output packets: 6300 0 pps Protocol inet, MTU: 1500 Max nh cache: 75000, New hold nh limit: 75000, Curr nh cnt: 1, Curr new hold cnt: 0, NH drop cnt: 0 Generation: 206, Route table: 0 Flags: Sendbcast-pkt-to-re Addresses, Flags: Is-Preferred Is-Primary Destination: 10.108.120.0/30, Local: 10.108.120.1, Broadcast: 10.108.120.3, Generation: 146 Protocol multiservice, MTU: Unlimited, Generation: 207, Route table: 0 Policer: Input: __default_arp_policer__
意味
サンプル出力では、このループバック設定では、リンクがアップしておりアラームも発生していないことを示しています。内部ループバックが設定されている場合、物理的なループバックはアラームなしで起動するはずです。
サンプル出力
物理リンクがダウンしていることがわかる場合は、ポートに問題がある可能性があります。以下の出力は、物理リンクがダウンしている場合の、show interfaces et-// コマンドの例です。fpcpicport
user@router> show interfaces et-3/0/1 Physical interface: et-3/0/1, Enabled, Physical link is Down Interface index: 620, SNMP ifIndex: 564 Link-level type: Ethernet, MTU: 1514, MRU: 1522, Speed: 40Gbps, BPDU Error: None, Loop Detect PDU Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled Pad to minimum frame size: Disabled Device flags : Present Running Down Interface flags: Hardware-Down SNMP-Traps Internal: 0x4000 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Schedulers : 0 Current address: 54:e0:32:71:e3:e2, Hardware address: 54:e0:32:71:e3:e2 Last flapped : 2019-07-05 09:10:02 PDT (3d 14:46 ago) Input rate : 0 bps (0 pps) Output rate : 0 bps (0 pps) Active alarms : LINK Active defects : LINK, LOCAL-FAULT PCS statistics Seconds Bit errors 2 Errored blocks 6 Ethernet FEC Mode : NONE Ethernet FEC statistics Errors FEC Corrected Errors 0 FEC Uncorrected Errors 0 FEC Corrected Errors Rate 0 FEC Uncorrected Errors Rate 0 Interface transmit statistics: Disabled
意味
サンプル出力では、物理リンクがダウンしており、アクティブなアラームとディフェクトがあることが示されています。
表 2では、物理リンクがダウンした場合の問題状況と対処法を紹介しています。
問題点 |
アクション |
---|---|
ケーブルの不一致 |
ファイバーの接続が正しいことを確認します。 |
ケーブルの損傷や汚れ |
ファイバーが、同じタイプの既知の良好なポートを、正常にループできることを確認します。 |
光学的減衰量が多すぎたり少なすぎたりする場合 |
PIC の光学仕様に基づいて、減衰量が正しいことを確認します。 |
送信ポートが、仕様上の dBm 光学範囲内で送信されていません。 |
光インターフェイスの Tx パワーが、PIC の光学仕様の範囲内であることを確認します。 |
ケーブルのタイプとポートの不一致 |
シングルモードのファイバーケーブルが、シングルモードのインターフェースに接続されていること、マルチモードのファイバーケーブルが、マルチモードのインターフェースに接続されていることを確認してください。(この問題は、必ずしも物理的なリンクをダウンさせるものではなく、エラーやパケットのドロップが原因となることもあります)。 |
静的アドレス解決プロトコル テーブルのエントリーを設定する
目的
ループした Ethernet インターフェースからパケットを送出できるように、静的な ARP(Address Resolution Protocol)エントリーを設定します。
テストを完了し、インターフェイスのトラフィックを監視した後、ループテストの最後にスタティック ARP エントリを削除します。
対処
ギガビット イーサネット インタフェースに静的 ARP テーブル エントリを設定するには、次の手順に従います。
ギガビット イーサネット インターフェースの MAC(Media Access Control)アドレスを検索します。
user@router#
run show interfaces xe-2/0/0 extensive | match "Current address"
Current address: d8:18:d3:b3:6d:ea, Hardware address: d8:18:d3:b3:6d:ea
設定モードでは、次の階層レベルに移動します。
[edit] user@router# edit interfaces
interface-name
unitlogical-unit-number
family inet addressaddress
スタティック ARP エントリーを設定します。
user@router# set arp
ip-address
macmac-address
設定をコミットします。
user@router# commit
静的 ARP エントリーが設置されていることを確認します。
[edit interfaces xe-2/0/0.0 unit 0 family inet address 10.108.120.1/30] user@router#run show arp no-resolve
MAC Address Address Interface Flags 02:01:00:00:00:05 10.0.0.5 em1.0 none 00:00:5e:00:01:01 10.85.175.1 fxp0.0 none d8:b1:22:0a:6e:00 10.85.175.2 fxp0.0 none d0:07:ca:57:d7:a0 10.85.175.3 fxp0.0 none 00:a0:a5:c2:06:e2 10.85.175.4 fxp0.0 none d8:18:d3:b3:6d:ea 10.108.120.2 xe-2/0/0.0 permanent 02:01:00:00:00:05 128.0.0.5 em1.0 none 02:01:00:00:00:05 128.0.0.6 em1.0 none 02:00:00:00:00:10 128.0.0.16 em0.0 none 02:00:00:00:00:12 128.0.0.18 em0.0 none 02:00:00:00:00:17 128.0.0.23 em0.0 none 02:00:00:00:00:1a 128.0.0.26 em0.0 none Total entries: 12
意味
出力例は ステップ 1 ~ ステップ 6 のもので、ギガビット イーサネット インターフェース に静的 ARP エントリーが設定されたことを示しています。xe-2/0/0.0
ギガビット イーサネット インターフェイスの統計情報をクリアする
目的
ギガビット イーサネット インターフェイスの統計情報をリセットすることができます。統計情報をリセットすることで、以前の入出力エラーやパケット統計が現在の診断に干渉しないよう、クリーンなスタートを切ることができます。
対処
インタフェースのすべての統計情報をクリアするには、次の Junos OS CLI 運用モードコマンド:
を使用します。
user@router> clear interfaces statistics (xe-fpc
/pic
/port
| et-fpc
/pic
/port
)
サンプル出力
user@router> clear interfaces statistics xe-2/0/0 user@router>
意味
このコマンドは,ギガビット イーサネット インタフェースのインタフェース統計カウンタのみをクリアします。
ギガビットイーサネットインターフェイスの Ping
目的
ping コマンドを使用してループバック接続を確認します。
アクション
イーサネットインターフェースから ping パケットを送信するには、以下の Junos OS CLI 運用モードコマンドを使用します。
user@router> pingremote-IP-address
bypass-routing interface (xe-fpc
/pic
/port
| et-fpc
/pic
/port
) count 100 rapid
サンプル出力
user@router> ping 10.108.120.2 bypass-routing interface xe-2/0/0 count 100 rapid ping 10.108.120.2 bypass-routing interface xe-2/0/0 count 100 rapid (snip) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 6a14 0 0000 36 01 15ba 10.108.120.1 10.108.120.2 36 bytes from 10.108.120.1: Redirect Host(New addr: 10.108.120.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 6a14 0 0000 35 01 16ba 10.108.120.1 10.108.120.2 36 bytes from 10.108.120.1: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 6a14 0 0000 01 01 4aba 10.108.120.1 10.108.120.2 .36 bytes from 10.108.120.1: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 6a76 0 0000 01 01 4a58 10.108.120.1 10.108.120.2 .36 bytes from 10.108.120.1: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 6aa7 0 0000 01 01 4a27 10.108.120.1 10.108.120.2 .36 bytes from 10.108.120.1: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 6ae3 0 0000 01 01 49eb 10.108.120.1 10.108.120.2 .36 bytes from 10.108.120.1: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 6b0a 0 0000 01 01 49c4 10.108.120.1 10.108.120.2 .36 bytes from 10.108.120.1: Time to live exceeded
意味
サンプル出力では、有効期限(TTL)が切れたことにより、リンクが ping テストからのフレームを受信していることを示しています。使用する MAC アドレスは、テストするポートの物理アドレスと同じです。これにより、ポートが ping テストからのフレームを受け入れることができるからです。パケットがリンク上でループしているため、ping を送信するたびに TLL exceeded メッセージを受信することが予想されます。これらのメッセージは、ping パケットがルータと物理的なループバックの間で繰り返しループするために生成されます。ループバックは、パケットが存在しないリンクの反対側に送られると、パケットを同じインターフェースに戻し、そこで再びパケット転送エンジンのファブリックに渡され、ルーティングが行われます。ルート検索の後、TTL はデクリメントされ、パケットは再びループしたインターフェイスから送信されます。このプロセスは、パックが失われるか、TLL の有効期限が切れて後続の TTL 有効期限切れメッセージが表示されるまで繰り返されます。エラーが発生した場合、パケットは破棄され、期待されていた TTL 有効期限切れのメッセージではなく、タイムアウトエラーが表示されます。なお、Junos OS の ICMP エコーパケットのデフォルト TTL は 64 です。つまり、TTL 有効期限切れメッセージが作成される前に、特定のテストパケットが 63 回、送受信に成功する必要があるということです。TTL の値を変更することで、損失の許容範囲を調整することができます。例えば、255 という値は、パケットが 254 回エラーなく送受信されなければならないため、最も厳しいテストとなります。
ギガビット イーサネット インターフェイス エラー統計の確認
目的
永続的なインターフェイス エラーの統計は、Juniper Networks Technical Assistance Center (JTAC) にケースを開く必要があることを示します。
アクション
ローカル インタフェースのエラー統計情報を確認するには、次の Junos OS CLI 運用モード コマンドを使用します。
user@router> (xe-fpc
/pic
/port
| et-fpc
/pic
/port
) extensive
サンプル出力
user@router> show interfaces xe-2/0/0 extensive Physical interface: xe-2/0/0, Enabled, Physical link is Up Interface index: 187, SNMP ifIndex: 591, Generation: 190 Link-level type: Ethernet, MTU: 1514, MRU: 1522, LAN-PHY mode, Speed: 10Gbps, BPDU Error: None, Loop Detect PDU Error: None, MAC-REWRITE Error: None, Loopback: Local, Source filtering: Disabled, Flow control: Enabled, Speed Configuration: Auto Pad to minimum frame size: Disabled Device flags : Present Running Loop-Detected Interface flags: SNMP-Traps Internal: 0x4000 Link flags : None CoS queues : 8 supported, 8 maximum usable queues Schedulers : 0 Hold-times : Up 4000 ms, Down 0 ms Damping : half-life: 0 sec, max-suppress: 0 sec, reuse: 0, suppress: 0, state: unsuppressed Current address: d8:18:d3:b3:6d:ea, Hardware address: d8:18:d3:b3:6d:ea Last flapped : 2019-04-20 17:13:55 PDT (13w4d 21:40 ago) Statistics last cleared: 2019-07-25 14:49:21 PDT (00:04:41 ago) Traffic statistics: Input bytes : 537600 0 bps Output bytes : 539600 0 bps Input packets: 6400 0 pps Output packets: 6400 0 pps IPv6 transit statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Dropped traffic statistics due to STP State: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Input errors: Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Policed discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch timeouts: 0, FIFO errors: 0, Resource errors: 0 Output errors: Carrier transitions: 0, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0, FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0 Egress queues: 8 supported, 4 in use Queue counters: Queued packets Transmitted packets Dropped packets 0 6400 6400 0 1 0 0 0 2 0 0 0 3 0 0 0 Queue number: Mapped forwarding classes 0 best-effort 1 expedited-forwarding 2 assured-forwarding 3 network-control Active alarms : None Active defects : None PCS statistics Seconds Bit errors 0 Errored blocks 0 MAC statistics: Receive Transmit Total octets 652800 652800 Total packets 6400 6400 Unicast packets 6400 6400 Broadcast packets 0 0 Multicast packets 0 0 CRC/Align errors 0 0 FIFO errors 0 0 MAC control frames 0 0 MAC pause frames 0 0 Oversized frames 0 Jabber frames 0 Fragment frames 0 VLAN tagged frames 0 Code violations 0 Total errors 0 0 Filter statistics: Input packet count 6400 Input packet rejects 0 Input DA rejects 0 Input SA rejects 0 Output packet count 6400 Output packet pad count 0 Output packet error count 0 CAM destination filters: 0, CAM source filters: 0 Packet Forwarding Engine configuration: Destination slot: 0 (0x00) CoS information: Direction : Output CoS transmit queue Bandwidth Buffer Priority Limit % bps % usec 0 best-effort 95 9500000000 95 0 low none 3 network-control 5 500000000 5 0 low none Preclassifier statistics: Traffic Class Received Packets Transmitted Packets Dropped Packets real-time 0 0 0 network-control 6400 6400 0 best-effort 0 0 0 Link Degrade : Link Monitoring : Disable Interface transmit statistics: Disabled Logical interface xe-2/0/0.0 (Index 353) (SNMP ifIndex 599) (Generation 175) Flags: Up SNMP-Traps 0x4004000 Encapsulation: ENET2 Traffic statistics: Input bytes : 537600 Output bytes : 539000 Input packets: 6400 Output packets: 6400 Local statistics: Input bytes : 0 Output bytes : 9800 Input packets: 0 Output packets: 100 Transit statistics: Input bytes : 537600 0 bps Output bytes : 529200 0 bps Input packets: 6400 0 pps Output packets: 6300 0 pps Protocol inet, MTU: 1500 Max nh cache: 75000, New hold nh limit: 75000, Curr nh cnt: 1, Curr new hold cnt: 0, NH drop cnt: 0 Generation: 206, Route table: 0 Flags: Sendbcast-pkt-to-re Addresses, Flags: Is-Preferred Is-Primary Destination: 10.108.120.0/30, Local: 10.108.120.1, Broadcast: 10.108.120.3, Generation: 146 Protocol multiservice, MTU: Unlimited, Generation: 207, Route table: 0 Policer: Input: __default_arp_policer__
意味
エラー統計がないか確認する。入出力エラーがあってはならない。support@juniper.net
入力または出力エラーが続く場合は、Juniper Networks Technical Assistance Center (JTAC) の 121 、または 1-888-314-JTAC (米国内)または 1-408-745-9500 (米国外) でケースを開いてください。
回路の問題が疑われる箇所を診断する
目的
回線に問題があると思われるときは、トランスポート層のエンジニアと協力して問題を解決することが重要です。トランスポート層のエンジニアは、ネットワーク内の様々なポイントからルーターへのループを作成することができます。その後、ルーターからネットワーク内のそのループバックへの接続を確認するためのテストを実行することができます。
アクション
トランスポートレイヤーエンジニアがネットワークからルーターへのループを作成した後、ルーターからネットワーク内のループバックへの接続を確認する必要があります。ギガビットイーサネットインターフェイスで疑われるハードウェアの問題を診断するの手順2から手順8に従います。テストで発生した問題は、ルーターからネットワーク内のループバックへの接続に問題があることを示していることに留意してください。
ネットワーク上の様々なポイントでループバックに対するテストを行うことで、問題の原因を切り分けることができます。
このドキュメントは、1Gb、10Gb、40Gb、および100Gbインターフェイスに適用されます。