ifcfg, ifup, ifdown, ethtool, nm-tool /etc/init.d/networking restart ip link set down ip link set up The ifconfig command is a tool used to display and configure network interfaces. This command will display information about the network card, IP address, broadcast address, and network mask. It also shows how many packets were received and transmitted. There is also information about the loopback device (lo). ping The ping command allows the user to test whether or not a network connection is

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter12: Network Configuration
Section: Chapter Questions
Problem 3HOP
icon
Related questions
Question

 

Linux Command                  Function

ifconfig also: ifcfg, ifup, ifdown, ethtool, nm-tool

/etc/init.d/networking restart ip link set down ip link set up

The ifconfig command is a tool used to display
and configure network interfaces. This
command will display information about the
network card, IP address, broadcast address,
and network mask. It also shows how many
packets were received and transmitted. There
is also information about the loopback device
(lo).
ping The ping command allows the user to test
whether or not a network connection is active,
the speed of that connection, and how a
network behaves given specific data loads.
arp
also: arping
The arp command by itself is used to view the
information currently in the ARP table (Address
Resolution Protocol). This table maps the IP
address of machines on your network segment
with their MAC address.
hostname
also: domainname, dnsdomainname
The hostname command tells you what the
hostname of your machine is set to. The
hostname is determined from a number of
sources, such as the /etc/hosts file. On Ubuntu,
the /etc/hostname file is used to set your
machine's hostname
nslookup
also: host, dig
These commands query the DNS database to
determine information about network hosts. If
you supply the IP address, the command gives
the hostname. If you supply the hostname, the
command gives you the IP address. All three
commands use the /etc/resolv.conf file to
determine the DNS server(s)
traceroute also: tracepath This program prints the route along which an IP
packet travels from the local host to reach the
destination host. It also shows each hop along
the connection route from a local to remote
host and gives all the intermediate routers.
Other Linux networking commands: route, ip,
ipcalc, nmap, lokkit, iptables, ...
 

Use the information in the table above to answer the following questions. For each question, write
down the Linux command/file name which provided you with the answer.


1. What does Linux call the NIC connected to the Ethernet cable?
__________________________________________________________________________________
________________________________________________________________________________
2. How many hops are there to the Google web server?
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
3. What is the IP address of the NUST web server?
__________________________________________________________________________________
__________________________________________________________________________________
4. Determine your hostname.
__________________________________________________________________________________
5. Determine your IP and MAC addresses.
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
6. Determine your neighbour’s MAC address.
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
7.Write down the number of hops that it took to reach the www.coursera.org
Compare the results to those in no.2 and explain why the results are different.__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
8.Determine your DNS server IP addresses.
__________________________________________________________________________________
__________________________________________________________________________________
9.a) Open the following file: /etc/network/interfaces. Explain the information displayed.
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
b) In the same file, disable the use of DHCP and use static addresses. What is the information in your
new file?
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
c) Verify that the DHCP has been disabled.
________________________________________________________________________________

 

d) Create a second loopback interface lo:0. Give it an IP address of 172.21.21.21. The subnet mask is
255.255.0.0. Activate the loopback interface.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
A+ Guide To It Technical Support
A+ Guide To It Technical Support
Computer Science
ISBN:
9780357108291
Author:
ANDREWS, Jean.
Publisher:
Cengage,