Related to linux disable interface permanently

Disable the Network Interface on Boot in CentOS 8 - Step by step guide ?

This article covers the process of disabling the network interface, the use of the network interface, and the working of the network interface. In fact, in some situations, you might need any one of them to be disabled temporarily so that the other one can work properly. 

How do I delete an ifconfig interface ?

To delete an alias interface use:

$ ifconfig eth0:0 down 

Note: for every scope (i.e. same net with address/netmask combination) all aliases are deleted, if you delete the first (primary). 

'ifconfig eth0:0 up' flag causes the interface to be activated.

How do I restart NetworkManager in AlmaLinux ?

1. You can run the following command to restart the server networking service:

# nmcli networking off 
# nmcli networking on 


# systemctl restart NetworkManager

2. Once this is done, use the following command to check the server network status:

# nmcli -o 


# systemctl status NetworkManager