運用コマンドレファレンス Vol.3


show ip dhcp relay binding

DHCP/BOOTPリレーエージェントのバインディング情報を表示します。

[入力形式]

show ip dhcp relay binding [{<ip address> | interface <interface type> <interface number>}]

[入力モード]

一般ユーザモードおよび装置管理者モード

[パラメータ]

{<ip address> | interface <interface type> <interface number>}
<ip address>

指定したIPアドレスのバインディング情報を表示します。

interface <interface type> <interface number>

指定したインタフェースのバインディング情報を表示します。

<interface type> <interface number>には,次に示すインタフェース種別グループに対応するインタフェース名およびインタフェース番号を指定できます。詳細は,「パラメータに指定できる値」の「■インタフェースの指定方法」を参照してください。

  • イーサネットインタフェース

  • イーサネットサブインタフェース

  • ポートチャネルインタフェース

  • ポートチャネルサブインタフェース

  • VLANインタフェース

本パラメータ省略時の動作

すべてのバインディング情報を表示します。

[実行例]

図7‒3 すべてのバインディング情報を表示
> show ip dhcp relay binding
Date 20XX/04/09 12:00:00 UTC
Total : 3 addresses
Interface        IP address         MAC address       Lease expiration
Eth1/1           172.16.0.1         0012.e240.0001    30s
Eth1/2           172.17.0.1         0012.e240.0002    1m30s
Eth1/3           172.18.0.1         0012.e240.0003    infinity
>
図7‒4 指定したIPアドレスのバインディング情報を表示
> show ip dhcp relay binding 172.17.0.1
Date 20XX/04/09 12:00:00 UTC
Total : 1 addresses
Interface        IP address         MAC address       Lease expiration
Eth1/2           172.17.0.1         0012.e240.0002    1m30s
>
図7‒5 指定したインタフェースのバインディング情報を表示
> show ip dhcp relay binding interface gigabitethernet 1/3
Date 20XX/04/09 12:00:00 UTC
Total : 1 addresses
Interface        IP address         MAC address       Lease expiration
Eth1/3           172.18.0.1         0012.e240.0003    infinity
>

[表示説明]

表7‒4 show ip dhcp relay bindingコマンドの表示内容

表示項目

意味

表示詳細情報

Total

エントリ数

Interface

インタフェース名

複数ある場合は昇順にソートして表示します(第一優先)。

IP address

DHCPクライアントのIPアドレス

複数ある場合は昇順にソートして表示します(第二優先)。

MAC address

DHCPクライアントのMACアドレス

Lease expiration

リース満了時間

リース満了までの残り時間を表示します。

  • infinity:無期限

  • <day>d:日(100日〜)

  • <day>d<hour>h:日,時(1日〜99日23時間59分59秒)

  • <hour>h<min>m:時,分(1時間〜23時間59分59秒)

  • <min>m<sec>s:分,秒(1分〜59分59秒)

  • <sec>s:秒(1秒〜59秒)

[通信への影響]

なし

[応答メッセージ]

表7‒5 show ip dhcp relay bindingコマンドの応答メッセージ一覧

メッセージ

内容

The command cannot be executed because the DHCP/BOOTP relay agent program is not running.

DHCP/BOOTPリレーエージェントプログラムが起動していないため,コマンドを実行できません。

The command cannot be executed in the standby system.

コマンドは待機系では実行できません。

The command cannot be executed. Try again.

コマンドを実行できません。再実行してください。

The command is not authorized by the RADIUS/TACACS+ server or the configuration.

このコマンドはRADIUSサーバ,TACACS+サーバ,またはコンフィグレーションで承認されていません。

The specified interface does not exist.

指定されたインタフェースは存在しません。

The specified interface type is incorrect.

指定した<interface type>が不正です。指定パラメータを確認して再実行してください。

The specified IP address does not exist.

指定されたIPアドレスは存在しません。

[注意事項]

  1. 直接収容したDHCP/BOOTPクライアントのバインディング情報だけを表示します。