Linux Commands Helper
💬 Your AI-powered Linux assistant
ifconfig Command - Network Interface Configuration
The ifconfig command is used to configure, control, and query TCP/IP network interface parameters from a command line. It is commonly used to view and change the configuration of network interfaces on Unix-like systems.
Syntax
ifconfig [interface] [options]
Examples
ifconfig
Display information about all active network interfaces.
ifconfig eth0
Show configuration for the eth0 interface.
ifconfig eth0 up
Enable the eth0 network interface.
ifconfig eth0 down
Disable the eth0 network interface.
Notes
- On modern Linux systems,
ifconfigis deprecated and replaced byipcommand. - Some systems may require installing the
net-toolspackage to useifconfig. - Root privileges may be required for some operations.
