Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Mahavir Education Trust's

SHAH & ANCHOR KUTCHHI ENGINEERING COLLEGE


Chembur, Mumbai - 400 088

UG Program in Electronics & Computer Science

Experiment No. 6 managing networking in Linux environment.

Aim: Learning and executing Linux commands for managing


networking in Linux environment

Tool: Virtual box, Red Hat Linux.

Theory: Every computer is connected to some other computer through a network whether
internally or externally to exchange some information. This network can be small as some
computers connected in your home or office, or can be large or complicated as in large
universities or the entire Internet.

Maintaining a system's network is a task of a System/Network administrator. Their task includes


network configuration and troubleshooting.

Here is a list of Networking and Troubleshooting commands:

ifconfig Display and manipulate route and network interfaces.

ip It is a replacement of ifconfig command.

traceroute Network troubleshooting utility.

tracepath Similar to traceroute but doesn't require root privileges.

ping To check connectivity between two nodes.

netstat Display connection information.


Mahavir Education Trust's

SHAH & ANCHOR KUTCHHI ENGINEERING COLLEGE


Chembur, Mumbai - 400 088

UG Program in Electronics & Computer Science

ss It is a replacement of netstat.

dig Query DNS related information.

nslookup Find DNS related query.

route Shows and manipulate IP routing table.

host Performs DNS lookups.

arp View or add contents of the kernel's ARP table.

iwconfig Used to configure wireless network interface.

hostname To identify a network name.

curl or wget To download a file from internet.

mtr Combines ping and tracepath into a single command.

whois Will tell you about the website's whois.

ifplugstatus Tells whether a cable is plugged in or not.

Procedure: 1.#ifconfig --> Status of all interfaces


eth0 Link encap:Ethernet HWaddr 00:50:FC:2A:2C:48
inet addr:192.0.34.7 Bcast:192.0.34.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:240 (240.0 b)
Interrupt:11 Base address:0xf000
2. Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
Mahavir Education Trust's

SHAH & ANCHOR KUTCHHI ENGINEERING COLLEGE


Chembur, Mumbai - 400 088

UG Program in Electronics & Computer Science

UP LOOPBACK RUNNING MTU:16436 Metric:1


RX packets:1407 errors:0 dropped:0 overruns:0 frame:0

#nmtui [graphic method to assign ip]


#cd /etc/sysconfig/network-script [ editing Ethernet file ]
#ls
#vim ifcfg-enpos3 ( network file to set ip)
#nmcli con mod enp0s3 ipv4.addresses ‘192.168.1.4/24 192.168.1.1’

Screenshots(Results):
Mahavir Education Trust's

SHAH & ANCHOR KUTCHHI ENGINEERING COLLEGE


Chembur, Mumbai - 400 088

UG Program in Electronics & Computer Science


Mahavir Education Trust's

SHAH & ANCHOR KUTCHHI ENGINEERING COLLEGE


Chembur, Mumbai - 400 088

UG Program in Electronics & Computer Science

Conclusion: Linux commands for managing networking in Linux environment implementation


successfully in Linux.

You might also like