• 検索結果がありません。

インターフェースコマンド

ドキュメント内 TD ApresiaLightGM200 シリーズ Ver CLI マニュアル (ページ 148-159)

6 インターフェースとハードウェア

本章では、装置のインターフェースや、ハードウェアに関連するコマンドについて説明します。

インターフェースには、物理ポートを示す物理インターフェースの他に、VLAN やポートチャネルなど の論理インターフェースがあります。

VLAN インターフェースは、レイヤー2 の VLAN とその上位レイヤーを接続するための論理インター フェースです。本装置では、VLAN インターフェースは最大1個まで設定することが可能で、登録した VLANインターフェースにIPアドレスなどの上位レイヤーの設定を登録します。

ポートチャネルインターフェースは、複数の物理ポートを束ねて仮想的に1個の回線とした論理イン ターフェースです。例えばVLANの割り当てなど、単一回線として動作するための設定を登録します。

物理インターフェースと各論理インターフェースの設定は、interface コマンドを使用して対応するイ ンターフェース設定モードに移行して実行します。例えば、物理ポートのリンク速度を指定する speed コマンドは、interface port コマンドを使用してポートインターフェース設定モードに移行してから 発行します。

複数の物理ポートで同じ設定を行う必要がある場合、複数のポート指定して一括で設定を行う範囲指 定ポートインターフェース設定モードを使用することもできます。

interface

目的 指定したインターフェースのインターフェース設定モードに移行します。

シンタックス interface {INTERFACE-ID | range INTERFACE-ID [,|-]}

no interface INTERFACE-ID

パラメーター INTERFACE-ID:移行するインターフェースを指定します。以下のパラメー ターのいずれかを使用できます。

• port:物理ポートのインターフェース設定モードに移行します。

• vlan:VLANインターフェース設定モードに移行します。

• port-channel:ポートチャネルインターフェース設定モードに移行しま

す。

• l2vlan:L2VLANインターフェース設定モードに移行します。

range:物理ポートあるいは L2VLAN で範囲指定のインターフェース設定

モードに移行する場合に指定します。このパラメーターを指定した場合、

INTERFACE-IDではportもしくはl2vlanのみ使用可能で、複数のインター フェースを指定することができます。。

デフォルト なし

コマンドモード グローバル設定モード デフォルトレベル レベル:12

使用上のガイドライン 未登録の論理インターフェースを指定した場合、該当する論理インター フェースを作成します。作成した論理インターフェースを削除するには、

no形式を使用します。

使用例:

インターフェースポート1/0/5のインターフェース設定モードに移行する方法を示します。

# configure terminal

(config)# interface port 1/0/5 (config-if-port)#

VLAN 100のインターフェース設定モードに移行する方法を示します。

# configure terminal

(config)# interface vlan100 (config-if-vlan)#

ポートチャネル3のインターフェース設定モードに移行する方法を示します。

# configure terminal

(config)# interface port-channel 3 (config-if-port-channel)#

ポート1/0/1〜1/0/5の範囲指定でインターフェース設定モードに移行する方法を示します。

# configure terminal

(config)# interface range port 1/0/1-5 (config-if-port-range)#

shutdown

目的 インターフェースを無効にします。有効にするには、本コマンドの no 形 式を使用します。

シンタックス shutdown no shutdown パラメーター なし

デフォルト 有効

コマンドモード インターフェース設定モード(port, range, port-channel, vlan) デフォルトレベル レベル:12

使用上のガイドライン 本コマンドにより、インターフェースは無効状態に遷移します。物理ポー トが無効状態になると、対象ポートはリンクアップできなくなり、パケッ トを送受信できなくなります。

物理ポートのインターフェースで shutdown コマンドと no shutdown コマ ンドを連続して実行することで、ポートをリセットすることができます。

ループ検知機能などでポートが Error Disabled 状態になった場合に使用 すると、閉塞したポートを復旧することができます。

使用例:

物理ポート1/0/1を無効にする方法を示します。

# configure terminal

(config)# interface port 1/0/1 (config-if-port)# shutdown

description

目的 インターフェースに説明を設定します。

シンタックス description STRING no description

パラメーター STRING:最大64文字でインターフェースの説明を指定します。

デフォルト なし

コマンドモード インターフェース設定モード(port, range, vlan, l2vlan) デフォルトレベル レベル:12

使用上のガイドライン 本設定は、IF-MIB で定義されている MIB オブジェクト「ifAlias」に対応 します。

使用例:

物理ポート1/0/10に説明「Physical Port 10」を設定する方法を示します。

# configure terminal

(config)# interface port 1/0/10

(config-if-port)# description Physical port 10 (config-if-port)#

default port-shutdown

目的 システムリセット時のポートシャットダウン機能を有効にします。無効に するには、no形式を使用します。

シンタックス default port-shutdown no default port-shutdown パラメーター なし

デフォルト 無効

コマンドモード グローバル設定モード デフォルトレベル レベル:15

使用上のガイドライン

本機能を有効にすると、システムのリセット(reset systemコマンド)を 実行した際の起動時の設定ですべての物理ポートに対して shutdown コマ ンドが追加されます。また、システムリセット後も本設定は残ります。

本設定は、clear running-configコマンドを実行しても削除されません。

使用例:

システムリセット時のポートシャットダウン機能を有効にする方法を示します。

# configure terminal

(config)# default port-shutdown (config)#

show interfaces

目的 インターフェースの情報を表示します。

シンタックス show interfaces [INTERFACE-ID [,|-]] [status | counters [errors] | utilization | gbic | description | auto-negitiation | transceiver [detail]]

パラメーター INTERFACE-ID:情報を表示するインターフェースを指定します。指定しな い場合は、すべてのインターフェースに関連する情報が表示されます。以 下のパラメーターのいずれかを使用できます。

• port:物理ポートの情報を表示します。

• vlan:VLANインターフェースに関連する情報を表示します。このパラ

メーターを使用した場合、オプションを指定しないか、descriptionオ プションを指定する必要があります。

• l2vlan:L2VLANインターフェースに関連する情報を表示します。この

パラメーターを使用した場合、descriptionオプションを指定する必要 があります。

status:物理ポートの状態を表示します。

counters [errors]:物理ポートの簡易統計情報を表示します。errors を 指定した場合はエラー統計情報を表示します。

utilization:物理ポートの使用率情報を表示します。

gbic:トランシーバーの情報を表示します。

description:インターフェースの説明を表示します。

auto-negotiation:オートネゴシエーションの情報を表示します。

transceiver [detail]:トランシーバーの状態を表示します。detailを指 定した場合は詳細情報を表示します。

デフォルト なし

コマンドモード 任意のコマンドモード デフォルトレベル レベル:1

使用上のガイドライン オプションを指定しない場合、すべての物理ポートの情報を表示します。

また、オプションで物理ポートのみ指定した場合、指定した物理ポートの 情報を表示します。

使用例:

インターフェースVLAN 1のVLANインターフェース情報を表示する方法を示します。

# show interfaces vlan1

vlan1 is enabled, link status is down Interface type: VLAN

Interface description: VLAN 1 for MIS MAC address: FC-6D-D1-06-CE-7D

#

物理ポート1/0/1の情報を表示する方法を示します。

# show interfaces port 1/0/1

Port1/0/1 is enabled, link status is up Interface type: 1000BASE-T

Interface description:

MAC Address: FC-6D-D1-06-CE-7E Auto-duplex, auto-speed, auto-mdix

Send flow-control: off, receive flow-control: off

Send flow-control oper: off, receive flow-control oper: off Full-duplex, 1Gb/s

Maximum transmit unit: 1536 bytes

RX rate: 293 bytes/sec, TX rate: 0 bytes/sec RX bytes: 916, TX bytes: 0

RX rate: 3 packets/sec, TX rate: 0 packets/sec RX packets: 10, TX packets: 0

RX multicast: 6, RX broadcast: 4 RX CRC error: 0, RX undersize: 0 RX oversize: 0, RX fragment: 0 RX jabber: 0, RX dropped Pkts: 3 RX MTU exceeded: 0

TX CRC error: 0, TX excessive deferral: 0

TX single collision: 0, TX excessive collision: 0 TX late collision: 0, TX collision: 0

#

物理ポート1/0/1と1/0/2の簡易統計情報を表示する方法を示します。

# show interfaces port 1/0/1-2 counters

Port InOctets / InMcastPkts / InUcastPkts InBcastPkts

--- --- --- Port1/0/1 110664 413 0 402 Port1/0/2 0 0 0 0 Port OutOctets / OutMcastPkts /

OutUcastPkts OutBcastPkts

--- --- --- Port1/0/1 0 0 0 0 Port1/0/2 0 0 0 0 Total Entries: 2

#

物理ポート1/0/1と1/0/2のエラー統計情報を表示する方法を示します。

# show interfaces port 1/0/1-2 counters errors

Port Align-Err Fcs-Err Rcv-Err Undersize Xmit-Err OutDiscard --- --- --- --- --- --- --- Port1/0/1 0 0 0 0 0 0 Port1/0/2 0 0 0 0 0 0 Port Single-Col Multi-Col Late-Col Excess-Col Carri-Sen Runts --- --- --- --- --- --- --- Port1/0/1 0 0 0 0 0 0 Port1/0/2 0 0 0 0 0 0 Port Giants Symbol-Err SQETest-Err DeferredTx IntMacTx IntMacRx --- --- --- --- --- --- --- Port1/0/1 0 0 0 0 0 0 Port1/0/2 0 0 0 0 0 0 Total Entries: 2

#

装置のポート接続状態を表示する方法を示します。

# show interfaces port 1/0/1-8 status

Port Status VLAN Duplex Speed Type

--- --- --- --- --- --- Port1/0/1 connected 1 a-full a-1000 1000BASE-T Port1/0/2 not-connected 1 auto auto 1000BASE-T Port1/0/3 not-connected 1 auto auto 1000BASE-T Port1/0/4 not-connected 1 auto auto 1000BASE-T Port1/0/5 not-connected 1 auto auto 1000BASE-T Port1/0/6 not-connected 1 auto auto 1000BASE-T Port1/0/7 not-connected 1 auto auto 1000BASE-T Port1/0/8 not-connected 1 auto auto 1000BASE-T Total Entries: 8

#

ポート1/0/1〜1/0/2の装置のポート使用率を表示する方法を示します。

# show interfaces port 1/0/1-2 utilization

Port TX packets/sec / TX bits/sec / Utilization RX packets/sec RX bits/sec

--- --- --- --- Port1/0/1 0 0 0 0 0

Port1/0/2 0 0 0 0 0

Total Entries: 2

#

物理ポート1/0/17のトランシーバーの情報を表示する方法を示します。

# show interfaces port 1/0/17 gbic Port1/0/17

Type: H-SX-SFP/R

Vendor PN: FTLF8519P2BNL Vendor SN: PCB32FP

#

インターフェースの説明とリンク状態を表示する方法を示します。

# show interfaces description

Interface Status Administrative Description

--- --- --- --- Port1/0/1 up enabled Connection to core.

Port1/0/2 down enabled Port1/0/3 down enabled Port1/0/4 down enabled Port1/0/5 down enabled Port1/0/6 down enabled Port1/0/7 down enabled Port1/0/8 down enabled Port1/0/9 down enabled Port1/0/10 down enabled Port1/0/11 down enabled Port1/0/12 down enabled Port1/0/13 down enabled Port1/0/14 down enabled Port1/0/15 down enabled Port1/0/16 down enabled Port1/0/17 down enabled Port1/0/18 down enabled Port1/0/19 down enabled Port1/0/20 down enabled Port1/0/21 down enabled

CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All

物理ポート1/0/1のオートネゴシエーション情報を表示する方法を示します。

# show interfaces port 1/0/1 auto-negotiation Port1/0/1

Auto Negotiation: Enabled Speed auto downgrade: Disabled Remote Signaling: Not detected Configure Status: Complete

Capability Bits: 10M_Half, 10M_Full, 100M_Half, 100M_Full, 1000M_Full

Capability Advertised Bits: 10M_Half, 10M_Full, 100M_Half, 100M_Full, 1000M_Full Capability Received Bits: 10M_Half, 10M_Full, 100M_Half, 100M_Full, 1000M_Full RemoteFaultAdvertised: Disabled

RemoteFaultReceived: NoError

#

トランシーバーの現在の情報を表示する方法を示します。

# show interfaces transceiver

++ : high alarm, + : high warning, - : low warning, -- : low alarm mA: milliamperes, mW: milliwatts

Voltage Bias Current TX Power RX Power port (V) (mA) (mW/dbm) (mW/dbm) --- --- --- --- --- Port1/0/25 3.279 7.851 0.643 0.317

-1.915 -4.995 Total Entries: 1

#

トランシーバーの詳細な情報を表示する方法を示します。

# show interfaces transceiver detail

++ : high alarm, + : high warning, - : low warning, -- : low alarm mA: milliamperes, mW: milliwatts

A: The threshold is administratively configured.

Port1/0/25

Transceiver Monitoring is disabled

Transceiver Monitoring shutdown action: None

Current High-Alarm High-Warning Low-Warning Low-Alarm Voltage(V) 3.279 3.700 3.600 3.000 2.900 Bias Current(mA) 7.856 13.200 12.600 5.000 4.000 TX Power(mW) 0.643 1.000 0.794 0.316 0.251 (dbm) -1.915 0.000 -1.000 -5.000 -6.000 RX Power(mW) 0.318 1.000 0.794 0.016 0.010 (dbm) -4.979 0.000 -1.000 -18.013 -20.000

#

show counters

目的 ポートの詳細統計情報を表示します。

シンタックス show counters [interface INTERFACE-ID [,|-] | cpu-port]

パラメーター interface INTERFACE-ID:特定の物理ポートの詳細統計情報を表示しま す。表示する物理ポートのポートインターフェースを指定します。

cpu-port:装置のCPUに転送されたフレームの統計情報を表示します。

デフォルト なし

コマンドモード ユーザー実行モード、特権実行モード

任意の設定モード デフォルトレベル レベル:1

使用上のガイドライン 本コマンドでは、物理ポートの詳細な統計情報を表示します。

オプションを指定しない場合、すべての物理ポートと CPU 転送フレームの 統計情報を表示します。

ドキュメント内 TD ApresiaLightGM200 シリーズ Ver CLI マニュアル (ページ 148-159)