An IP address is the number used to identify a computer on a network. Every computer that is connected to the internet or a local network has a unique IP address. The ifconfig command is used to configure network interfaces on Linux and Unix computers. Used alone, with no arguments, it provides information about the current interfaces, including the IP address of the computer. The options for the ifconfig command can be used to activate or deactivate a network interface, change the name of the interface, and change the IP address.
Video of the Day
Open a terminal window where you will type the commands.
Type the command "/sbin/ifconfig" to display the IP address of your computer. The output from this command will look like the following: eth1 Link encap:Ethernet HWaddr 00:24:2b:05:c5:1c
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::224:2bff:fe05:c51c/64 Scope:Link
The IP address can be found after "inet addr" in the second line. In this instance, the address is 192.168.0.102. Yours will be different.
Type the command "exit" to close the terminal window.