Logo

How to Manage Network Interfaces on Rocky Linux 9

Dec 20, 2023

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:

ip addr show

Step 2 : You can use the shortened command:

ip a

Step 3 : To deactivate and reactivate a specific network interface (e.g., enp0s3), use the following commands:

sudo ip link set enp0s3 down
sudo ip link set enp0s3 up

Use ifconfig

Step 4 : To display detailed information about all network interfaces using ifconfig, enter the following command:

ifconfig

Step 5 : To deactivate and reactivate a specific network interface (e.g., enp0s3) using ifconfig, use the following commands:

sudo ifconfig enp0s3 down
sudo ifconfig enp0s3 up

Congratulations! You have successfully learned how to manage network interfaces on Rocky Linux 9.

Recommended