![Forrest logo](/images/logo.png)
On this page you find all important commands for the CLI tool ifconfig. If the
command you are looking for is missing please ask our AI.
ifconfig
- ifconfig is a command line tool used in Unix-like operating systems, including Linux and macOS.
- It stands for "interface configuration" and is primarily used to configure network interfaces.
- By typing "ifconfig" in the terminal, it displays the current configuration of all active network interfaces on the system.
- The information provided includes the interface name, MAC address, IP address, subnet mask, broadcast address, and other network-related details.
- ifconfig allows users to configure network interfaces by setting or changing their IP address, netmask, broadcast address, and other settings.
- It can enable or disable network interfaces, as well as configure advanced features such as alias interfaces, multiple IP addresses on a single interface, and network interface bonding.
- Apart from displaying information for all interfaces, ifconfig can also be used to retrieve specific information for a particular interface by specifying its name.
- It is often used in troubleshooting network connectivity issues by verifying the IP configuration and network status of the system.
- In recent versions of Linux, ifconfig has been replaced by the more versatile ip command, although it still remains widely used and provided for compatibility reasons.
- Overall, ifconfig is a powerful and essential command line tool for managing network interfaces and examining network configurations in Unix-like operating systems.
List of commands for ifconfig:
-
ifconfig:tldr:1f132 ifconfig: View network settings of an Ethernet adapter.$ ifconfig eth0try on your machineexplain this command
-
ifconfig:tldr:461b4 ifconfig: Display details of all interfaces, including disabled interfaces.$ ifconfig -atry on your machineexplain this command
-
ifconfig:tldr:5e291 ifconfig: Assign IP address to eth0 interface.$ ifconfig eth0 ${ip_address}try on your machineexplain this command
-
ifconfig:tldr:c7272 ifconfig: Disable eth0 interface.$ ifconfig eth0 downtry on your machineexplain this command
-
ifconfig:tldr:f1b1e ifconfig: Enable eth0 interface.$ ifconfig eth0 uptry on your machineexplain this command