Ubuntu and Static IP Address












1















I'm trying to figure out how I can assign a static IP address to my default ethernet adapter eth0 - all attempts so far have been fruitless and ended up in frustration.



I am running Ubuntu 14.04.5 LTS on an NVIDIA Jetson TK1 ARM platform.



Ideally, I want the interface eth0 to assume an IP address such as 192.168.0.xxx as per our company network scheme.



Using network-manager, I've tried (and failed) to manually assign an IP address. However, checking with ifconfig reports an altogether different IP which appears to be DHCP assigned (the IP address changes very regularly).



I have tried un-installing network manager and using the /etc/network/interfaces file to statically assign an address to eth0 however following this, I get a lot of RTNETLINK answers: Network is unreachable errors and no IP ever appears to be assigned to eth0.



Why does network-manager not seem to work in this instance? I have a vino VNC server running on my Ubuntu TK1 platform and the only IP address which allows me to connect is the DHCP address allocated away from network-manager



Confused!



UPDATE



After re-visiting this, I'm no closer to figuring out what is going on.



What I have tried since the original message was posted:




  1. Disabled network-manager

  2. Assigned an IP address on a different subnet to our company network so that the DHCP server cannot allocate it an IP address

  3. Set up a static IP address in /etc/network/interfaces with the following information


>



auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0


When I take the eth0 interface down and back up again, I see this static IP address assigned correctly. After a while, however, a lot of RTNETLINK answers: Network is unreachable messages appear and the IP address disappears from eth0










share|improve this question




















  • 1





    see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references

    – Rinzwind
    Jul 19 '17 at 9:47






  • 2





    What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.

    – CatMan
    Jul 19 '17 at 10:11






  • 1





    Please edit your question to add the result of these terminal commands: ifconfig and also: cat /etc/network/interfaces

    – chili555
    Jul 19 '17 at 12:03











  • And also have you run service networkmanager stop or rebooted?

    – jeroen
    Jul 19 '17 at 15:55











  • I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly

    – weblar83
    Aug 3 '17 at 14:56
















1















I'm trying to figure out how I can assign a static IP address to my default ethernet adapter eth0 - all attempts so far have been fruitless and ended up in frustration.



I am running Ubuntu 14.04.5 LTS on an NVIDIA Jetson TK1 ARM platform.



Ideally, I want the interface eth0 to assume an IP address such as 192.168.0.xxx as per our company network scheme.



Using network-manager, I've tried (and failed) to manually assign an IP address. However, checking with ifconfig reports an altogether different IP which appears to be DHCP assigned (the IP address changes very regularly).



I have tried un-installing network manager and using the /etc/network/interfaces file to statically assign an address to eth0 however following this, I get a lot of RTNETLINK answers: Network is unreachable errors and no IP ever appears to be assigned to eth0.



Why does network-manager not seem to work in this instance? I have a vino VNC server running on my Ubuntu TK1 platform and the only IP address which allows me to connect is the DHCP address allocated away from network-manager



Confused!



UPDATE



After re-visiting this, I'm no closer to figuring out what is going on.



What I have tried since the original message was posted:




  1. Disabled network-manager

  2. Assigned an IP address on a different subnet to our company network so that the DHCP server cannot allocate it an IP address

  3. Set up a static IP address in /etc/network/interfaces with the following information


>



auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0


When I take the eth0 interface down and back up again, I see this static IP address assigned correctly. After a while, however, a lot of RTNETLINK answers: Network is unreachable messages appear and the IP address disappears from eth0










share|improve this question




















  • 1





    see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references

    – Rinzwind
    Jul 19 '17 at 9:47






  • 2





    What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.

    – CatMan
    Jul 19 '17 at 10:11






  • 1





    Please edit your question to add the result of these terminal commands: ifconfig and also: cat /etc/network/interfaces

    – chili555
    Jul 19 '17 at 12:03











  • And also have you run service networkmanager stop or rebooted?

    – jeroen
    Jul 19 '17 at 15:55











  • I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly

    – weblar83
    Aug 3 '17 at 14:56














1












1








1








I'm trying to figure out how I can assign a static IP address to my default ethernet adapter eth0 - all attempts so far have been fruitless and ended up in frustration.



I am running Ubuntu 14.04.5 LTS on an NVIDIA Jetson TK1 ARM platform.



Ideally, I want the interface eth0 to assume an IP address such as 192.168.0.xxx as per our company network scheme.



Using network-manager, I've tried (and failed) to manually assign an IP address. However, checking with ifconfig reports an altogether different IP which appears to be DHCP assigned (the IP address changes very regularly).



I have tried un-installing network manager and using the /etc/network/interfaces file to statically assign an address to eth0 however following this, I get a lot of RTNETLINK answers: Network is unreachable errors and no IP ever appears to be assigned to eth0.



Why does network-manager not seem to work in this instance? I have a vino VNC server running on my Ubuntu TK1 platform and the only IP address which allows me to connect is the DHCP address allocated away from network-manager



Confused!



UPDATE



After re-visiting this, I'm no closer to figuring out what is going on.



What I have tried since the original message was posted:




  1. Disabled network-manager

  2. Assigned an IP address on a different subnet to our company network so that the DHCP server cannot allocate it an IP address

  3. Set up a static IP address in /etc/network/interfaces with the following information


>



auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0


When I take the eth0 interface down and back up again, I see this static IP address assigned correctly. After a while, however, a lot of RTNETLINK answers: Network is unreachable messages appear and the IP address disappears from eth0










share|improve this question
















I'm trying to figure out how I can assign a static IP address to my default ethernet adapter eth0 - all attempts so far have been fruitless and ended up in frustration.



I am running Ubuntu 14.04.5 LTS on an NVIDIA Jetson TK1 ARM platform.



Ideally, I want the interface eth0 to assume an IP address such as 192.168.0.xxx as per our company network scheme.



Using network-manager, I've tried (and failed) to manually assign an IP address. However, checking with ifconfig reports an altogether different IP which appears to be DHCP assigned (the IP address changes very regularly).



I have tried un-installing network manager and using the /etc/network/interfaces file to statically assign an address to eth0 however following this, I get a lot of RTNETLINK answers: Network is unreachable errors and no IP ever appears to be assigned to eth0.



Why does network-manager not seem to work in this instance? I have a vino VNC server running on my Ubuntu TK1 platform and the only IP address which allows me to connect is the DHCP address allocated away from network-manager



Confused!



UPDATE



After re-visiting this, I'm no closer to figuring out what is going on.



What I have tried since the original message was posted:




  1. Disabled network-manager

  2. Assigned an IP address on a different subnet to our company network so that the DHCP server cannot allocate it an IP address

  3. Set up a static IP address in /etc/network/interfaces with the following information


>



auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0


When I take the eth0 interface down and back up again, I see this static IP address assigned correctly. After a while, however, a lot of RTNETLINK answers: Network is unreachable messages appear and the IP address disappears from eth0







network-manager ethernet dhcp ifconfig






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 3 '17 at 14:52







weblar83

















asked Jul 19 '17 at 9:37









weblar83weblar83

112




112








  • 1





    see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references

    – Rinzwind
    Jul 19 '17 at 9:47






  • 2





    What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.

    – CatMan
    Jul 19 '17 at 10:11






  • 1





    Please edit your question to add the result of these terminal commands: ifconfig and also: cat /etc/network/interfaces

    – chili555
    Jul 19 '17 at 12:03











  • And also have you run service networkmanager stop or rebooted?

    – jeroen
    Jul 19 '17 at 15:55











  • I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly

    – weblar83
    Aug 3 '17 at 14:56














  • 1





    see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references

    – Rinzwind
    Jul 19 '17 at 9:47






  • 2





    What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.

    – CatMan
    Jul 19 '17 at 10:11






  • 1





    Please edit your question to add the result of these terminal commands: ifconfig and also: cat /etc/network/interfaces

    – chili555
    Jul 19 '17 at 12:03











  • And also have you run service networkmanager stop or rebooted?

    – jeroen
    Jul 19 '17 at 15:55











  • I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly

    – weblar83
    Aug 3 '17 at 14:56








1




1





see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references

– Rinzwind
Jul 19 '17 at 9:47





see askubuntu.com/questions/452317/… and wiki.debian.org/NetworkManager for references

– Rinzwind
Jul 19 '17 at 9:47




2




2





What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.

– CatMan
Jul 19 '17 at 10:11





What you write seems strange indeed. I am running 16.04 where they went away from eth0 naming convention, but I do not know about 14.04. Anyway you might want to consider to add some more data to your question as ifconfig and error message printouts, interface file content or even a screenshot of your network manager configuration page.

– CatMan
Jul 19 '17 at 10:11




1




1





Please edit your question to add the result of these terminal commands: ifconfig and also: cat /etc/network/interfaces

– chili555
Jul 19 '17 at 12:03





Please edit your question to add the result of these terminal commands: ifconfig and also: cat /etc/network/interfaces

– chili555
Jul 19 '17 at 12:03













And also have you run service networkmanager stop or rebooted?

– jeroen
Jul 19 '17 at 15:55





And also have you run service networkmanager stop or rebooted?

– jeroen
Jul 19 '17 at 15:55













I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly

– weblar83
Aug 3 '17 at 14:56





I've updated the original question with some further information. I just don't understand why static IP allocation suddenly stops. Its really difficult to capture any terminal output due to the RTNETLINK messages appearing constantly

– weblar83
Aug 3 '17 at 14:56










1 Answer
1






active

oldest

votes


















0














setting up a static IP address can be done through the GUI in Ubuntu 18.04.




  • Click your connection in top right menu bar.

  • Click your connection and click wired/wi-fi settings

  • Click the settings icon on the Wired/ Visible Networks section.

  • In addresses:


    • for address, you will need to enter the static IP address of your choice (eg. 192.168.0.3).

    • set netmask to 255.255.255.0.

    • set gateway to the IP address of your network gateway (most likely 192.168.0.1, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).



  • In DNS section, set this to your target devices current IP address (192.168.0.x), also can be found by navigating to your external IP.

  • Next to DNS section, set the Automatic switch to off.

  • Click Apply.

  • Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (192.168.0.3) you set.





share























    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%2f937639%2fubuntu-and-static-ip-address%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














    setting up a static IP address can be done through the GUI in Ubuntu 18.04.




    • Click your connection in top right menu bar.

    • Click your connection and click wired/wi-fi settings

    • Click the settings icon on the Wired/ Visible Networks section.

    • In addresses:


      • for address, you will need to enter the static IP address of your choice (eg. 192.168.0.3).

      • set netmask to 255.255.255.0.

      • set gateway to the IP address of your network gateway (most likely 192.168.0.1, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).



    • In DNS section, set this to your target devices current IP address (192.168.0.x), also can be found by navigating to your external IP.

    • Next to DNS section, set the Automatic switch to off.

    • Click Apply.

    • Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (192.168.0.3) you set.





    share




























      0














      setting up a static IP address can be done through the GUI in Ubuntu 18.04.




      • Click your connection in top right menu bar.

      • Click your connection and click wired/wi-fi settings

      • Click the settings icon on the Wired/ Visible Networks section.

      • In addresses:


        • for address, you will need to enter the static IP address of your choice (eg. 192.168.0.3).

        • set netmask to 255.255.255.0.

        • set gateway to the IP address of your network gateway (most likely 192.168.0.1, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).



      • In DNS section, set this to your target devices current IP address (192.168.0.x), also can be found by navigating to your external IP.

      • Next to DNS section, set the Automatic switch to off.

      • Click Apply.

      • Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (192.168.0.3) you set.





      share


























        0












        0








        0







        setting up a static IP address can be done through the GUI in Ubuntu 18.04.




        • Click your connection in top right menu bar.

        • Click your connection and click wired/wi-fi settings

        • Click the settings icon on the Wired/ Visible Networks section.

        • In addresses:


          • for address, you will need to enter the static IP address of your choice (eg. 192.168.0.3).

          • set netmask to 255.255.255.0.

          • set gateway to the IP address of your network gateway (most likely 192.168.0.1, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).



        • In DNS section, set this to your target devices current IP address (192.168.0.x), also can be found by navigating to your external IP.

        • Next to DNS section, set the Automatic switch to off.

        • Click Apply.

        • Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (192.168.0.3) you set.





        share













        setting up a static IP address can be done through the GUI in Ubuntu 18.04.




        • Click your connection in top right menu bar.

        • Click your connection and click wired/wi-fi settings

        • Click the settings icon on the Wired/ Visible Networks section.

        • In addresses:


          • for address, you will need to enter the static IP address of your choice (eg. 192.168.0.3).

          • set netmask to 255.255.255.0.

          • set gateway to the IP address of your network gateway (most likely 192.168.0.1, which can be found on your gateway page, navigate to your forward-facing IP (whatsmyip) to get to this page).



        • In DNS section, set this to your target devices current IP address (192.168.0.x), also can be found by navigating to your external IP.

        • Next to DNS section, set the Automatic switch to off.

        • Click Apply.

        • Disconnect internet, connect again and navigate to gateway settings, your device should now have adopted the static IP (192.168.0.3) you set.






        share











        share


        share










        answered 2 mins ago









        jackw11111jackw11111

        453112




        453112






























            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%2f937639%2fubuntu-and-static-ip-address%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

            GameSpot

            日野市

            Tu-95轟炸機