Linux emulate multiple Wifi connections

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











up vote
1
down vote

favorite
1












I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achieve this? Something like create another interface on the same subnet as the wlan? Thanks







share|improve this question




















  • Tell us why you want to simulate them.
    – Rui F Ribeiro
    Mar 15 at 8:19










  • @RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
    – user3808318
    Mar 15 at 9:31










  • We are getting somewhere. Testing FreeRadius?
    – Rui F Ribeiro
    Mar 15 at 11:04















up vote
1
down vote

favorite
1












I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achieve this? Something like create another interface on the same subnet as the wlan? Thanks







share|improve this question




















  • Tell us why you want to simulate them.
    – Rui F Ribeiro
    Mar 15 at 8:19










  • @RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
    – user3808318
    Mar 15 at 9:31










  • We are getting somewhere. Testing FreeRadius?
    – Rui F Ribeiro
    Mar 15 at 11:04













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achieve this? Something like create another interface on the same subnet as the wlan? Thanks







share|improve this question












I have a Linux machine that creates a Wifi hotspot. I need to simulate a few clients connecting to that hotspot and then using that connectiong to talk to a service, through the wlan interface. The service is running in it's own process and the clients would be connecting from another process. Is there a way to achieve this? Something like create another interface on the same subnet as the wlan? Thanks









share|improve this question











share|improve this question




share|improve this question










asked Mar 15 at 6:59









user3808318

82




82











  • Tell us why you want to simulate them.
    – Rui F Ribeiro
    Mar 15 at 8:19










  • @RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
    – user3808318
    Mar 15 at 9:31










  • We are getting somewhere. Testing FreeRadius?
    – Rui F Ribeiro
    Mar 15 at 11:04

















  • Tell us why you want to simulate them.
    – Rui F Ribeiro
    Mar 15 at 8:19










  • @RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
    – user3808318
    Mar 15 at 9:31










  • We are getting somewhere. Testing FreeRadius?
    – Rui F Ribeiro
    Mar 15 at 11:04
















Tell us why you want to simulate them.
– Rui F Ribeiro
Mar 15 at 8:19




Tell us why you want to simulate them.
– Rui F Ribeiro
Mar 15 at 8:19












@RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
– user3808318
Mar 15 at 9:31




@RuiFRibeiro We want to test that some thrift clients connecting through Wifi to the machine would work accordingly. Basically to test that tls/ssl is connecting ok...
– user3808318
Mar 15 at 9:31












We are getting somewhere. Testing FreeRadius?
– Rui F Ribeiro
Mar 15 at 11:04





We are getting somewhere. Testing FreeRadius?
– Rui F Ribeiro
Mar 15 at 11:04











1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Have a look at the mac80211_hwsim kernel module. This module simulates a number of virtual "radios" (wifi cards, or phys) that communicate with each other. E.g.,



modprobe mac80211_hwsim radios=3


will give you 3 of those. Use iw dev to view them and see their MAC address. Then you can use iw and ip to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0 interface of ieee802.11/radiotap type, and you can run wireshark on it to see the messages that go through the "virtual" air.



If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.






share|improve this answer




















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f430326%2flinux-emulate-multiple-wifi-connections%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    Have a look at the mac80211_hwsim kernel module. This module simulates a number of virtual "radios" (wifi cards, or phys) that communicate with each other. E.g.,



    modprobe mac80211_hwsim radios=3


    will give you 3 of those. Use iw dev to view them and see their MAC address. Then you can use iw and ip to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0 interface of ieee802.11/radiotap type, and you can run wireshark on it to see the messages that go through the "virtual" air.



    If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.






    share|improve this answer
























      up vote
      1
      down vote



      accepted










      Have a look at the mac80211_hwsim kernel module. This module simulates a number of virtual "radios" (wifi cards, or phys) that communicate with each other. E.g.,



      modprobe mac80211_hwsim radios=3


      will give you 3 of those. Use iw dev to view them and see their MAC address. Then you can use iw and ip to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0 interface of ieee802.11/radiotap type, and you can run wireshark on it to see the messages that go through the "virtual" air.



      If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.






      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        Have a look at the mac80211_hwsim kernel module. This module simulates a number of virtual "radios" (wifi cards, or phys) that communicate with each other. E.g.,



        modprobe mac80211_hwsim radios=3


        will give you 3 of those. Use iw dev to view them and see their MAC address. Then you can use iw and ip to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0 interface of ieee802.11/radiotap type, and you can run wireshark on it to see the messages that go through the "virtual" air.



        If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.






        share|improve this answer












        Have a look at the mac80211_hwsim kernel module. This module simulates a number of virtual "radios" (wifi cards, or phys) that communicate with each other. E.g.,



        modprobe mac80211_hwsim radios=3


        will give you 3 of those. Use iw dev to view them and see their MAC address. Then you can use iw and ip to configure them, and simulate an access point and as many clients as you want. You'll also get a hwsim0 interface of ieee802.11/radiotap type, and you can run wireshark on it to see the messages that go through the "virtual" air.



        If the software you are using on the wireless network interfaces can't bind to specific interfaces, consider putting it into a network namespace for each client.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 17 at 6:31









        dirkt

        14k2930




        14k2930






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430326%2flinux-emulate-multiple-wifi-connections%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?