To manage network interfaces on Rocky Linux 9, follow these steps.
Use ip
Step 1 : To display detailed information about all network interfaces, use the following command:
Step 2 : You can use the shortened command:
Step 3 : To deactivate and reactivate a specific network interface (e.g., enp0s3), use the following commands:
Use ifconfig
Step 4 : To display detailed information about all network interfaces using ifconfig, enter the following command:
Step 5 : To deactivate and reactivate a specific network interface (e.g., enp0s3) using ifconfig, use the following commands:
Congratulations! You have successfully learned how to manage network interfaces on Rocky Linux 9.