0% found this document useful (0 votes)
97 views

CSE 257-Network Programming LAB: Lab # 1: - Basic Dos Commands

This lab covers basic DOS commands including Ping, IPConfig, Tracert, NSLookup, Netstat, ARP, NbtStat, Route, and Getmac. Students will use these commands to check network connectivity, view IP and network configuration, determine the route to a destination, lookup DNS servers, view network connections, map IP to MAC addresses, view NetBIOS names, modify routing tables, and display MAC addresses of network adapters. The lab instructs students to open a command prompt and type specific commands like ping, ipconfig, and tracert along with any needed arguments to practice using and understand the purpose of each network tool.

Uploaded by

Basim Althaf
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

CSE 257-Network Programming LAB: Lab # 1: - Basic Dos Commands

This lab covers basic DOS commands including Ping, IPConfig, Tracert, NSLookup, Netstat, ARP, NbtStat, Route, and Getmac. Students will use these commands to check network connectivity, view IP and network configuration, determine the route to a destination, lookup DNS servers, view network connections, map IP to MAC addresses, view NetBIOS names, modify routing tables, and display MAC addresses of network adapters. The lab instructs students to open a command prompt and type specific commands like ping, ipconfig, and tracert along with any needed arguments to practice using and understand the purpose of each network tool.

Uploaded by

Basim Althaf
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

CSE 257-Network Programming LAB

LAB # 1: - BASIC DOS COMMANDS


In this lab, student will learn some basic DoS commands.

1.PING COMMAND

Ping is used to check the connectivity with other devices on the network, for example
computers, routers, switches etc. Select Start > Programs > Accessories > Command Prompt.
This will give you a window like the one below.

Type C:\>ping x.x.x.x

By default, ping sends four ICMP Echo Request packets each of 32 bytes. The response packets
are called ICMP Echo Reply Packets.

Figure : The Ping Command

Now Type C:\>ping x.x.x.x -t

“–t” switch will continue to send packets to the destination until user stops this by pressing Ctrl
+C

* Put the IP address that teacher tells you in place of x.x.x.x


2. IPCONFIG COMMAND

Displays full TCP/IP configuration of all network adapters (Ethernet cards) installed in your
system. Type the following command in the command prompt.
C:\ipconfig

Figure 2: The IPCONFIG Command

Now type C:\ipconfig /all

Ip config has a number of switches the most common are:


ipconfig /all – displays more information about the network setup on your systems including
the MAC address.
ipconfig /release – release the current IP address
ipconfig /renew – renew IP address
ipconfig /? -shows help
ipconfig/flushdns – flush the dns cache
3 TRACERT COMMAND

Tracert command tells you the path a packet takes from your computer to the destination. It
will list all the routers from which a packet passes until it reaches its destination.
C:\tracert google.com
4. NSLOOKUP COMMAND

Displays the default DNS server information.

Type the following command

C:\>nslookup

What is your default DNS server’s IP address?

5 . NETSTAT COMMAND

Displays active TCP and UDP connections.


Practice the following commands
C:\>netstat
C:\>netstat -a
C:\>netstat -an

6. ARP

ARP command corresponds to the Address Resolution Protocol, it is easy to understand of


network communications in terms of IP addressing, packet delivery is ultimately dependent on
the Media Access Control (MAC) address of the device’s network adapter.

This is where the Address Resolution Protocol comes into play. Its job is to map IP addresses to
MAC addresses.Windows devices maintain an ARP cache, which contains the results of recent
ARP queries. It shows the contents of this cache by using the ARP -A command. If any problems
in communicating with one specific host, you can append the remote host’s IP address to the
ARP -A command.
7.NbtStat-n

The NbtStat -n command for example, shows the NetBIOS names that are in use by a device. The
NbtStat -r command shows how many NetBIOS names the device has been able to resolve recently.

8.Route

IP networks use routing tables to direct packets from one subnet to another. The Windows
Route utility allows you to view the device’s routing tables. The Route command is that it not
only shows you the routing table, it lets you make changes. Commands such as Route Add,
Route Delete, and Route Change allow you to make routing table modifications on an as
needed basis.

9.Getmac

Getmac is a Windows command used to display the Media Access Control (MAC) addresses for
each network adapter in the computer.

You might also like