Checking the connectivity from local machine to server

Checking the connectivity from local machine to server

Below are the methods for checking the connectivity of any server from your local machine
    1) ping
    2) traceroute
    3) telnet
   
ping :- Below is the sytax for checking the ping of sever from your local machine    

ping servers-ip

Example :- if server-ip is 192.168.12.101 then from terminal you have check below command

ping 192.168.12.101
a) Output will be like below if server is accessible :-

PING 192.168.12.101 56(84) bytes of data.
64 bytes from 192.168.12.101: icmp_req=1 ttl=64 time=5.94 ms

--- 192.168.12.101 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 5.946/5.946/5.946/0.000 ms

b) Output will be like below if server is not accessible :-

$ping 192.168.12.101

Pinging 192.168.12.101 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.12.101:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

traceroute:- Below is the for checking the traceroute from your local machine

tracert servers-ip

Example :- if server-ip is 192.168.12.101 then from terminal you have check below command

$traceroute 192.168.12.101

a) Output will be like below if server is accessible :-

Tracing route to 192.168.12.101 over a maximum of 30 hops

  1     3 ms     3 ms     2 ms  smbhost [192.168.10.12]
  2     3 ms     3 ms     2 ms  smbhost [192.168.122.1]

b) Output will be like below if server is not accessible :-

Tracing route to 192.168.12.101 over a maximum of 30 hops

  1     3 ms     3 ms     2 ms  smbhost [192.168.122.1]
  2     *        *        *     Request timed out.
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.
  5     *        *        *     Request timed out.
  6     *        *        *     Request timed out.
  7     *        *        *     Request timed out.
  8     *        *        *     Request timed out.
  9     *        *        *     Request timed out.
 10     *        *        *     Request timed out.


telnet:-Below is the syntax for telnet command for checking the connectivity from your local machine

telnet server-ip port

Example :- if server-ip is 192.168.12.101 and port is 922 then from terminal you have check below command

$telnet 192.168.12.101 922   

a) Output will be like below if server is accessible :-

$telnet 192.168.12.101 922
Trying 192.168.12.101...
Connected to 192.168.12.101.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.3

b) Output will be like below if server is not accessible :-

$telnet 192.168.12.101 922
Connecting To 192.168.12.101...Could not open connection to the host, on port 922: Connect failed
$

No comments:

Post a Comment