0% found this document useful (0 votes)
208 views8 pages

1) - Basic Networks Commands: Aim - To Learn and Implement The Basic Networking Commands

This document provides an overview of 10 basic networking commands: ping, netstat, hostname, traceroute, finger, ifconfig, dig, telnet, ftp, and nslookup. It describes what each command is used for and provides examples of basic syntax. Key commands include ping to check if a host is reachable on the network, ifconfig to view network interface configurations, and nslookup to lookup IP addresses or hostnames.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
208 views8 pages

1) - Basic Networks Commands: Aim - To Learn and Implement The Basic Networking Commands

This document provides an overview of 10 basic networking commands: ping, netstat, hostname, traceroute, finger, ifconfig, dig, telnet, ftp, and nslookup. It describes what each command is used for and provides examples of basic syntax. Key commands include ping to check if a host is reachable on the network, ifconfig to view network interface configurations, and nslookup to lookup IP addresses or hostnames.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

1).

Basic Networks Commands

Aim To learn and implement the basic networking commands

1) ping

The ping command (named after the sound of an active sonar system) sends
echo requests to the host specified on the command line, and lists the
responses received.

Syntax: ping ipAddress or hostname


e.g - ping www.vit.ac.in

ping - sends an ICMP ECHO_REQUEST packet to the specified host. If the


host responds, an ICMP packet is received.

One can ping an IP address to see if a machine is alive. It provides a very


quick way to see if a machine is up and connected to the network.
2) netstat

It works with the LINUX Network Subsystem, it will tell us what the status of ports are ie.
open, closed, waiting connections. It is used to display the TCP/IP network protocol
statistics and information.

e.g netstat

netstat -a
3) hostname

Tells the user the host name of the computer they are logged into.

e.g hostname

4) traceroute (In Windows use tracert )


traceroute will show the route of a packet. It attempts to list the series of hosts through
which our packets travel on their way to a given destination.

Command syntax: traceroute machineName or ip

e.g traceroute www.vit.ac.in

Each host will be displayed, along with the response times at each host.

5) finger

Retrieves information about the specified user.

e.g finger 13bce0177


6) ifconfig ( In Windows use ipconfig )

This command is used to configure network interfaces, or to display their current


configuration.

e.g /sbin/ifconfig
/sbin/ifconfig -a
7) dig

The "domain information groper" tool. If a hostname is given as an argument, it outputs


information about that host, including it's IP address, hostname and various other
information.

e.g dig vitlinux

8) telnet

telnet allows you to log in to a computer, just as if you were sitting at the terminal. Once
your
username and password are verified, you are given a shell prompt. From here, you can do
anything
requiring a text console.
e.g telnet 10.10.151.12
9) ftp

To connect to an FTP server.

Syntax: ftp ipaddress


e.g ftp 192.168.0.15
10) nslookup
nslookup returns the Ip address of the given hostname and vice versa.
e.g nslookup www.vit.ac.in
nslookpup www.google.com

You might also like