Top 10 Linux Commands for Network Configuration & Troubleshooting

07 Oct 2017
Top 10 Linux Configuration and troubleshooting commands

Top 10 Linux Configuration and troubleshooting commands

Linux or GNU/Linux is a Unix-like operating system for computers. An operating system is a collection of the basic instructions that manage the electronic parts of the computer allowing running application programs. Linux is free software. Free software means that everyone has the freedom to use it, see how it works, change it or share it. There is a lot of software for Linux and—like Linux itself—a lot of the software for Linux is free software. This is one reason why many people like to use Linux.

In today’s day to day lifestyle as these operating systems are very common, the use of networking is also increasing. when a network media connects two or more computers it is called computer network. Its the job of the system or network administrator to look after the running and control of the network. in this article, we will be featuring 10 rapidly used configuration and troubleshooting Linux commands.

1. GUI tool system-config-network

Enter the command system-config-network in command prompt to configure network setting and you will get nice Graphical User Interface (GUI) which may also use to configure IP Address, Gateway, DNS etc.

2. HOST Command

Host command is used to find a name to IP or IP to name in IPv4 or IPv6 and also query DNS records.
Using Host-t option we can find out DNS Resource Records like CNAME, NS, MX, SOA etc.

3. ARP Command

ARP (Address Resolution Protocol) is used to view/add the contents of the kernel’s ARP tables.

4. NETSTAT Command

Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.

5. NSLOOKUP Command

nslookup command also use to find out the DNS related query.

6. ETHTOOL Command

Ethtool is a replacement of mii-tool. It is to view, setting speed and duplex of your Network Interface Card (NIC). You can set duplex permanently in /etc/sysconfig/network-scripts/ifcfg-eth0 with ETHTOOL_OPTS variable.

7. IWCONFIG Command

iwconfig command in Linux is used to configure a wireless network interface. You can see and set the basic Wi-Fi details like SSID channel and encryption.

8. ifconfig

ifconfig (interface configurator) command is used to initialize an interface, assign IP Address to interface and enable or disable interface on demand. With this command, you can view IP Address and Hardware / MAC address assign to interface and also MTU (Maximum transmission unit) size.

ifconfig with interface (eth0) command only shows specific interface details like IP Address, MAC Address etc. with -an option will display all available interface details if it is disabled also.

9. PING Command

PING (Packet INternet Groper) command is the best way to test connectivity between two nodes. Whether it is Local Area Network (LAN) or Wide Area Network (WAN). Ping uses ICMP (Internet Control Message Protocol) to communicate to other devices. You can ping hostname of IP address using below command.

In Linux ping command keep executing until you interrupt. Ping with -c option exit after N number of request (success or error respond).

10. TRACEROUTE Command

traceroute is a network troubleshooting utility which shows a number of hops taken to reach destination also determine packets traveling path.

These commands will help you to configure and troubleshoot your network. comment if we have missed any useful command.

RELATED POST

Leave a reply