19. Allowing ICMP in Security list within same subnet(Self ‐Rule) - Ayushi-srivastav/OCI GitHub Wiki

Open 1st instance in a putty and run below command to know host's IP

hostname -i

image

Next open 2nd instance in a putty and run below command to know host's IP

hostname -i

image

Now, Try to ping one instance to another instance in same subnet

ping (host IP)

As we can see in below screen ,we are not able to connect/ping to one instance to another.

image

Go to console, click on burger menu and select VCN in Networking section

image

Scroll down and open the subnet (In which both instance are created)

image

Again scroll down and click on security list under Resources and open Default security list

image

Note : There are two rules in default security list. Ingress Rules & Egress Rules Ingress Rule is for incoming traffic and Egress is for outgoing traffic.

As we can see in the screen below, in the Ingress Rules, there are two rules added that do not allow incoming traffic from a particular IP series (the mentioned IP series is our VCN's IP). Because of this, we are unable to connect between the two instances.

So, we have to add a new rule here.

image

Open your Public/private subnet and copy IPv4 CIDR

image

Again open security list and click on add Ingress rule under Ingress rule

image

Paste the Subnet's copied IP,select protocol ICMP and create the rule

image

New rule is created.as this rule allowed to connect 2 instance in the same subnet.

image

As we can see here, we are now able to connect/ping between 2 instances in same subnet

image