0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OCI#11 異なるサブネット-デフォルトGWへのPING疎通

Posted at

概要

自身が所属していない、異なるサブネットのデフォルトゲートウェイに対して
インスタンスからPING疎通が可能であるか気になったため検証。

ping01.png

OCIで使用するIPアドレス

詳細については下記を参照。
ネットワーキングの概要

  • CIDRの最初のIPアドレス(ネットワーク・アドレス)
  • CIDRの最後のIPアドレス(ブロードキャスト・アドレス)
  • CIDRの最初のホスト・アドレス(サブネットのデフォルト・ゲートウェイ・アドレス)

結果

インスタンスが所属していないサブネットのデフォルトゲートウェイに対してPING疎通はできない。
ping02.png

検証内容

VM01からSubnet Aのデフォルトゲートウェイへ疎通

疎通OK

[root@vm01 opc]# ping -c 5 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=0.197 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=0.181 ms
64 bytes from 10.0.0.1: icmp_seq=4 ttl=64 time=0.177 ms
64 bytes from 10.0.0.1: icmp_seq=5 ttl=64 time=0.158 ms

--- 10.0.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4126ms
rtt min/avg/max/mdev = 0.158/0.176/0.197/0.015 ms

VM01からVM02へ疎通

疎通OK

[root@vm01 opc]# ping -c 5 10.0.1.12
PING 10.0.1.12 (10.0.1.12) 56(84) bytes of data.
64 bytes from 10.0.1.12: icmp_seq=1 ttl=64 time=0.397 ms
64 bytes from 10.0.1.12: icmp_seq=2 ttl=64 time=77.0 ms
64 bytes from 10.0.1.12: icmp_seq=3 ttl=64 time=76.1 ms
64 bytes from 10.0.1.12: icmp_seq=4 ttl=64 time=74.9 ms
64 bytes from 10.0.1.12: icmp_seq=5 ttl=64 time=73.4 ms

--- 10.0.1.12 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4015ms
rtt min/avg/max/mdev = 0.397/60.353/77.018/30.002 ms

VM01からSubnet Bのデフォルトゲートウェイへ疎通

疎通NG

[root@vm01 opc]# ping -c 5 10.0.1.1
PING 10.0.1.1 (10.0.1.1) 56(84) bytes of data.

--- 10.0.1.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4126ms

VM02からSubnet Bのデフォルトゲートウェイへ疎通

疎通OK

[opc@vm02 ~]$ ping -c 5 10.0.1.1
PING 10.0.1.1 (10.0.1.1) 56(84) bytes of data.
64 bytes from 10.0.1.1: icmp_seq=1 ttl=64 time=0.140 ms
64 bytes from 10.0.1.1: icmp_seq=2 ttl=64 time=0.167 ms
64 bytes from 10.0.1.1: icmp_seq=3 ttl=64 time=0.185 ms
64 bytes from 10.0.1.1: icmp_seq=4 ttl=64 time=0.187 ms
64 bytes from 10.0.1.1: icmp_seq=5 ttl=64 time=0.217 ms

--- 10.0.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4098ms
rtt min/avg/max/mdev = 0.140/0.179/0.217/0.026 ms

VM02からVM01へ疎通

疎通OK

[opc@vm02 ~]$ ping -c 5 10.0.0.11
PING 10.0.0.11 (10.0.0.11) 56(84) bytes of data.
64 bytes from 10.0.0.11: icmp_seq=1 ttl=64 time=0.456 ms
64 bytes from 10.0.0.11: icmp_seq=2 ttl=64 time=0.415 ms
64 bytes from 10.0.0.11: icmp_seq=3 ttl=64 time=0.460 ms
64 bytes from 10.0.0.11: icmp_seq=4 ttl=64 time=0.472 ms
64 bytes from 10.0.0.11: icmp_seq=5 ttl=64 time=0.446 ms

--- 10.0.0.11 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4086ms
rtt min/avg/max/mdev = 0.415/0.449/0.472/0.033 ms

VM02からSubnet Aのデフォルトゲートウェイへ疎通

疎通NG

[opc@vm02 ~]$ ping -c 5 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.

--- 10.0.0.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4103ms
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?