Linux IP Commands for TCP/IP Services

The following are some of the more frequently used command lines relating to Linux IP Commands.

Description Linux Internet Protocol Command
Display Current Config for all NICs ifconfig
Display Current Config for eth0 ifconfig eth0
Assign IP ifconfig eth0
Ping ping -c 3
Assign multiple IPs ifconfig eth0:0
Assign second IP ifconfig eth0:1
Disable network card ifconfig eth0 down
Enable network card ifconfig eth0 up
View current routing table route "or" route -n
View arp cache arp "or" arp -n
Assign IP/Subnet ifconfig eth0 netmask
Assign Default Gateway route add default gw
Trace Route traceroute
Trace Path tracepath
DNS Test host
Advanced DNS Test dig
Reverse Lookup host
Advanced Reverse Lookup dig -x

You MUST be at the ROOT user to make or save any changes. Linux users, your distribution will determine the location of your network config file which will need to be updated and saved in order for the changes to remain in effect after rebooting. Moreover, network cards are referred to as eth0, eth1, eth2, etc based on their position on the PCI bus.

Linux was first released on September 17th, 1991 and has a rock solid following. According to, Linux runs on 1.84% of all desktops at the time of this writing. Considering there are roughly two billion desktops, servers, and laptops running in the world, we can estimate that Linux runs on about 37 million computers. Because Linux is very robust and highly customizable, it's no wonder Chrome-OS and many other lightweight devices use the Linux kernel as their base. If you've ever worked on servers, it's likely that you've come across some version of Linux and have had to use some of the Linux IP Commands listed above. Ifconfig has been around since 1983 and is one of the more common command line interface tools used to help administrators of devices view and assign IP address information to network interface cards within the devices.

*Special thanks to Gergely for the contribution!

Adobe Logo
Amazon Logo
Apple Logo
BBC Logo
Github Logo
GoDaddy Logo
Google Logo
Hulu Logo
LinkedIn Logo
Live Nation Logo
Microsoft Logo
Mozilla Logo
NBA Logo
Netflix Logo
Spotify Logo
Ticket Master Logo
Wikipedia Logo
Wordpress Logo