What is ifconfig Command?

The ifconfig command manages network interfaces, helping configure and troubleshoot network settings.

DevOps

Install ifconfig on Ubuntu

Use sudo apt install net-tools to get ifconfig on your Ubuntu system.

DevOps

Check Network Interfaces

Run ifconfig to list all active network interfaces and their configurations.

DevOps

Configure IP Address

Use ifconfig eth0 192.168.1.1 to assign an IP address to a network interface.

DevOps

Bring Interfaces Up or Down

Use ifconfig eth0 up or ifconfig eth0 down to enable or disable a network interface.

DevOps