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
so, we install Telnet
yum install telnet
Type y
Telnet has now been downloaded
Again we try to connect to another instance via telnet and we are still unable to connect.
Step 2 : Create Rule to connect
Therefore, First we copy the IP of Subnet (Public/Private)
we will check the ingress rules for the TCP protocol
and create a new ingress rule for the TCP protocol in the subnet where both instances are created
New rule is created
Now, we again try to connect
As we can see in below screen, now we can connect via telnet between two instances in same subnet