Faculty of Information Technology
Computer Networks and Communication Department
CN311 - Network Lab 1
Networking Command Line Tools
Hostname
Hostname
Hostname is a simple command that you can
use to display or print the name of the computer
where the command is executed. This command
does not take any parameters and its syntax is
very simple:
2
IPCONFIG
The ipconfig command displays the current
settings used by the network adapter. When
invoked with the /all flag, this command will
show more verbose information about the
network settings. Information available includes
IP addresses, host names, packet counts, subnet
masks, gateways, and domain name.
ipconfig /all
ipconfig /release
ipconfig /renew
3
ping
ping
The command name stands for “packet Internet
groper,” and is used to test reachability of hosts by
sending an ICMP echo request and waiting for a reply.
Using the ping command is an effective way to test
connectivity.
An echo request is a signal sent out to another
computer
An echo reply is the other computer’s response signal
Process of sending this signal back and forth is known
as pinging
4
Ping example
5
Tracert
Tracert/Traceroute
Uses ICMP to trace path from one networked node to
another
Also known as tracert on Windows machines
6
NSLookup
NSLookup
Allows you to look up the DNS host name of a network
node by specifying its IP address, or vice versa
Output of a simple ns lookup command
7
Netstat
Netstat
Netstat utility display TCP/IP statistics and details about
.TCP/IP components and connections on a host
8
Route
Route
• Used to display and manage the routing table
• ARP (Address Resolution Protocol).