SystemCrash86 Posted March 22, 2020 Share Posted March 22, 2020 Can someone please tell me how to disable my eth0 interface on boot. I am using the latest version of Kali Linux 2020-02-17. I can sudo ifconfig eth0 down and this works no problem. Except i dont want to do this every time and would just like it to be disabled at boot until i need it. Normally i would add it to the /etc/rc.local file but that does not exist any more. Quote Link to comment Share on other sites More sharing options...
Jtyle6 Posted March 23, 2020 Share Posted March 23, 2020 I was a about to let me google Sites https://unix.stackexchange.com/questions/285526/how-to-disable-interface-just-for-networkmanager-in-kali-linux Quote Link to comment Share on other sites More sharing options...
SystemCrash86 Posted April 6, 2020 Author Share Posted April 6, 2020 Quote Normally i would add it to the /etc/rc.local file but that does not exist any more. That link sends me to a site that says rc.local is the answer and normally that would be correct. I googled and searched for days before making this post and rc.local is the very first thing that pops up - However in kali linux this file no longer exists. Quote Link to comment Share on other sites More sharing options...
NoExecute Posted April 6, 2020 Share Posted April 6, 2020 In /etc/NetworkManager/NetworkManager.conf [main] plugins=keyfile [keyfile] unmanaged-devices=mac:YOUR:MAC:HERE #To do it by name of the interface [keyfile] umanaged-devices=interface-name:ethx If your machine is using new names for interfaces (eg NOT ethx), you can get it back like so : Edit /etc/default/grub GRUB_CMDLINE_LINUX="" Change to GRUB_CMDLINE_LINUX"net.ifnames=0 biosdevname=0 " Run "update-grub" and reboot, your interface names should be wlanx, ethx format. Remember Kali is based on Debian, so a lot of the tutorials for Debian, works on Kali. A couple of good books to read through. https://www.kali.org/download-kali-linux-revealed-book/ https://debian-handbook.info/get/now/ For more advanced work, as in customizing Kali, I would recommend reading through the Debian Dev docs 🙂 Have fun 🙂 /Kent Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.