ifconfig linux command || linux Networking command
Автор: kurra vinay kumar
Загружено: 18 февр. 2025 г.
Просмотров: 53 просмотра
In this video, we dive into the essentials of the ifconfig command in Linux! Whether you're a beginner or looking to refresh your knowledge, this tutorial covers the most common uses of ifconfig for managing and troubleshooting network interfaces.
View all network interfaces:
ifconfig
This command displays the network configuration of all active network interfaces on the system.
View a specific interface:
ifconfig eth0
This command displays the details for the eth0 interface, such as IP address, MAC address, netmask, and more.
Enable a network interface:
sudo ifconfig eth0 up
This brings the network interface eth0 up (activates it).
Disable a network interface:
sudo ifconfig eth0 down
This brings the network interface eth0 down (deactivates it).
Assign an IP address to an interface:
sudo ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up
This command assigns the IP address 192.168.1.100 with the subnet mask 255.255.255.0 to the interface eth0.
Set the MAC address of an interface:
sudo ifconfig eth0 hw ether 00:11:22:33:44:55
This command changes the MAC address of the eth0 interface to 00:11:22:33:44:55.
View the network interface statistics:
ifconfig -s
This command provides a summary of network interfaces, including packet counts and errors.
Assign a broadcast address:
sudo ifconfig eth0 broadcast 192.168.1.255

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: