IFCONFIG

The ifconfig utility is used by the network scripts to start, stop, and configure your interface device, and that's where its name comes from: configure network interface, ifconfig (if is short for interface).

This utility can be used to configure or reconfigure any interface device you have. Normally, this will be either an Ethernet card (eth0, eth1) or a Token Ring card (tr0, tr1). If called with no parameters, ifconfig will show you currently running interfaces. If called with the -a option, all devices that have been configured since the last reboot even if they have been turned off (status down) will be shown. As an example, Listing 22.1 shows a configured Ethernet card.

Code Listing 22.1. An ifconfig Listing of an Ethernet Card ...

Get Special Edition Using Linux®, Sixth 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.