Computer Network [3150710] Vasu Gol[220760116021]
PRACTICAL 3
AIM : Study of different networking commands.
Network Commands
ipconfig :
Description: Displays the IP configuration details of the computer's network interfaces.
It provides information such as IP address, subnet mask, default gateway, and DNS
servers.
Usage: Open Command Prompt and type ipconfig. You can use additional parameters like
/all to display all configuration details, including physical addresses (MAC addresses).
ping:
Description: Tests the connectivity between your computer and another device or server
by sending ICMP Echo Request messages and measuring the time it takes to receive a
response. It helps to determine if a network device is reachable.
Usage: Open Command Prompt or Terminal and type ping [hostname or IP address]. For
example, ping google.com.
Page 1
Computer Network [3150710] Vasu Gol[220760116021]
hostname:
Description: Displays the name of the current computer or device on the network. This
name is used for network identification.
Usage: Open Command Prompt or Terminal and type hostname.
getmac :
Description: Displays the Media Access Control (MAC) addresses of the network
interfaces on your computer. MAC addresses are unique identifiers assigned to network
interfaces for communications on the physical network.
Usage: Open Command Prompt and type getmac.
nslookup:
Description: Queries the Domain Name System (DNS) to obtain domain name or IP
address mapping information. It helps in troubleshooting DNS issues by providing
detailed information about DNS records.
Usage: Open Command Prompt or Terminal and type nslookup [hostname] or nslookup
[IP address]. For example, nslookup google.com.
Page 2
Computer Network [3150710] Vasu Gol[220760116021]
pathping:
Description: Combines the functionality of ping and tracert (traceroute) to provide
information about network latency and packet loss along the path to a destination. It helps
in diagnosing network performance issues and locating points of congestion or failure.
Usage: Open Command Prompt and type pathping [hostname or IP address]. For
example, pathping google.com.
netstat
Description: The netstat (network statistics) command provides information about
network connections, routing tables, interface statistics, masquerade connections, and
multicast memberships. It is used for monitoring network activity and diagnosing
network issues.
Usage:Open Command Prompt and type netstat [options].
Page 3
Computer Network [3150710] Vasu Gol[220760116021]
tracert
Description: The tracert (Windows) or traceroute (Unix/Linux/Mac) command traces the
path that packets take from your computer to a destination host. It shows each hop along
the route and the time it takes for each hop.
Usage:Open Command Prompt and type tracert [hostname or IP address].
arp -a
Description: The arp (Address Resolution Protocol) command displays the ARP table,
which maps IP addresses to MAC (Media Access Control) addresses. The -a option
shows the current ARP table entries.
Usage:Open Command Prompt and type arp –a.
Page 4
Computer Network [3150710] Vasu Gol[220760116021]
Systeminfo
Description: The systeminfo command provides detailed configuration information
about your system, including the operating system version, build number, hardware
properties, and network adapter information.
Usage:Open Command Prompt and type systeminfo.
Page 5
Computer Network [3150710] Vasu Gol[220760116021]
net user
Description: The net user command manages user accounts on a Windows computer.
It can be used to view user account information, create new accounts, modify existing
accounts, and delete accounts.
Usage:Open Command Prompt and type net user [username] [password] /add to add a
new user or net user [username] to view user details.
Page 6