CSE 257-Network Programming LAB: Lab # 1: - Basic Dos Commands
CSE 257-Network Programming LAB: Lab # 1: - 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.
By default, ping sends four ICMP Echo Request packets each of 32 bytes. The response packets
are called ICMP Echo Reply Packets.
“–t” switch will continue to send packets to the destination until user stops this by pressing Ctrl
+C
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
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
C:\>nslookup
5 . NETSTAT COMMAND
6. ARP
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.