Changing adapter back to manged mode












2















I changed my adapter to monitor mode using:



sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor


Now, I cannot change it back (in the GUI, when I click on connections, it says that "wireless is disabled by wireless switch"). I have not switched off anything from hardware buttons.



I tried



sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode managed
sudo service network-manager restart


I also tried



pccardctl eject
pccardctl insert


It appears that it has switched back to managed mode, but is still offline:
ifconfig output:




eth0 Link encap:Ethernet HWaddr 00:24:21:6f:84:69
inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27668 errors:0 dropped:0 overruns:0 frame:0
TX packets:3504 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:1000
RX bytes:4493143 (4.4 MB) TX bytes:659945 (659.9 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:553 errors:0 dropped:0 overruns:0 frame:0
TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:84110 (84.1 KB) TX bytes:84110 (84.1 KB)


iwconfig output:




eth0 no wireless extensions.

lo no wireless extensions.

wlan0 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off









share|improve this question





























    2















    I changed my adapter to monitor mode using:



    sudo ifconfig wlan0 down
    sudo iwconfig wlan0 mode monitor


    Now, I cannot change it back (in the GUI, when I click on connections, it says that "wireless is disabled by wireless switch"). I have not switched off anything from hardware buttons.



    I tried



    sudo ifconfig wlan0 down
    sudo iwconfig wlan0 mode managed
    sudo service network-manager restart


    I also tried



    pccardctl eject
    pccardctl insert


    It appears that it has switched back to managed mode, but is still offline:
    ifconfig output:




    eth0 Link encap:Ethernet HWaddr 00:24:21:6f:84:69
    inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
    inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:27668 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3504 errors:0 dropped:0 overruns:0 carrier:0
    collisions:1 txqueuelen:1000
    RX bytes:4493143 (4.4 MB) TX bytes:659945 (659.9 KB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:65536 Metric:1
    RX packets:553 errors:0 dropped:0 overruns:0 frame:0
    TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:84110 (84.1 KB) TX bytes:84110 (84.1 KB)


    iwconfig output:




    eth0 no wireless extensions.

    lo no wireless extensions.

    wlan0 IEEE 802.11bg ESSID:off/any
    Mode:Managed Access Point: Not-Associated Tx-Power=off
    Retry long limit:7 RTS thr:off Fragment thr:off
    Power Management:off









    share|improve this question



























      2












      2








      2


      1






      I changed my adapter to monitor mode using:



      sudo ifconfig wlan0 down
      sudo iwconfig wlan0 mode monitor


      Now, I cannot change it back (in the GUI, when I click on connections, it says that "wireless is disabled by wireless switch"). I have not switched off anything from hardware buttons.



      I tried



      sudo ifconfig wlan0 down
      sudo iwconfig wlan0 mode managed
      sudo service network-manager restart


      I also tried



      pccardctl eject
      pccardctl insert


      It appears that it has switched back to managed mode, but is still offline:
      ifconfig output:




      eth0 Link encap:Ethernet HWaddr 00:24:21:6f:84:69
      inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
      inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:27668 errors:0 dropped:0 overruns:0 frame:0
      TX packets:3504 errors:0 dropped:0 overruns:0 carrier:0
      collisions:1 txqueuelen:1000
      RX bytes:4493143 (4.4 MB) TX bytes:659945 (659.9 KB)

      lo Link encap:Local Loopback
      inet addr:127.0.0.1 Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING MTU:65536 Metric:1
      RX packets:553 errors:0 dropped:0 overruns:0 frame:0
      TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0
      RX bytes:84110 (84.1 KB) TX bytes:84110 (84.1 KB)


      iwconfig output:




      eth0 no wireless extensions.

      lo no wireless extensions.

      wlan0 IEEE 802.11bg ESSID:off/any
      Mode:Managed Access Point: Not-Associated Tx-Power=off
      Retry long limit:7 RTS thr:off Fragment thr:off
      Power Management:off









      share|improve this question
















      I changed my adapter to monitor mode using:



      sudo ifconfig wlan0 down
      sudo iwconfig wlan0 mode monitor


      Now, I cannot change it back (in the GUI, when I click on connections, it says that "wireless is disabled by wireless switch"). I have not switched off anything from hardware buttons.



      I tried



      sudo ifconfig wlan0 down
      sudo iwconfig wlan0 mode managed
      sudo service network-manager restart


      I also tried



      pccardctl eject
      pccardctl insert


      It appears that it has switched back to managed mode, but is still offline:
      ifconfig output:




      eth0 Link encap:Ethernet HWaddr 00:24:21:6f:84:69
      inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
      inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:27668 errors:0 dropped:0 overruns:0 frame:0
      TX packets:3504 errors:0 dropped:0 overruns:0 carrier:0
      collisions:1 txqueuelen:1000
      RX bytes:4493143 (4.4 MB) TX bytes:659945 (659.9 KB)

      lo Link encap:Local Loopback
      inet addr:127.0.0.1 Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING MTU:65536 Metric:1
      RX packets:553 errors:0 dropped:0 overruns:0 frame:0
      TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0
      RX bytes:84110 (84.1 KB) TX bytes:84110 (84.1 KB)


      iwconfig output:




      eth0 no wireless extensions.

      lo no wireless extensions.

      wlan0 IEEE 802.11bg ESSID:off/any
      Mode:Managed Access Point: Not-Associated Tx-Power=off
      Retry long limit:7 RTS thr:off Fragment thr:off
      Power Management:off






      wireless






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 20 '13 at 5:06









      Alaa Ali

      22.3k96994




      22.3k96994










      asked Dec 20 '13 at 2:38









      RaduRadu

      11113




      11113






















          3 Answers
          3






          active

          oldest

          votes


















          3














          You should execute:



          sudo ifconfig wlan0 up


          And it should come back to life.



          Just to give you a little explanation: the output of the command ifconfig only shows the interfaces that are up. For example, you'll notice that your eth0 interface is up:



          eth0       Link encap:Ethernet  HWaddr 00:24:21:6f:84:69  
          inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
          inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1


          Your ifconfig output does not have wlan0 listed, meaning that it has been turned off. If you do ifconfig -a, you should see all interfaces (up or down), and you'll notice that wlan0 won't have UP displayed. And all of this makes complete sense because you switched off your WiFi card when you did ifconfig wlan0 down. So ifconfig wlan0 up should bring it back online. If it doesn't work straight away, do a sudo service network-manager restart.






          share|improve this answer































            0














            Try using Alpha-Lead's script on GitHub.
            It provides a nice and easy menu to change modes.
            https://github.com/Alpha-Lead/ChangeWirelessMode






            share|improve this answer































              0














              In my case , I need to turn the radio on at the last step.



              ip link dev up     
              nmcli radio all on





              share|improve this answer








              New contributor




              bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




















                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "89"
                };
                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: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                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%2faskubuntu.com%2fquestions%2f393300%2fchanging-adapter-back-to-manged-mode%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









                3














                You should execute:



                sudo ifconfig wlan0 up


                And it should come back to life.



                Just to give you a little explanation: the output of the command ifconfig only shows the interfaces that are up. For example, you'll notice that your eth0 interface is up:



                eth0       Link encap:Ethernet  HWaddr 00:24:21:6f:84:69  
                inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
                inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
                UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1


                Your ifconfig output does not have wlan0 listed, meaning that it has been turned off. If you do ifconfig -a, you should see all interfaces (up or down), and you'll notice that wlan0 won't have UP displayed. And all of this makes complete sense because you switched off your WiFi card when you did ifconfig wlan0 down. So ifconfig wlan0 up should bring it back online. If it doesn't work straight away, do a sudo service network-manager restart.






                share|improve this answer




























                  3














                  You should execute:



                  sudo ifconfig wlan0 up


                  And it should come back to life.



                  Just to give you a little explanation: the output of the command ifconfig only shows the interfaces that are up. For example, you'll notice that your eth0 interface is up:



                  eth0       Link encap:Ethernet  HWaddr 00:24:21:6f:84:69  
                  inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
                  inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
                  UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1


                  Your ifconfig output does not have wlan0 listed, meaning that it has been turned off. If you do ifconfig -a, you should see all interfaces (up or down), and you'll notice that wlan0 won't have UP displayed. And all of this makes complete sense because you switched off your WiFi card when you did ifconfig wlan0 down. So ifconfig wlan0 up should bring it back online. If it doesn't work straight away, do a sudo service network-manager restart.






                  share|improve this answer


























                    3












                    3








                    3







                    You should execute:



                    sudo ifconfig wlan0 up


                    And it should come back to life.



                    Just to give you a little explanation: the output of the command ifconfig only shows the interfaces that are up. For example, you'll notice that your eth0 interface is up:



                    eth0       Link encap:Ethernet  HWaddr 00:24:21:6f:84:69  
                    inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
                    inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
                    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1


                    Your ifconfig output does not have wlan0 listed, meaning that it has been turned off. If you do ifconfig -a, you should see all interfaces (up or down), and you'll notice that wlan0 won't have UP displayed. And all of this makes complete sense because you switched off your WiFi card when you did ifconfig wlan0 down. So ifconfig wlan0 up should bring it back online. If it doesn't work straight away, do a sudo service network-manager restart.






                    share|improve this answer













                    You should execute:



                    sudo ifconfig wlan0 up


                    And it should come back to life.



                    Just to give you a little explanation: the output of the command ifconfig only shows the interfaces that are up. For example, you'll notice that your eth0 interface is up:



                    eth0       Link encap:Ethernet  HWaddr 00:24:21:6f:84:69  
                    inet addr:10.100.1.41 Bcast:10.100.255.255 Mask:255.255.0.0
                    inet6 addr: fe80::224:21ff:fe6f:8469/64 Scope:Link
                    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1


                    Your ifconfig output does not have wlan0 listed, meaning that it has been turned off. If you do ifconfig -a, you should see all interfaces (up or down), and you'll notice that wlan0 won't have UP displayed. And all of this makes complete sense because you switched off your WiFi card when you did ifconfig wlan0 down. So ifconfig wlan0 up should bring it back online. If it doesn't work straight away, do a sudo service network-manager restart.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 20 '13 at 5:02









                    Alaa AliAlaa Ali

                    22.3k96994




                    22.3k96994

























                        0














                        Try using Alpha-Lead's script on GitHub.
                        It provides a nice and easy menu to change modes.
                        https://github.com/Alpha-Lead/ChangeWirelessMode






                        share|improve this answer




























                          0














                          Try using Alpha-Lead's script on GitHub.
                          It provides a nice and easy menu to change modes.
                          https://github.com/Alpha-Lead/ChangeWirelessMode






                          share|improve this answer


























                            0












                            0








                            0







                            Try using Alpha-Lead's script on GitHub.
                            It provides a nice and easy menu to change modes.
                            https://github.com/Alpha-Lead/ChangeWirelessMode






                            share|improve this answer













                            Try using Alpha-Lead's script on GitHub.
                            It provides a nice and easy menu to change modes.
                            https://github.com/Alpha-Lead/ChangeWirelessMode







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 15 '18 at 9:54









                            EvailEvail

                            1




                            1























                                0














                                In my case , I need to turn the radio on at the last step.



                                ip link dev up     
                                nmcli radio all on





                                share|improve this answer








                                New contributor




                                bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                Check out our Code of Conduct.

























                                  0














                                  In my case , I need to turn the radio on at the last step.



                                  ip link dev up     
                                  nmcli radio all on





                                  share|improve this answer








                                  New contributor




                                  bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                  Check out our Code of Conduct.























                                    0












                                    0








                                    0







                                    In my case , I need to turn the radio on at the last step.



                                    ip link dev up     
                                    nmcli radio all on





                                    share|improve this answer








                                    New contributor




                                    bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.










                                    In my case , I need to turn the radio on at the last step.



                                    ip link dev up     
                                    nmcli radio all on






                                    share|improve this answer








                                    New contributor




                                    bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.









                                    share|improve this answer



                                    share|improve this answer






                                    New contributor




                                    bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.









                                    answered 2 hours ago









                                    bluefisher80bluefisher80

                                    1




                                    1




                                    New contributor




                                    bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.





                                    New contributor





                                    bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.






                                    bluefisher80 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Ask Ubuntu!


                                        • 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%2faskubuntu.com%2fquestions%2f393300%2fchanging-adapter-back-to-manged-mode%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

                                        GameSpot

                                        日野市

                                        Tu-95轟炸機