Networking Commands in Linux
ifconfig - Interface Configuration ifconfig command, which is one of the most commonly used tools for managing and configuring network interfaces in Linux. What is ifconfig ? ifconfig stands for interface configuration . It is used to: View and configure the network interfaces (like Ethernet, Wi-Fi, or loopback). Bring interfaces up or down. Assign IP addresses and subnet masks. Troubleshoot network issues. Syntax ifconfig [INTERFACE] [OPTIONS] INTERFACE : The network interface you want to configure or inspect, like eth0 , wlan0 , or lo . OPTIONS : Parameters that control how the interface behaves. How to Use ifconfig - Examples 1. Display All Network Interfaces ifconfig Shows all active network interfaces and their details, including: IP Address ( inet ) Subnet Mask ( netmask ) Broadcast Address ( broadcast ) MAC Address ( ether ) RX/TX Data Statistics 2.Display a Specific Interface ifconfig eth0 Thi...