Google Search

Tuesday, May 6, 2014

hostname,hostfile,telent commands

Basic Connectivity Commands

Check the hostname:

On Windows :  C:\hostname

On Linux :  $hostname

Check the IP Address:

On Windows:  C:\ipconfig

On Linux:  $ifconfig (Or) $/sbin/ifconfig

Hostfile:

On Windows:  C:\Windows\System32\drivers\etc and Open Hosts file

On Linux: Login to the root console and try to view the file by using vi editot
                   #vi /etc/hosts

Check connectivity:

ping : It will return TCP/IP address is pinging or not for communication

On Windows : ping hostname or ip address

                         example: ping 10.0.0.1
                                        ping example.com

On Linux : ping hostname or ip address

                   example: ping 10.0.0.1
                   ping example.com

telnet : It will returns the specifi port is opened or not for communication

Usage: telent hostname/IP Address port

No comments:

Post a Comment