ほぼ全ての機能を新サイトへ移行しました

show interfaces statusコマンドについて

  • フォーラムは新サイトへ移行しました。
  • このフォーラムではゲスト投稿が禁止されています
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 .2 .3 | 投稿日時 2013-11-20 18:44 | 最終変更
takamoto463  長老 居住地: 大阪  投稿数: 177
いつもお世話になります。

今日は簡易シミュレータでもポートのspeed/Duplexの確認に使う
「show interfaces status」を実機cisco1812Jにて行いました。

すると・・・

Router>en
Router#show interfaces status

Port Name Status Vlan Duplex Speed Type
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Fa4 notconnect 1 auto auto 10/100BaseTX
Fa5 notconnect 1 auto auto 10/100BaseTX
Fa6 notconnect 1 auto auto 10/100BaseTX
Fa7 notconnect 1 auto auto 10/100BaseTX
Fa8 notconnect 1 auto auto 10/100BaseTX
Fa9 notconnect 1 auto auto 10/100BaseTX

 Fa0、Fa1の情報が表示されません。

 あれ?意図的にダウンさせたりしてたら表示されないんだっけ?
 と、「show ip interface brief」で確認してみる。

Router#show ip interface brief
Interface IP-Address OK? Method Status Prot ocol
FastEthernet0 unassigned YES unset administratively down down
FastEthernet1 unassigned YES unset administratively down down
BRI0 unassigned YES unset administratively down down
BRI0:1 unassigned YES unset administratively down down
BRI0:2 unassigned YES unset administratively down down
FastEthernet2 unassigned YES unset up down
FastEthernet3 unassigned YES unset up down
FastEthernet4 unassigned YES unset up down
FastEthernet5 unassigned YES unset up down
FastEthernet6 unassigned YES unset up down
FastEthernet7 unassigned YES unset up down
--More--
FastEthernet8 unassigned YES unset up down


 あ、こちらでは表示される。


Router#conf t
Router(config)#int fa0
Router(config-if)#no shut
*Nov 20 07:10:12.955: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to up
*Nov 20 07:10:13.955: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to up
Router(config)#end
Router#

 とりあえず、Fa0だけ有効化して、再度「show interfaces status」。


Router#show interfaces status

Port Name Status Vlan Duplex Speed Type
Fa2 notconnect 1 auto auto 10/100BaseTX
Fa3 notconnect 1 auto auto 10/100BaseTX
Fa4 notconnect 1 auto auto 10/100BaseTX
Fa5 notconnect 1 auto auto 10/100BaseTX
Fa6 notconnect 1 auto auto 10/100BaseTX
Fa7 notconnect 1 auto auto 10/100BaseTX
Fa8 notconnect 1 auto auto 10/100BaseTX
Fa9 notconnect 1 auto auto 10/100BaseTX


 やっぱりFa0は表示されません。
 そこで、「show interfaces fa0」で確認。。
 ↓Fa0はup/upになってます。(関係ないのか(苦笑))

Router#show interfaces fa0
FastEthernet0 is up, line protocol is up
Hardware is PQ3_TSEC, address is 5475.d0f3.97de (bia 5475.d0f3.97de)
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, 10Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:07, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
4685 packets input, 576667 bytes
Received 3150 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog
0 input packets with dribble condition detected
326 packets output, 188385 bytes, 0 underruns
3 output errors, 6 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out


 うーーん。よくわかりません。
 普段気にしていない項目で、「 Last clearing of "show interface" counters never」の「never」ってなんとなく表示しないとかに関係ないかな?なんて、思ったりするのですが。

 最初、ハードの故障?とも思いましたが、「show ip interface brief」では出てくるので、違うのかなぁ。。と。

 よろしくお願いします。


追記:
 Fa0にip addressをふって、PCにpingをとばしましたが、pingは通るようです。
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2013-11-20 19:50
arashi1977  長老 居住地: 広島  投稿数: 1715
1812持ってないので間違ってるかもしれませんが
1812って
Fa0, Fa1: 単独のイーサネットポート
Fa2〜9: 8port Switchとして使用可能なイーサネットポート
だったかと思うので、その辺が関連するのかもしれません。
前の投稿 - 次の投稿 | 親投稿 - 子投稿.1 | 投稿日時 2013-11-21 11:01
takamoto463  長老 居住地: 大阪  投稿数: 177
おはようございます。

確かに、ルータの後ろを見るとFE0、FE1だけ別くくりに

なってます。

ところで、speed/duplexの一覧を表示できる他のコマンド

はあるでしょうか?

「show interfaces | include duplex」でも、一応全部の

ポートの確認はできますが、ポートの数が多いと上から

数えていくのが面倒くさいのと、間違いやすそうです。


Router#show interfaces | include duplex
Auto-duplex, 10Mb/s, 100BaseTX/FX ←Fa0の状態から表示されてる。
Auto-duplex, Unknown Speed, 100BaseTX/FX
Auto-duplex, Auto-speed
Auto-duplex, Auto-speed
Auto-duplex, Auto-speed
Auto-duplex, Auto-speed
Auto-duplex, Auto-speed
Auto-duplex, Auto-speed
Auto-duplex, Auto-speed
Auto-duplex, Auto-speed

こういうのって、試験でも使えるんでしょうか?

以上、よろしくお願いします。
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2013-11-21 11:25
arashi1977  長老 居住地: 広島  投稿数: 1715
引用:
「show interfaces | include duplex」でも、一応全部の

ポートの確認はできますが、ポートの数が多いと上から

数えていくのが面倒くさいのと、間違いやすそうです。
これで困らないんじゃないでしょうか?

試験の話は別にして、私だったら24ポートとか48ポートのスイッチでもないので
show interfaces fastethernet0
show interfaces fastethernet1
show interfaces status
の3つコマンド叩いて確認するかなぁ…?
前の投稿 - 次の投稿 | 親投稿 - 子投稿なし | 投稿日時 2013-11-21 19:18
takamoto463  長老 居住地: 大阪  投稿数: 177
そーなんですね^^

なんか、ちょっと安心しました。

実務を全く知らないので、教科書どおりの勉強に不安を覚えてたので。

本日も一日ありがとうございました。

また、よろしくお願いします。

  >フォーラム検索へ


Copyright (c) 2020 Ping-t All rights reserved.
ログイン
ユーザ名 or E-Mailアドレス:

パスワード:







プレミアムコンテンツ

受験チケット(割引)

Contact

LPI-Japan Logo

LPI Logo