How to identify wifi network interfaces?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












How can I find a list of wifi interfaces that could be used by hostapd?



This doesn't work - I don't see my wifi interfaces listed:



☀ cat /etc/network/interfaces NewMod master
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


This kind of works - but I can't see which are wireless (except they start with wl)



☀ ifconfig NewMod master
enp2s0f1 Link encap:Ethernet HWaddr 80:fa:5b:47:d3:a2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

enx803f5d0cfb18 Link encap:Ethernet HWaddr 80:3f:5d:0c:fb:18
inet6 addr: fe80::c00b:310a:534f:34ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1038940 errors:0 dropped:0 overruns:0 frame:0
TX packets:733216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1257594637 (1.2 GB) TX bytes:78531977 (78.5 MB)

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:237623 errors:0 dropped:0 overruns:0 frame:0
TX packets:237623 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20683739 (20.6 MB) TX bytes:20683739 (20.6 MB)

wlp3s0 Link encap:Ethernet HWaddr b0:35:9f:2d:42:27
inet addr:192.168.0.18 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::6b44:ffcf:8889:7f3d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8681955 errors:0 dropped:0 overruns:0 frame:0
TX packets:4304922 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10401603438 (10.4 GB) TX bytes:598603222 (598.6 MB)

wlxc4e984116e78 Link encap:Ethernet HWaddr c4:e9:84:11:6e:78
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


Is there a better way than assuming interfaces starting with "wl" are wifi?



Bonus points for a quick explanation of why they don't show up in /etc/network/interfaces. For these extra interfaces, do they have reliable names between reboots?



Basically I want to provide a list of interfaces so someone can choose which to hostapd with.



Thanks!



Mike










share|improve this question





















  • Nothing shows up in /etc/network/interfaces unless somebody put them there. The installer helpfully adds localhost and any configured ethernet interfaces, that's why they show up with additional action.
    – muru
    Feb 7 at 5:08














up vote
0
down vote

favorite












How can I find a list of wifi interfaces that could be used by hostapd?



This doesn't work - I don't see my wifi interfaces listed:



☀ cat /etc/network/interfaces NewMod master
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


This kind of works - but I can't see which are wireless (except they start with wl)



☀ ifconfig NewMod master
enp2s0f1 Link encap:Ethernet HWaddr 80:fa:5b:47:d3:a2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

enx803f5d0cfb18 Link encap:Ethernet HWaddr 80:3f:5d:0c:fb:18
inet6 addr: fe80::c00b:310a:534f:34ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1038940 errors:0 dropped:0 overruns:0 frame:0
TX packets:733216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1257594637 (1.2 GB) TX bytes:78531977 (78.5 MB)

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:237623 errors:0 dropped:0 overruns:0 frame:0
TX packets:237623 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20683739 (20.6 MB) TX bytes:20683739 (20.6 MB)

wlp3s0 Link encap:Ethernet HWaddr b0:35:9f:2d:42:27
inet addr:192.168.0.18 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::6b44:ffcf:8889:7f3d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8681955 errors:0 dropped:0 overruns:0 frame:0
TX packets:4304922 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10401603438 (10.4 GB) TX bytes:598603222 (598.6 MB)

wlxc4e984116e78 Link encap:Ethernet HWaddr c4:e9:84:11:6e:78
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


Is there a better way than assuming interfaces starting with "wl" are wifi?



Bonus points for a quick explanation of why they don't show up in /etc/network/interfaces. For these extra interfaces, do they have reliable names between reboots?



Basically I want to provide a list of interfaces so someone can choose which to hostapd with.



Thanks!



Mike










share|improve this question





















  • Nothing shows up in /etc/network/interfaces unless somebody put them there. The installer helpfully adds localhost and any configured ethernet interfaces, that's why they show up with additional action.
    – muru
    Feb 7 at 5:08












up vote
0
down vote

favorite









up vote
0
down vote

favorite











How can I find a list of wifi interfaces that could be used by hostapd?



This doesn't work - I don't see my wifi interfaces listed:



☀ cat /etc/network/interfaces NewMod master
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


This kind of works - but I can't see which are wireless (except they start with wl)



☀ ifconfig NewMod master
enp2s0f1 Link encap:Ethernet HWaddr 80:fa:5b:47:d3:a2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

enx803f5d0cfb18 Link encap:Ethernet HWaddr 80:3f:5d:0c:fb:18
inet6 addr: fe80::c00b:310a:534f:34ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1038940 errors:0 dropped:0 overruns:0 frame:0
TX packets:733216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1257594637 (1.2 GB) TX bytes:78531977 (78.5 MB)

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:237623 errors:0 dropped:0 overruns:0 frame:0
TX packets:237623 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20683739 (20.6 MB) TX bytes:20683739 (20.6 MB)

wlp3s0 Link encap:Ethernet HWaddr b0:35:9f:2d:42:27
inet addr:192.168.0.18 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::6b44:ffcf:8889:7f3d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8681955 errors:0 dropped:0 overruns:0 frame:0
TX packets:4304922 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10401603438 (10.4 GB) TX bytes:598603222 (598.6 MB)

wlxc4e984116e78 Link encap:Ethernet HWaddr c4:e9:84:11:6e:78
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


Is there a better way than assuming interfaces starting with "wl" are wifi?



Bonus points for a quick explanation of why they don't show up in /etc/network/interfaces. For these extra interfaces, do they have reliable names between reboots?



Basically I want to provide a list of interfaces so someone can choose which to hostapd with.



Thanks!



Mike










share|improve this question













How can I find a list of wifi interfaces that could be used by hostapd?



This doesn't work - I don't see my wifi interfaces listed:



☀ cat /etc/network/interfaces NewMod master
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback


This kind of works - but I can't see which are wireless (except they start with wl)



☀ ifconfig NewMod master
enp2s0f1 Link encap:Ethernet HWaddr 80:fa:5b:47:d3:a2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

enx803f5d0cfb18 Link encap:Ethernet HWaddr 80:3f:5d:0c:fb:18
inet6 addr: fe80::c00b:310a:534f:34ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1038940 errors:0 dropped:0 overruns:0 frame:0
TX packets:733216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1257594637 (1.2 GB) TX bytes:78531977 (78.5 MB)

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:237623 errors:0 dropped:0 overruns:0 frame:0
TX packets:237623 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20683739 (20.6 MB) TX bytes:20683739 (20.6 MB)

wlp3s0 Link encap:Ethernet HWaddr b0:35:9f:2d:42:27
inet addr:192.168.0.18 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::6b44:ffcf:8889:7f3d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8681955 errors:0 dropped:0 overruns:0 frame:0
TX packets:4304922 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10401603438 (10.4 GB) TX bytes:598603222 (598.6 MB)

wlxc4e984116e78 Link encap:Ethernet HWaddr c4:e9:84:11:6e:78
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


Is there a better way than assuming interfaces starting with "wl" are wifi?



Bonus points for a quick explanation of why they don't show up in /etc/network/interfaces. For these extra interfaces, do they have reliable names between reboots?



Basically I want to provide a list of interfaces so someone can choose which to hostapd with.



Thanks!



Mike







networking hostapd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 6 at 18:35









Michael Cole

402312




402312











  • Nothing shows up in /etc/network/interfaces unless somebody put them there. The installer helpfully adds localhost and any configured ethernet interfaces, that's why they show up with additional action.
    – muru
    Feb 7 at 5:08
















  • Nothing shows up in /etc/network/interfaces unless somebody put them there. The installer helpfully adds localhost and any configured ethernet interfaces, that's why they show up with additional action.
    – muru
    Feb 7 at 5:08















Nothing shows up in /etc/network/interfaces unless somebody put them there. The installer helpfully adds localhost and any configured ethernet interfaces, that's why they show up with additional action.
– muru
Feb 7 at 5:08




Nothing shows up in /etc/network/interfaces unless somebody put them there. The installer helpfully adds localhost and any configured ethernet interfaces, that's why they show up with additional action.
– muru
Feb 7 at 5:08










2 Answers
2






active

oldest

votes

















up vote
0
down vote













You can use iwconfig but iwconfig is depricated.



Now way is this:



iw dev | grep -Po '^sInterfacesK.*$'





share|improve this answer





























    up vote
    0
    down vote













    Look at inet address. Only device here that might be working wireless is wlp3s0. Others do not have external ipv4 address.



    Also look the hardware address . Compare with output from other system descriptors like lspci.






    share|improve this answer




















      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',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      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%2f1003644%2fhow-to-identify-wifi-network-interfaces%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      You can use iwconfig but iwconfig is depricated.



      Now way is this:



      iw dev | grep -Po '^sInterfacesK.*$'





      share|improve this answer


























        up vote
        0
        down vote













        You can use iwconfig but iwconfig is depricated.



        Now way is this:



        iw dev | grep -Po '^sInterfacesK.*$'





        share|improve this answer
























          up vote
          0
          down vote










          up vote
          0
          down vote









          You can use iwconfig but iwconfig is depricated.



          Now way is this:



          iw dev | grep -Po '^sInterfacesK.*$'





          share|improve this answer














          You can use iwconfig but iwconfig is depricated.



          Now way is this:



          iw dev | grep -Po '^sInterfacesK.*$'






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 6 at 19:45

























          answered Feb 6 at 18:39









          Michael Cole

          402312




          402312






















              up vote
              0
              down vote













              Look at inet address. Only device here that might be working wireless is wlp3s0. Others do not have external ipv4 address.



              Also look the hardware address . Compare with output from other system descriptors like lspci.






              share|improve this answer
























                up vote
                0
                down vote













                Look at inet address. Only device here that might be working wireless is wlp3s0. Others do not have external ipv4 address.



                Also look the hardware address . Compare with output from other system descriptors like lspci.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Look at inet address. Only device here that might be working wireless is wlp3s0. Others do not have external ipv4 address.



                  Also look the hardware address . Compare with output from other system descriptors like lspci.






                  share|improve this answer












                  Look at inet address. Only device here that might be working wireless is wlp3s0. Others do not have external ipv4 address.



                  Also look the hardware address . Compare with output from other system descriptors like lspci.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 7 at 5:01









                  pauljohn32

                  2,059719




                  2,059719



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1003644%2fhow-to-identify-wifi-network-interfaces%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491