Experiment -2
Study of basic network commands and Network
configuration commands
Aim:
Study of basic network command and Network configuration commands.
Apparatus (Software):
Command Prompt
Principle:
Maintaining a system's network is a task of System/Network administrator. Their task includes
network configuration and troubleshooting.
Procedure:
Here is a list of Networking and Troubleshooting commands:
1. Ifconfig
The command ifconfig stands for interface configurator. It display route and network
interface. The IP address, MAC address and MTU (Maximum Transmission Unit) can be
viewed with ifconfig command.
Syntax:
ifconfig [...OPTIONS] [INTERFACE]
2. nslookup
nslookup (stands for “Name Server Lookup”) is a useful command for getting
information from the DNS server. It is a network administration tool for querying the
Domain Name System (DNS) to obtain domain name or IP address mapping or any other
specific DNS record. It is also used to troubleshoot DNS-related problems.
Syntax:
nslookup [option]
Eg: nslookup google.com :
nslookup followed by the domain name will display the “A Record” (IP Address) of the
domain. Use this command to find the address record for a domain. It queries to domain
name servers and gets the details.
3. hostname
A hostname is the name of any computer that is connected to a network that is uniquely
identified over a network.
Syntax:
hostname
4. ping
PING (Packet Internet Groper) command is used to check the network
connectivity between host and server/host. This command takes as input
the IP address or the URL and sends a data packet to the specified
address with the message “PING” and get a response from the server/host
this time is recorded which is called latency.
Syntax:
ping <option> <destination>
5. whois
The whois command displays information about a website's record. You may get all the
information about a website regarding its registration and owner's information.
Syntax:
whois <websiteName>
Result:
The basic networking commands in linux is studied.