You are on page 1of 5

DEPARTMENT OF COMPUTER ENGINEERING COMPUTER & NETWORK SECURITY (3350704)

PRACTICAL # 6

AIM:- List and practice various “net” commands on DOS.

INTRODUCTION
 Networking commands are used at the command prompt to get network information like the IP
address of the system, MAC address, network route traversed by a packet and the IP address of the
server in which a website or URL is hosted.
 These utilities must be run at the prompt of the Cmd.exe command interpreter.
 To open Command Prompt, click Start, click Run, type cmd, and then click OK. TCP/IP utilities
offer network connections to other computers, such as UNIX workstations.

LIST OF NETWORK COMMANDS:


1. Ping- Ping is used to testing a network host capacity to interact with another host.
To run the basic command, at the prompt type: ping [host]

2. Ip Config- The command IP config will display basic details about the device’s IP address configuration.
To run the basic command, at the prompt type: ipconfig

3. Hostname- To communicate with each and other, the computer needs a unique address. A hostname
can be alphabetic or alphanumeric and contain specific symbols used specifically to define a specific
node or device in the network.
To run the basic command, at the prompt type: hostname

4. Netstat- Displays active TCP connections, ports on which the computer is listening, Ethernet statistics,
the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for
the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols).
To run the basic command, at the prompt type: netstat

5. Tracert/Traceroute- The tracert/traceroute command is a Command Prompt command which is used


to get the network packet being sent and received and the number of hops required for that packet
to reach to target.
To run the basic command, at the prompt type: tracert [host]

6. Nslookup- The Nslookup, which stands for name server lookup command, is a network utility
command used to obtain information about internet servers. It provides name server information
for the DNS (Domain Name System), i.e. the default DNS server’s name and IP Address.
To run the basic command, at the prompt type: nslookup

7. Nbtstat- Displays NetBIOS over TCP/IP (NetBT) protocol statistics


To run the basic command, at the prompt type: Nbtstat

GOVERNMENT POLYTECHNIC, HIMATNAGAR PAGE NO- 19


DEPARTMENT OF COMPUTER ENGINEERING COMPUTER & NETWORK SECURITY (3350704)

8. ARP- ARP stands for Address Resolution Protocol. Displays and modifies entries in the Address
Resolution Protocol (ARP) cache, which contains one or more tables that are used to store IP
addresses and their resolved Ethernet or Token Ring physical addresses.
To run the basic command, at the prompt type: arp /a

9. SystemInfo- Displays detailed configuration information about a computer and its operating
system, including operating system configuration, security information, product ID, and hardware
properties (such as RAM, disk space, and network cards).
To run the basic command, at the prompt type: systeminfo

10. PathPing- PathPing combines the ping command with the tracert command, providing information
about network latency and network loss at intermediate hops between a source and destination.
To run the basic command, at the prompt type: pathping [host]

GOVERNMENT POLYTECHNIC, HIMATNAGAR PAGE NO- 20


DEPARTMENT OF COMPUTER ENGINEERING COMPUTER & NETWORK SECURITY (3350704)
EXERCISE (Attach Screenshots):

1. Display hostname of your PC.

2. Display the IP Configurations.

3. Run Ping Command.

GOVERNMENT POLYTECHNIC, HIMATNAGAR PAGE NO- 21


DEPARTMENT OF COMPUTER ENGINEERING COMPUTER & NETWORK SECURITY (3350704)
4. Perform Nslookup.

5. Perform ARP & Netstat.

GOVERNMENT POLYTECHNIC, HIMATNAGAR PAGE NO- 22


DEPARTMENT OF COMPUTER ENGINEERING COMPUTER & NETWORK SECURITY (3350704)
6. Display Systeminfo of your PC.

CONCLUSION:-

Grade: Sign of Faculty:

GOVERNMENT POLYTECHNIC, HIMATNAGAR PAGE NO- 23

You might also like