Introduction to IP Commands in Linux

All about the use-cases for IP commands

Sahitya Maruvada
25 Days of Linux

--

Introduction:

As a person with a Computer Networking background, IP utility is one of the most common tools I use on a day to day basis. This utility is crucial in troubleshooting routing issues. It also plays a significant role in understanding the packet traversal from source to destination, specifically answering the questions like which interface is chosen for packet traversal, which device is the source directly connected to, the IP addresses present on its interfaces, and so on. This article provides an overview of typical use-cases for IP utility and the options to be passed.

Basic Options:

ip utility is a part of the iproute2 package and comes pre-installed on all modern Linux distributions. ip utility can be considered as a replacement(also enhancement) for the ifconfig utility which is part of the net-tools package. With advancements in Linux kernel, the net-tools package is being deprecated and a more powerful alternative has evolved.

According to the man page, the syntax for ip utility is as below

ip [ OPTIONS ] OBJECT { COMMAND | help }

The object types that are supported by the IP utility are:

--

--

Sahitya Maruvada
25 Days of Linux

Tech and Travel Enthusiast!! Software Engineer by profession!! Writing on Medium is my way of giving back to the dev community 😃