Accidentally deleted my wifi device wlan0












4















I was trying to fix my wifi on Kali Linux the other day and was following some tutorial. That didn't work, so I read somewhere that if I run this command



iw dev wlan0 del


After that command I can't seem to find my wlan device. When I type iwconfig it shows this:



lo        no wireless extensions.

eth0 no wireless extensions.


Anyone know what should I do now?










share|improve this question





























    4















    I was trying to fix my wifi on Kali Linux the other day and was following some tutorial. That didn't work, so I read somewhere that if I run this command



    iw dev wlan0 del


    After that command I can't seem to find my wlan device. When I type iwconfig it shows this:



    lo        no wireless extensions.

    eth0 no wireless extensions.


    Anyone know what should I do now?










    share|improve this question



























      4












      4








      4








      I was trying to fix my wifi on Kali Linux the other day and was following some tutorial. That didn't work, so I read somewhere that if I run this command



      iw dev wlan0 del


      After that command I can't seem to find my wlan device. When I type iwconfig it shows this:



      lo        no wireless extensions.

      eth0 no wireless extensions.


      Anyone know what should I do now?










      share|improve this question
















      I was trying to fix my wifi on Kali Linux the other day and was following some tutorial. That didn't work, so I read somewhere that if I run this command



      iw dev wlan0 del


      After that command I can't seem to find my wlan device. When I type iwconfig it shows this:



      lo        no wireless extensions.

      eth0 no wireless extensions.


      Anyone know what should I do now?







      linux wifi kali-linux wlan






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 14 '17 at 13:53









      Jeff Schaller

      39.3k1054125




      39.3k1054125










      asked Aug 22 '15 at 7:56









      Ive ZenzerovicIve Zenzerovic

      2315




      2315






















          3 Answers
          3






          active

          oldest

          votes


















          2














          Easiest way is to just reboot. The type of configuration change you've made does not persist across reboots.






          share|improve this answer



















          • 1





            do sudo service network-manager restart. It will reinitalise all the network interfaces...

            – Madhavan
            Aug 22 '15 at 12:37











          • that might work, if you have network-manager installed, and if network-manager knows how to recreate the necessary device. That's not a given.

            – Wouter Verhelst
            Aug 23 '15 at 21:42



















          5














          To undo deletion of wlan0, you can recreate it like so:



          iw phy phy0 interface add wlan0 type managed


          This is much faster than rebooting and more reliable than restarting network-manager.






          share|improve this answer































            0














            Once you delete your wlanX interface, and recreate it as suggested. It works, its recreated, however.. Try to join a network..



            I get
            nl80211: deinit ifname=wlanX disabled_11b_rates=0
            failed to initialize.



            It is UP, it works fine for airodump (promisc) but, I have to reboot (like orig suggested) to get back on a SSID.



            Anyone have any suggestions as to how to do this w/o reboot?






            share|improve this answer


























            • An Answer is not a good place to ask a Question. You could leave a comment on another Answer or the original Question; or if you feel like you have a new question, then create a Question to ask it.

              – cryptarch
              Jan 10 at 0:01











            • @cryptarch They can't leave a comment due to insufficient rep, blame the semi-arbitrary stackexchange restrictions...

              – undercat
              Jan 10 at 1:45











            • @undercat Noted; although, getting up enough rep to leave comments will happen more quickly if they leave answers that are likely to get upvoted rather than downvoted ;)

              – cryptarch
              Jan 10 at 1:46











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f224767%2faccidentally-deleted-my-wifi-device-wlan0%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Easiest way is to just reboot. The type of configuration change you've made does not persist across reboots.






            share|improve this answer



















            • 1





              do sudo service network-manager restart. It will reinitalise all the network interfaces...

              – Madhavan
              Aug 22 '15 at 12:37











            • that might work, if you have network-manager installed, and if network-manager knows how to recreate the necessary device. That's not a given.

              – Wouter Verhelst
              Aug 23 '15 at 21:42
















            2














            Easiest way is to just reboot. The type of configuration change you've made does not persist across reboots.






            share|improve this answer



















            • 1





              do sudo service network-manager restart. It will reinitalise all the network interfaces...

              – Madhavan
              Aug 22 '15 at 12:37











            • that might work, if you have network-manager installed, and if network-manager knows how to recreate the necessary device. That's not a given.

              – Wouter Verhelst
              Aug 23 '15 at 21:42














            2












            2








            2







            Easiest way is to just reboot. The type of configuration change you've made does not persist across reboots.






            share|improve this answer













            Easiest way is to just reboot. The type of configuration change you've made does not persist across reboots.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 22 '15 at 7:58









            Wouter VerhelstWouter Verhelst

            7,386833




            7,386833








            • 1





              do sudo service network-manager restart. It will reinitalise all the network interfaces...

              – Madhavan
              Aug 22 '15 at 12:37











            • that might work, if you have network-manager installed, and if network-manager knows how to recreate the necessary device. That's not a given.

              – Wouter Verhelst
              Aug 23 '15 at 21:42














            • 1





              do sudo service network-manager restart. It will reinitalise all the network interfaces...

              – Madhavan
              Aug 22 '15 at 12:37











            • that might work, if you have network-manager installed, and if network-manager knows how to recreate the necessary device. That's not a given.

              – Wouter Verhelst
              Aug 23 '15 at 21:42








            1




            1





            do sudo service network-manager restart. It will reinitalise all the network interfaces...

            – Madhavan
            Aug 22 '15 at 12:37





            do sudo service network-manager restart. It will reinitalise all the network interfaces...

            – Madhavan
            Aug 22 '15 at 12:37













            that might work, if you have network-manager installed, and if network-manager knows how to recreate the necessary device. That's not a given.

            – Wouter Verhelst
            Aug 23 '15 at 21:42





            that might work, if you have network-manager installed, and if network-manager knows how to recreate the necessary device. That's not a given.

            – Wouter Verhelst
            Aug 23 '15 at 21:42













            5














            To undo deletion of wlan0, you can recreate it like so:



            iw phy phy0 interface add wlan0 type managed


            This is much faster than rebooting and more reliable than restarting network-manager.






            share|improve this answer




























              5














              To undo deletion of wlan0, you can recreate it like so:



              iw phy phy0 interface add wlan0 type managed


              This is much faster than rebooting and more reliable than restarting network-manager.






              share|improve this answer


























                5












                5








                5







                To undo deletion of wlan0, you can recreate it like so:



                iw phy phy0 interface add wlan0 type managed


                This is much faster than rebooting and more reliable than restarting network-manager.






                share|improve this answer













                To undo deletion of wlan0, you can recreate it like so:



                iw phy phy0 interface add wlan0 type managed


                This is much faster than rebooting and more reliable than restarting network-manager.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 8 '15 at 17:14









                hackerb9hackerb9

                49039




                49039























                    0














                    Once you delete your wlanX interface, and recreate it as suggested. It works, its recreated, however.. Try to join a network..



                    I get
                    nl80211: deinit ifname=wlanX disabled_11b_rates=0
                    failed to initialize.



                    It is UP, it works fine for airodump (promisc) but, I have to reboot (like orig suggested) to get back on a SSID.



                    Anyone have any suggestions as to how to do this w/o reboot?






                    share|improve this answer


























                    • An Answer is not a good place to ask a Question. You could leave a comment on another Answer or the original Question; or if you feel like you have a new question, then create a Question to ask it.

                      – cryptarch
                      Jan 10 at 0:01











                    • @cryptarch They can't leave a comment due to insufficient rep, blame the semi-arbitrary stackexchange restrictions...

                      – undercat
                      Jan 10 at 1:45











                    • @undercat Noted; although, getting up enough rep to leave comments will happen more quickly if they leave answers that are likely to get upvoted rather than downvoted ;)

                      – cryptarch
                      Jan 10 at 1:46
















                    0














                    Once you delete your wlanX interface, and recreate it as suggested. It works, its recreated, however.. Try to join a network..



                    I get
                    nl80211: deinit ifname=wlanX disabled_11b_rates=0
                    failed to initialize.



                    It is UP, it works fine for airodump (promisc) but, I have to reboot (like orig suggested) to get back on a SSID.



                    Anyone have any suggestions as to how to do this w/o reboot?






                    share|improve this answer


























                    • An Answer is not a good place to ask a Question. You could leave a comment on another Answer or the original Question; or if you feel like you have a new question, then create a Question to ask it.

                      – cryptarch
                      Jan 10 at 0:01











                    • @cryptarch They can't leave a comment due to insufficient rep, blame the semi-arbitrary stackexchange restrictions...

                      – undercat
                      Jan 10 at 1:45











                    • @undercat Noted; although, getting up enough rep to leave comments will happen more quickly if they leave answers that are likely to get upvoted rather than downvoted ;)

                      – cryptarch
                      Jan 10 at 1:46














                    0












                    0








                    0







                    Once you delete your wlanX interface, and recreate it as suggested. It works, its recreated, however.. Try to join a network..



                    I get
                    nl80211: deinit ifname=wlanX disabled_11b_rates=0
                    failed to initialize.



                    It is UP, it works fine for airodump (promisc) but, I have to reboot (like orig suggested) to get back on a SSID.



                    Anyone have any suggestions as to how to do this w/o reboot?






                    share|improve this answer















                    Once you delete your wlanX interface, and recreate it as suggested. It works, its recreated, however.. Try to join a network..



                    I get
                    nl80211: deinit ifname=wlanX disabled_11b_rates=0
                    failed to initialize.



                    It is UP, it works fine for airodump (promisc) but, I have to reboot (like orig suggested) to get back on a SSID.



                    Anyone have any suggestions as to how to do this w/o reboot?







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jan 10 at 1:00









                    cryptarch

                    72310




                    72310










                    answered Jan 9 at 23:32









                    Jerry CattellJerry Cattell

                    11




                    11













                    • An Answer is not a good place to ask a Question. You could leave a comment on another Answer or the original Question; or if you feel like you have a new question, then create a Question to ask it.

                      – cryptarch
                      Jan 10 at 0:01











                    • @cryptarch They can't leave a comment due to insufficient rep, blame the semi-arbitrary stackexchange restrictions...

                      – undercat
                      Jan 10 at 1:45











                    • @undercat Noted; although, getting up enough rep to leave comments will happen more quickly if they leave answers that are likely to get upvoted rather than downvoted ;)

                      – cryptarch
                      Jan 10 at 1:46



















                    • An Answer is not a good place to ask a Question. You could leave a comment on another Answer or the original Question; or if you feel like you have a new question, then create a Question to ask it.

                      – cryptarch
                      Jan 10 at 0:01











                    • @cryptarch They can't leave a comment due to insufficient rep, blame the semi-arbitrary stackexchange restrictions...

                      – undercat
                      Jan 10 at 1:45











                    • @undercat Noted; although, getting up enough rep to leave comments will happen more quickly if they leave answers that are likely to get upvoted rather than downvoted ;)

                      – cryptarch
                      Jan 10 at 1:46

















                    An Answer is not a good place to ask a Question. You could leave a comment on another Answer or the original Question; or if you feel like you have a new question, then create a Question to ask it.

                    – cryptarch
                    Jan 10 at 0:01





                    An Answer is not a good place to ask a Question. You could leave a comment on another Answer or the original Question; or if you feel like you have a new question, then create a Question to ask it.

                    – cryptarch
                    Jan 10 at 0:01













                    @cryptarch They can't leave a comment due to insufficient rep, blame the semi-arbitrary stackexchange restrictions...

                    – undercat
                    Jan 10 at 1:45





                    @cryptarch They can't leave a comment due to insufficient rep, blame the semi-arbitrary stackexchange restrictions...

                    – undercat
                    Jan 10 at 1:45













                    @undercat Noted; although, getting up enough rep to leave comments will happen more quickly if they leave answers that are likely to get upvoted rather than downvoted ;)

                    – cryptarch
                    Jan 10 at 1:46





                    @undercat Noted; although, getting up enough rep to leave comments will happen more quickly if they leave answers that are likely to get upvoted rather than downvoted ;)

                    – cryptarch
                    Jan 10 at 1:46


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f224767%2faccidentally-deleted-my-wifi-device-wlan0%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to make a Squid Proxy server?

                    Is this a new Fibonacci Identity?

                    19世紀