Logo

How to Manage Network interfaces on CentOS 7

Mar 31, 2024

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.