How to set up a Wifi Hotspot on ubuntu14.04 and set 192.168.42.1 as wlan0 address?












0















I have tried to set up a hotspot on ubuntu14.04. My /etc/NetworkManager/system-connections file is shown below.



[connection]
id=hotspott
uuid=03eb0f63-e766-41df-bc04-0f30740f6841
type=802-11-wireless

[802-11-wireless]
ssid=machCochin
mode=ap
mac-address=B0:C0:90:68:EE:73

[ipv6]
method=auto

[ipv4]
method=manual
address1=192.168.42.1/24,192.168.42.1


This creates the hotspot but I can't connect to the network. I have tried by replacing ipv4 section to method=shared and at that time I can join to the network from my phone but it assigned with a dynamic address.



How to create static IP for wlan0 when working as hotspot?










share|improve this question



























    0















    I have tried to set up a hotspot on ubuntu14.04. My /etc/NetworkManager/system-connections file is shown below.



    [connection]
    id=hotspott
    uuid=03eb0f63-e766-41df-bc04-0f30740f6841
    type=802-11-wireless

    [802-11-wireless]
    ssid=machCochin
    mode=ap
    mac-address=B0:C0:90:68:EE:73

    [ipv6]
    method=auto

    [ipv4]
    method=manual
    address1=192.168.42.1/24,192.168.42.1


    This creates the hotspot but I can't connect to the network. I have tried by replacing ipv4 section to method=shared and at that time I can join to the network from my phone but it assigned with a dynamic address.



    How to create static IP for wlan0 when working as hotspot?










    share|improve this question

























      0












      0








      0








      I have tried to set up a hotspot on ubuntu14.04. My /etc/NetworkManager/system-connections file is shown below.



      [connection]
      id=hotspott
      uuid=03eb0f63-e766-41df-bc04-0f30740f6841
      type=802-11-wireless

      [802-11-wireless]
      ssid=machCochin
      mode=ap
      mac-address=B0:C0:90:68:EE:73

      [ipv6]
      method=auto

      [ipv4]
      method=manual
      address1=192.168.42.1/24,192.168.42.1


      This creates the hotspot but I can't connect to the network. I have tried by replacing ipv4 section to method=shared and at that time I can join to the network from my phone but it assigned with a dynamic address.



      How to create static IP for wlan0 when working as hotspot?










      share|improve this question














      I have tried to set up a hotspot on ubuntu14.04. My /etc/NetworkManager/system-connections file is shown below.



      [connection]
      id=hotspott
      uuid=03eb0f63-e766-41df-bc04-0f30740f6841
      type=802-11-wireless

      [802-11-wireless]
      ssid=machCochin
      mode=ap
      mac-address=B0:C0:90:68:EE:73

      [ipv6]
      method=auto

      [ipv4]
      method=manual
      address1=192.168.42.1/24,192.168.42.1


      This creates the hotspot but I can't connect to the network. I have tried by replacing ipv4 section to method=shared and at that time I can join to the network from my phone but it assigned with a dynamic address.



      How to create static IP for wlan0 when working as hotspot?







      14.04 networking wireless network-manager






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 21 at 4:05









      mcvmcv

      84




      84






















          1 Answer
          1






          active

          oldest

          votes


















          0














          May be you can't connect because, NetworkManager creates an ad-hoc AP.



          I would recommend to use create_ap. It's a simple script that simplifies the use of hostapd and iptables and dnsmasq.



          Just clone it at github with:



          git clone https://github.com/oblique/create_ap.git


          Then you need some dependancies, if you don't have them installed:



          sudo apt-get install iptables dnsmasq hostapd


          And then, you can run it from the create_ap directory:



          cd create_ap
          sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase


          You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1 switch to create_ap






          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',
            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%2f1120002%2fhow-to-set-up-a-wifi-hotspot-on-ubuntu14-04-and-set-192-168-42-1-as-wlan0-addres%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            May be you can't connect because, NetworkManager creates an ad-hoc AP.



            I would recommend to use create_ap. It's a simple script that simplifies the use of hostapd and iptables and dnsmasq.



            Just clone it at github with:



            git clone https://github.com/oblique/create_ap.git


            Then you need some dependancies, if you don't have them installed:



            sudo apt-get install iptables dnsmasq hostapd


            And then, you can run it from the create_ap directory:



            cd create_ap
            sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase


            You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1 switch to create_ap






            share|improve this answer




























              0














              May be you can't connect because, NetworkManager creates an ad-hoc AP.



              I would recommend to use create_ap. It's a simple script that simplifies the use of hostapd and iptables and dnsmasq.



              Just clone it at github with:



              git clone https://github.com/oblique/create_ap.git


              Then you need some dependancies, if you don't have them installed:



              sudo apt-get install iptables dnsmasq hostapd


              And then, you can run it from the create_ap directory:



              cd create_ap
              sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase


              You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1 switch to create_ap






              share|improve this answer


























                0












                0








                0







                May be you can't connect because, NetworkManager creates an ad-hoc AP.



                I would recommend to use create_ap. It's a simple script that simplifies the use of hostapd and iptables and dnsmasq.



                Just clone it at github with:



                git clone https://github.com/oblique/create_ap.git


                Then you need some dependancies, if you don't have them installed:



                sudo apt-get install iptables dnsmasq hostapd


                And then, you can run it from the create_ap directory:



                cd create_ap
                sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase


                You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1 switch to create_ap






                share|improve this answer













                May be you can't connect because, NetworkManager creates an ad-hoc AP.



                I would recommend to use create_ap. It's a simple script that simplifies the use of hostapd and iptables and dnsmasq.



                Just clone it at github with:



                git clone https://github.com/oblique/create_ap.git


                Then you need some dependancies, if you don't have them installed:



                sudo apt-get install iptables dnsmasq hostapd


                And then, you can run it from the create_ap directory:



                cd create_ap
                sudo ./create_ap -w 2 wlan0 eth0 MyAccessPoint MyPassPhrase


                You can change it's configuration to get 192.168.42.1 as wlan IP. If I understand you correctly, use the --gateway 192.168.42.1 switch to create_ap







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 21 at 10:05









                solsTiCesolsTiCe

                6,31632050




                6,31632050






























                    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%2f1120002%2fhow-to-set-up-a-wifi-hotspot-on-ubuntu14-04-and-set-192-168-42-1-as-wlan0-addres%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 reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                    is 'sed' thread safe

                    How to make a Squid Proxy server?