We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
swizsi2017 10 Useful Linux Networking Commands
Geek Flare
ial
10 Useful Linux Networking Commands
By Chandan Kumar | ast Updated: October 8, 2017
ee ee
Linux is most powerful operating system, and networking is an essential part of servers. it offers
many inbuilt commands to diagnose (https://geekflare.com/check-dns-health-troubleshoot/) for
network issues. In this article, I will show you useful Linux networking commands, which will help
you in troubleshooting.
1. Ifconfig
ifconfig utility is used to configure network interface parameters. Mostly we use this command
to check the IP address assigned to the system.
hitosigeektiare.convlinux-networking-commands! a0‘wesigot7 10 Useful Linux Networking Commands
[root@localhost ~]# ifconfig -a
en016777736: flags=4163 mtu 1500
ether @0:0¢:29:
:61 txqueuelen 1000 (Ethernet)
RX packets @ bytes @ (0.0 B:
RX errors @ dropped @ overruns @ frame @
TX packets @ bytes @ (0.0 B:
TX errors @ dropped @ overruns @ carrier @ collisions @
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid @x1@
loop txqueuelen @ (Local Loopback)
RX packets 2 bytes 140 (140.0 B)
RX errors @ dropped @ overruns @ frame @
TX packets 2 bytes 148 (140.0 B)
TX errors @ dropped @ overruns @ carrier @ collisions @
[root@localhost ~]#
2. traceroute
hips igeektiare.convlinux-networking-commands! 20‘wa52017 10.Usefu Lrux Networking Commands
traceroute print the route packets take to network host. Destination host or IP is mandatory
parameter to use this utility
[root@localhost ~]# traceroute geekflare.com
traceroute to geekflare.com (162.159.243.243), 30 hops max, 60 byte packe
1 172.16.179.2 (172.16.179.2) @.154 ms @.074 ms 0.074 ms
zee
geet
3. dig
dig (Domain Information Groper) is a flexible tool for interrogating DNS name servers. It
performs DNS lookups and displays the answers that are returned from the name servers.
hips igeektiare.convlinux-networking-commands! 30‘wesigot7 10 Useful Linux Networking Commands
[root@localhost ~]# dig geekflare.com
3 > DiG 9.9.4-RedHat-9.9.4-14.e17 > geekflare.com
33 global options: +cmd
35 Got answer:
55 ->>HEADER