A network interface can be configured and managed via command line interface or in a system configuration scripts by using “interface configuration” utility which is shortly known as ifconfig.  To assign an IP address to a specific interface, use the following command with an interface name (eth0) and IP address that you want to set. The following command is used to assign the IP address to the network interface.


ifconfig eth0

This command will set the IP address to the interface eth0.

Categorized in:

Tagged in: