Linux IP Commands for TCP/IP Services

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

Description Linux Internet Protocol Command
Display Current Config for all NIC's ifconfig
Display Current Config for eth0 ifconfig eth0
Assign IP ifconfig eth0 192.168.1.2
Ping ping -c 3 192.168.1.1
Assign multiple IP's ifconfig eth0:0 192.168.1.2
Assign second IP ifconfig eth0:1 192.168.1.3
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 192.168.1.2 netmask 255.255.255.0
Assign Default Gateway route add default gw 192.168.1.1
Trace Route traceroute www.whatismyip.com
Trace Path tracepath www.whatismyip.com
DNS Test host www.whatismyip.com
Advanced DNS Test dig www.whatismyip.com
Reverse Lookup host 66.11.119.69
Advanced Reverse Lookup dig -x 66.11.119.69

You MUST be at the ROOT user to make/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 statcounter.com, Linux runs on 1.84% of all desktops at the time of this writing. Considering there are roughly 2 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!

Related Articles

VMS IP Commands For TCP/IP Services - IP Commands for VMS including ifconfig, ping, netstat, traceroute, devices for TCP/IP Services throughout the Internet.

Unix IP Commands For TCP/IP Services - Common IP commands for UNIX including ifconfig, route. These following commands are the ones mainly used relating to TCP/IP services.

IP Commands for DOS/Windows - Windows and DOS IP commands including ipconfig, trace route, netstat, arp, route, hostname, control netconnections

WhatIsMyIP.com API – IP Address API

Different IP Address on WhatIsMyIP.com Than IPCONFIG?