To manage network interfaces on CentOS 7, follow these steps:
Use ip
Step 1 : Show detailed information about network interfaces.
ip addr show
Step 2 : Alternatively, you can use a shorter version of the command.
ip a
Step 3 : To bring down and up a specific interface (e.g., enp0s3), use:
sudo ip link set enp0s3 down
sudo ip link set enp0s3 up
Use ifconfig
Step 4 : Display information about network interfaces.
ifconfig
Step 5 : To bring down and up a specific interface (e.g., enp0s3), use:
sudo ifconfig enp0s3 down
sudo ifconfig enp0s3 up
Congratulations! You have successfully managed network interfaces on CentOS 7.
Recommended
Mar 29, 2024
Mar 30, 2024
Mar 30, 2024
Mar 30, 2024
Mar 31, 2024
Mar 30, 2024
Apr 01, 2024
Apr 01, 2024
Apr 01, 2024
Apr 01, 2024
Apr 03, 2024
Apr 03, 2024
Apr 03, 2024
Apr 04, 2024
Apr 04, 2024