WiFi with static IP configuration












0















I want to connect to my home wifi, which has a static IP configuration.
I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in neither case I managed to connect to the internet.



The specifics of the configuration are:




  • IP address: 10.149.40.49

  • Netmask: 255.255.255.0

  • Gateway: 10.149.40.1

  • DNS: 10.149.32.2, 10.156.33.53


I know that this configuration works because I managed to connect to the internet using these parameters with both my phone and my other server running arch.
But when I try to connect with my ubuntu server, I do successfully connect to the WiFi but i cannot resolve or ping any website.
No problem arises when I try to connect to non-static networks.
I am clueless on how to fix this, any help would be greatly appreciated.



$ ip route
default via 10.149.32.2 dev wlp5s0 proto static metric 600
10.149.32.2 dev wlp5s0 proto static scope link metric 600
10.149.40.0/24 dev wlp5s0 proto kernel scope link src 10.149.40.49 metric 600
169.254.0.0/16 dev wlp5s0 scope link metric 1000









share|improve this question

























  • Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.

    – Elio Monaco
    Feb 19 at 23:58













  • The output of something like ip route might be helpful as well

    – steeldriver
    Feb 20 at 0:08











  • Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.

    – Elio Monaco
    Feb 20 at 0:08











  • @ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.

    – Terrance
    Feb 20 at 0:09













  • @Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04

    – Elio Monaco
    Feb 20 at 0:21


















0















I want to connect to my home wifi, which has a static IP configuration.
I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in neither case I managed to connect to the internet.



The specifics of the configuration are:




  • IP address: 10.149.40.49

  • Netmask: 255.255.255.0

  • Gateway: 10.149.40.1

  • DNS: 10.149.32.2, 10.156.33.53


I know that this configuration works because I managed to connect to the internet using these parameters with both my phone and my other server running arch.
But when I try to connect with my ubuntu server, I do successfully connect to the WiFi but i cannot resolve or ping any website.
No problem arises when I try to connect to non-static networks.
I am clueless on how to fix this, any help would be greatly appreciated.



$ ip route
default via 10.149.32.2 dev wlp5s0 proto static metric 600
10.149.32.2 dev wlp5s0 proto static scope link metric 600
10.149.40.0/24 dev wlp5s0 proto kernel scope link src 10.149.40.49 metric 600
169.254.0.0/16 dev wlp5s0 scope link metric 1000









share|improve this question

























  • Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.

    – Elio Monaco
    Feb 19 at 23:58













  • The output of something like ip route might be helpful as well

    – steeldriver
    Feb 20 at 0:08











  • Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.

    – Elio Monaco
    Feb 20 at 0:08











  • @ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.

    – Terrance
    Feb 20 at 0:09













  • @Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04

    – Elio Monaco
    Feb 20 at 0:21
















0












0








0








I want to connect to my home wifi, which has a static IP configuration.
I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in neither case I managed to connect to the internet.



The specifics of the configuration are:




  • IP address: 10.149.40.49

  • Netmask: 255.255.255.0

  • Gateway: 10.149.40.1

  • DNS: 10.149.32.2, 10.156.33.53


I know that this configuration works because I managed to connect to the internet using these parameters with both my phone and my other server running arch.
But when I try to connect with my ubuntu server, I do successfully connect to the WiFi but i cannot resolve or ping any website.
No problem arises when I try to connect to non-static networks.
I am clueless on how to fix this, any help would be greatly appreciated.



$ ip route
default via 10.149.32.2 dev wlp5s0 proto static metric 600
10.149.32.2 dev wlp5s0 proto static scope link metric 600
10.149.40.0/24 dev wlp5s0 proto kernel scope link src 10.149.40.49 metric 600
169.254.0.0/16 dev wlp5s0 scope link metric 1000









share|improve this question
















I want to connect to my home wifi, which has a static IP configuration.
I Have tried to set up the connection both using the GUI of network manager and by editing the network interface file, but in neither case I managed to connect to the internet.



The specifics of the configuration are:




  • IP address: 10.149.40.49

  • Netmask: 255.255.255.0

  • Gateway: 10.149.40.1

  • DNS: 10.149.32.2, 10.156.33.53


I know that this configuration works because I managed to connect to the internet using these parameters with both my phone and my other server running arch.
But when I try to connect with my ubuntu server, I do successfully connect to the WiFi but i cannot resolve or ping any website.
No problem arises when I try to connect to non-static networks.
I am clueless on how to fix this, any help would be greatly appreciated.



$ ip route
default via 10.149.32.2 dev wlp5s0 proto static metric 600
10.149.32.2 dev wlp5s0 proto static scope link metric 600
10.149.40.0/24 dev wlp5s0 proto kernel scope link src 10.149.40.49 metric 600
169.254.0.0/16 dev wlp5s0 scope link metric 1000






networking network-manager internet static-ip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 20 at 0:30







Elio Monaco

















asked Feb 19 at 23:45









Elio MonacoElio Monaco

12




12













  • Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.

    – Elio Monaco
    Feb 19 at 23:58













  • The output of something like ip route might be helpful as well

    – steeldriver
    Feb 20 at 0:08











  • Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.

    – Elio Monaco
    Feb 20 at 0:08











  • @ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.

    – Terrance
    Feb 20 at 0:09













  • @Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04

    – Elio Monaco
    Feb 20 at 0:21





















  • Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.

    – Elio Monaco
    Feb 19 at 23:58













  • The output of something like ip route might be helpful as well

    – steeldriver
    Feb 20 at 0:08











  • Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.

    – Elio Monaco
    Feb 20 at 0:08











  • @ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.

    – Terrance
    Feb 20 at 0:09













  • @Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04

    – Elio Monaco
    Feb 20 at 0:21



















Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.

– Elio Monaco
Feb 19 at 23:58







Sorry, yes a typo the IP is 10.149.40.49. All the other parameters are correct though. These parameters were given to me, and they always worked so far, so I'm not sure if they are supposed to be different.

– Elio Monaco
Feb 19 at 23:58















The output of something like ip route might be helpful as well

– steeldriver
Feb 20 at 0:08





The output of something like ip route might be helpful as well

– steeldriver
Feb 20 at 0:08













Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.

– Elio Monaco
Feb 20 at 0:08





Yes, I also think that that's the issue, but I can't figure out why. I tried your suggestion, unfortunately it did not work.

– Elio Monaco
Feb 20 at 0:08













@ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.

– Terrance
Feb 20 at 0:09







@ElioMonaco I didn't think it would, unless the gateway is also a DNS server. Edit your question and add what steeldriver above has asked.

– Terrance
Feb 20 at 0:09















@Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04

– Elio Monaco
Feb 20 at 0:21







@Terrance yes, sorry if it's getting confusion, I am nit used in using this forums. The ip route output was incorrect, since i forgot to disconnect the router i am now using to communicate. I added the actual output of the static router. I am using ubuntu 16.04

– Elio Monaco
Feb 20 at 0:21












1 Answer
1






active

oldest

votes


















0














You can try the following (exchange wlp5s0 with your interface name):



Flush your configuration: sudo ip addr flush wlp5s0



Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0



Add a default route via your gateway: sudo ip route add default via 10.149.40.1



Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf




# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
nameserver 10.149.32.2
nameserver 10.156.33.53


All these settings will be lost after reboot.






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%2f1119680%2fwifi-with-static-ip-configuration%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














    You can try the following (exchange wlp5s0 with your interface name):



    Flush your configuration: sudo ip addr flush wlp5s0



    Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0



    Add a default route via your gateway: sudo ip route add default via 10.149.40.1



    Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf




    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 127.0.1.1
    nameserver 10.149.32.2
    nameserver 10.156.33.53


    All these settings will be lost after reboot.






    share|improve this answer




























      0














      You can try the following (exchange wlp5s0 with your interface name):



      Flush your configuration: sudo ip addr flush wlp5s0



      Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0



      Add a default route via your gateway: sudo ip route add default via 10.149.40.1



      Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf




      # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
      # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
      nameserver 127.0.1.1
      nameserver 10.149.32.2
      nameserver 10.156.33.53


      All these settings will be lost after reboot.






      share|improve this answer


























        0












        0








        0







        You can try the following (exchange wlp5s0 with your interface name):



        Flush your configuration: sudo ip addr flush wlp5s0



        Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0



        Add a default route via your gateway: sudo ip route add default via 10.149.40.1



        Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf




        # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
        # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
        nameserver 127.0.1.1
        nameserver 10.149.32.2
        nameserver 10.156.33.53


        All these settings will be lost after reboot.






        share|improve this answer













        You can try the following (exchange wlp5s0 with your interface name):



        Flush your configuration: sudo ip addr flush wlp5s0



        Set your own configuration: sudo ip addr 10.149.40.49/24 broadcast 10.149.40.255 dev wlp5s0



        Add a default route via your gateway: sudo ip route add default via 10.149.40.1



        Add your dns-nameservers to resolv.conf: sudo nano /etc/resolv.conf




        # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
        # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
        nameserver 127.0.1.1
        nameserver 10.149.32.2
        nameserver 10.156.33.53


        All these settings will be lost after reboot.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 20 at 9:37









        AlexOnLinuxAlexOnLinux

        473210




        473210






























            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%2f1119680%2fwifi-with-static-ip-configuration%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?

            Is this a new Fibonacci Identity?

            Touch on Surface Book