You are on page 1of 3

LAB-8

Objective: Working with networking commands ifconfig, traceroute, ping, ip etc.

ifconfig:
ifconfig(Interface Configuration) command is used to configure the kernel-resident network
interfaces. It is used at the boot time to set up the interfaces as necessary. After that, it is
usually used when needed during debugging or when you need system tuning.

View All Network Interface Settings:

The “ifconfig” command with no arguments will display all the active interfaces details.
The ifconfig command is also used to check the assigned IP address of a server.
Traceroute command:
the Linux traceroute command to spot the slow leg of a network packet’s journey and
troubleshoot sluggish network connections.

Syntax:

traceroute [options] host_Address [pathlength]

ping command:
Ping is a command-line utility, available on virtually any operating system with network
connectivity, that acts as a test to see if a networked device is reachable.
The ping command sends a request over the network to a specific device. A successful ping
results in a response from the computer that was pinged back to the originating computer.

Syntax:
ping: IP address

Example: Ping 172.168.9.13

ip commands:
IP stands for "Internet Protocol," which is the set of rules governing the format of data sent
via the internet or local network. In essence, IP addresses are the identifier that allows
information to be sent between devices on a network: they contain location information and
make devices accessible for communication.

The network allows one computer to use the internet to talk to another computer by gathering
information and sending it directly to the other. Each computer connected to the network has its
own IP address, which allows your employees to send information directly to the person they
want.

There are three types of IP addresses used in a network:

 Host Address: This address is unique to that individual and allows them to communicate

one-to-one and with the network.


 Network Address: This is the first IP address in the network. This address gives the hosts,

who provide special network-related services, the ability to communicate with others.

 Broadcast Address: This type of address allows the host to broadcast an announcement

across the entire network.

Syntax:

ip [ OPTIONS ] OBJECT { COMMAND | help }

You might also like