24. How to Verify Port Reachability via Telnet in a Subnet - Ayushi-srivastav/OCI GitHub Wiki

Steps to verify Port reachability via Telnet in a Subnet

Step 1 : Install Telnet

Open two instances in PuTTY and run below command to know host's IP

hostname -i

and attempt to access their ports

telnet (2nd instance IP) 22

(port 22)

As shown in the screen below, Telnet is not found on the instance

image

so, we install Telnet

yum install telnet

Type y

image

Telnet has now been downloaded

image

Again we try to connect to another instance via telnet and we are still unable to connect.

image

Step 2 : Create Rule to connect

Therefore, First we copy the IP of Subnet (Public/Private)

image

we will check the ingress rules for the TCP protocol

image

image

and create a new ingress rule for the TCP protocol in the subnet where both instances are created

image

New rule is created

image

Now, we again try to connect

image

As we can see in below screen, now we can connect via telnet between two instances in same subnet

image