Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
62 views7 pages

Ex 1 - Network Commands

Uploaded by

spartansheik
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)
62 views7 pages

Ex 1 - Network Commands

Uploaded by

spartansheik
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/ 7

Ex.

No:1 Network Commands

Date:

Aim:
To Learn and use commands like tcpdump, netstat, ifconfig, nslookup and traceroute.
To Capture ping and traceroute PDUs using a network protocol analyzer and examine.

Commands:
1. windump:
Tcpdump for Linux and windump for windows

windump -D
Windump will list your adapter with a number.
windump –e
Displays OUI unknown information.

2. netstat:

Displays protocol statistics and current TCP/IP network connections.

netstat –a
Displays all connections and listening ports.

netstat –e
Displays Ethernet statistics.
netstat –n
Displays addresses and port numbers in numerical form.

netstat –p prot
Shows connections for the protocol specified by proto; proto may be tcp or
udp. If used with the -s option to display per-protocol statistics, proto may be tcp, udp,
or ip.

netstat –s

Displays per-protocol statistics. By default, statistics are shown for TCP, UDP
and IP; the -p option may be used to specify a subset of the default.
netstat –r
Displays the contents of the routing table.

3. ipconfig

In Windows, ipconfig is a console application designed to run from the


Windows command prompt. This utility allows you to get the IP address information
of a Windows computer. Using ipconfig from the command prompt, type ipconfig
to run the utility with default options. The output of the default command contains the
IP address, network mask, and gateway for all physical and virtual network adapter.
4. nslookup

The nslookup (which stands for name server lookup) command is a network
utility program used to obtain information about internet servers. It finds name server
information for domains by querying the Domain Name System. Most computer
operating systems include a built-in command line program with the same name.
5. traceroute
The tracert command is a Command Prompt command that's used to show
several details about the path that a packet takes from the computer or device you're
on to whatever destination you specify. You might also sometimes see the tracert
command referred to as the trace route command or traceroute command.

6. ping
The ping command is a Command Prompt command used to test the ability of
the source computer to reach a specified destination computer. The ping command is
usually used as a simple way to verify that a computer can communicate over
the network with another computer or network device.

The ping command operates by sending Internet Control Message Protocol


(ICMP) Echo Request messages to the destination computer and waiting for a
response. How many of those responses are returned, and how long it takes for them
to return, are the two major pieces of information that the ping command provides.
Capture ping and traceroute PDUs using a network protocol analyzer

You might also like