Connman static ip for wifi hotspot interface












0















I am starting my hotspot using wpa_supplicant and dhcpd.



Currently, if I manually assign an IP to my wifi interface, I can start the hotspot and it works. I can't figure out how to setup a static ip in any way. I'm using connman to handle the interfaces.



One strange thing. When I list the service using connmanctl services, i only get



*AO Wired                ethernet_0007325441e5_cable


Here are my configurations:



connman /var/lib/connman/settings



[WiFi]
Enable=true
Tethering=true
IPv4=192.168.0.1
IPv6=fe80::665d:86ff:fe16:732b
Type=wifi
MAC=64:5D:86:16:73:2B
Tethering.Identifier=foo
Tethering.Passphrase=foo123123

[Wired]
Enable=true
Tethering=false

[global]
OfflineMode=false

[P2P]
Enable=false
Tethering=false


wpa_supplicant /etc/wpa_supplicant.conf



ap_scan=2

network={
ssid="bar"
mode=2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
frequency=2437
psk="foo"
}


dhcpd /etc/dhcp/dhcpd.conf



option domain-name-servers 8.8.8.8, 8.8.4.4;

default-lease-time 600;
max-lease-time 7200;

ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.1 192.168.0.254;
option routers 192.168.0.1;
}









share|improve this question



























    0















    I am starting my hotspot using wpa_supplicant and dhcpd.



    Currently, if I manually assign an IP to my wifi interface, I can start the hotspot and it works. I can't figure out how to setup a static ip in any way. I'm using connman to handle the interfaces.



    One strange thing. When I list the service using connmanctl services, i only get



    *AO Wired                ethernet_0007325441e5_cable


    Here are my configurations:



    connman /var/lib/connman/settings



    [WiFi]
    Enable=true
    Tethering=true
    IPv4=192.168.0.1
    IPv6=fe80::665d:86ff:fe16:732b
    Type=wifi
    MAC=64:5D:86:16:73:2B
    Tethering.Identifier=foo
    Tethering.Passphrase=foo123123

    [Wired]
    Enable=true
    Tethering=false

    [global]
    OfflineMode=false

    [P2P]
    Enable=false
    Tethering=false


    wpa_supplicant /etc/wpa_supplicant.conf



    ap_scan=2

    network={
    ssid="bar"
    mode=2
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP WEP104 WEP40
    frequency=2437
    psk="foo"
    }


    dhcpd /etc/dhcp/dhcpd.conf



    option domain-name-servers 8.8.8.8, 8.8.4.4;

    default-lease-time 600;
    max-lease-time 7200;

    ddns-update-style none;

    subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.1 192.168.0.254;
    option routers 192.168.0.1;
    }









    share|improve this question

























      0












      0








      0








      I am starting my hotspot using wpa_supplicant and dhcpd.



      Currently, if I manually assign an IP to my wifi interface, I can start the hotspot and it works. I can't figure out how to setup a static ip in any way. I'm using connman to handle the interfaces.



      One strange thing. When I list the service using connmanctl services, i only get



      *AO Wired                ethernet_0007325441e5_cable


      Here are my configurations:



      connman /var/lib/connman/settings



      [WiFi]
      Enable=true
      Tethering=true
      IPv4=192.168.0.1
      IPv6=fe80::665d:86ff:fe16:732b
      Type=wifi
      MAC=64:5D:86:16:73:2B
      Tethering.Identifier=foo
      Tethering.Passphrase=foo123123

      [Wired]
      Enable=true
      Tethering=false

      [global]
      OfflineMode=false

      [P2P]
      Enable=false
      Tethering=false


      wpa_supplicant /etc/wpa_supplicant.conf



      ap_scan=2

      network={
      ssid="bar"
      mode=2
      key_mgmt=WPA-PSK
      pairwise=CCMP TKIP
      group=CCMP TKIP WEP104 WEP40
      frequency=2437
      psk="foo"
      }


      dhcpd /etc/dhcp/dhcpd.conf



      option domain-name-servers 8.8.8.8, 8.8.4.4;

      default-lease-time 600;
      max-lease-time 7200;

      ddns-update-style none;

      subnet 192.168.0.0 netmask 255.255.255.0 {
      range 192.168.0.1 192.168.0.254;
      option routers 192.168.0.1;
      }









      share|improve this question














      I am starting my hotspot using wpa_supplicant and dhcpd.



      Currently, if I manually assign an IP to my wifi interface, I can start the hotspot and it works. I can't figure out how to setup a static ip in any way. I'm using connman to handle the interfaces.



      One strange thing. When I list the service using connmanctl services, i only get



      *AO Wired                ethernet_0007325441e5_cable


      Here are my configurations:



      connman /var/lib/connman/settings



      [WiFi]
      Enable=true
      Tethering=true
      IPv4=192.168.0.1
      IPv6=fe80::665d:86ff:fe16:732b
      Type=wifi
      MAC=64:5D:86:16:73:2B
      Tethering.Identifier=foo
      Tethering.Passphrase=foo123123

      [Wired]
      Enable=true
      Tethering=false

      [global]
      OfflineMode=false

      [P2P]
      Enable=false
      Tethering=false


      wpa_supplicant /etc/wpa_supplicant.conf



      ap_scan=2

      network={
      ssid="bar"
      mode=2
      key_mgmt=WPA-PSK
      pairwise=CCMP TKIP
      group=CCMP TKIP WEP104 WEP40
      frequency=2437
      psk="foo"
      }


      dhcpd /etc/dhcp/dhcpd.conf



      option domain-name-servers 8.8.8.8, 8.8.4.4;

      default-lease-time 600;
      max-lease-time 7200;

      ddns-update-style none;

      subnet 192.168.0.0 netmask 255.255.255.0 {
      range 192.168.0.1 192.168.0.254;
      option routers 192.168.0.1;
      }






      dhcp wireless-access-point wpa-supplicant






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 1 at 15:59









      David BensoussanDavid Bensoussan

      1013




      1013






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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%2fsuperuser.com%2fquestions%2f1401043%2fconnman-static-ip-for-wifi-hotspot-interface%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1401043%2fconnman-static-ip-for-wifi-hotspot-interface%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?

          第一次世界大戦

          Touch on Surface Book