HomeLinuxDisable a Community on Rocky Linux 9

Disable a Community on Rocky Linux 9


In Rocky Linux, the community interface permits the system to attach with the community and talk with no breach. A community interface works because the bridge between the bodily community {hardware} and the community protocol. Subsequently, the community interface performs an necessary position in any working system. The community interface additionally allows communication between Linux and different methods on the identical community.

Though you may disable the community interface for safety, useful resource administration, and troubleshooting, it may create some points within the system. Nevertheless, many Rocky Linux learners should study to disable a community interface. That’s why now we have written this tutorial to elucidate the entire data on disabling the community interface on Rocky Linux 9.

Disable a Community Interface on Rocky Linux 9

First, let’s examine the present standing of the community interface within the system by means of any of the next instructions:

 
Or

 

You may see from the earlier output that the “enp0s3” and “lo” community interfaces are enabled in our system. You may disable these interfaces by means of a number of CLI strategies. Allow us to talk about a few of these strategies to disable the community interfaces on Rocky Linux 9.

The Ifconfig Command

To disable a community interface by means of the ifconfig command, set up the “net-tools” package deal:

sudo dnf set up net-tools

 

Right here, we use the next ifconfig command to disable the “enp0s3” community:

sudo ifconfig enp0s3 down

 
Once you run the earlier command, it won’t show any output. So, use the next command to examine if the community interface is disabled:

 

You may see that the “enp0s3” interface shouldn’t be exhibiting right here which implies that it’s disabled.

The Ip Command

It’s the easiest technique to disable the community interface as a result of all that you must do is run the next command:

 
This command additionally doesn’t show any consequence after executing it. So, that you must confirm whether or not the community interface is disabled or not:

 

You would possibly discover from the given consequence that the “lo” interface is efficiently disabled.

The Ifdown Command

First, set up the ifdown package deal utilizing the next command:

sudo dnf set up NetworkManager-initscripts-updown

 

Now, you may simply disable the community interface by operating the straightforward command:

 

The Nmcli Command

To disable the community interface by means of the “nmcli” command, you simply run the next command:

 

The Nmtui Command

The “nmtui” is a command-line graphical device underneath Linux. With this command, you may configure the community settings and allow/disable these networks.

To disable the community by means of the nmtui command, open the graphical interface utilizing the next command:

 

You may see the earlier interface on operating the earlier command. Subsequent, use the “Enter” key to “Activate a connection”.


Choose the community interface to disable/deactivate and choose the “deactivate” possibility.

Conclusion

Disabling the community interface on Rocky Linux 9 is a reasonably easy course of, and we defined all of them. We don’t suggest disabling the community interface with out information as it may significantly influence your system. Furthermore, in case your system depends on connectivity and also you attempt to disable the community interface, your system could lose the community connection instantly. Therefore, carry out the community interface disable course of fastidiously.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments