Cisco ACI の iping コマンドで Ping を実行する
Cisco ACI でのトラブルシューティング時に、スイッチ上から通信確認試験を実施する為に、いわゆる「Ping」を実行したい時があります。 Cisco ACI の場合は iping
というツールを使って従来の Ping と同様に、疎通確認を実行することが出来ます。
EndPoint テーブルの確認 (iping 実行前)
show endpoint
を実行し、iping
を実行する前は EndPoint テーブル上にエントリーが存在しないことを確認します。
| leaf# show endpoint ip 192.168.1.1
Legend:
s - arp O - peer-attached a - local-aged S - static
V - vpc-attached p - peer-aged M - span L - local
B - bounce H - vtep
+-----------------------------------+---------------+-----------------+--------------+-------------+
VLAN/ Encap MAC Address MAC Info/ Interface
Domain VLAN IP Address IP Info
+-----------------------------------+---------------+-----------------+--------------+-------------+
|
iping を実行する
iping
を実行する場合、Ping したい対象ホストのアドレス以外に「どの VRF を試験するか?」を -V
オプションで指定する必要があります。 VRF は [テナント名]:[VRF 名]
で指定する必要があります。 例えば以下のホストに iping
を実行したいケースについて考えます。
項目 |
値 |
テナント |
TENANT-A |
VRF |
VRF-A |
アドレス |
192.168.1.1 |
この場合、実際のコマンドは iping -V TENANT-A:VRF-A 192.168.1.1
となり、実行例は以下の通りです。 デフォルトでは Ping を 5 回、実行すると停止します。
| leaf# iping -V TENANT-A:VRF-A 192.168.1.1
PING 192.168.1.1 (192.168.1.1) from 172.20.40.254: 56 data bytes
Request 0 timed out
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.94 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.581 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.848 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=1.141 ms
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 4 packets received, 20.00% packet loss
round-trip min/avg/max = 0.581/0.877/1.141 ms
|
EndPoint テーブルの確認 (iping 実行後)
iping
を実行したことにより、スイッチの EndPoint テーブル上にエントリーが作成されました。
| leaf# show endpoint ip 192.168.1.1
Legend:
s - arp O - peer-attached a - local-aged S - static
V - vpc-attached p - peer-aged M - span L - local
B - bounce H - vtep
+-----------------------------------+---------------+-----------------+--------------+-------------+
VLAN/ Encap MAC Address MAC Info/ Interface
Domain VLAN IP Address IP Info
+-----------------------------------+---------------+-----------------+--------------+-------------+
8 vlan-2053 0050.5f9f.d7f0 L po2
TENANT-A:VRF-A vlan-2053 192.168.1.1 L po2
|
ヘルプ
iping
のヘルプ表示は以下の通りです。
| leaf# iping --help
iping: invalid option -- '-'
usage: iping [-dDFLnqRrv] [-V vrf] [-c count] [-i wait] [-p pattern] [-s packetsize] [-t timeout] [-S source ip/interface] host
|