Command-Line Network Interface Configuration

You can configure a network interface from the command line using the basic Linux networking utilities. You configure your network client hosts either with commands to change your current settings or by editing a number of system files. Two commands, ifconfig and route, are used for network configuration. The netstat command displays information about the network connections.


ifconfig is used to configure your network interface. You can use it to do the following:

• Activate or deactivate your NIC or change your NIC’s mode

• Change your machine’s IP address, netmask, or broadcast address

• Create an IP alias to allow more than one IP address on your NIC

• Set a destination address for ...

Get Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.