How to keep static IP working

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












0















I found this site: click
First I tried to use the non-permanent way via "ip address add". But the static address I assigned would not be accessible anymore after a minute or so, and this is repeatable.
So I tried the permanent approach described there for Ubuntu. I am running "Ubuntu 14.04.5 LTS", albeit a probably somewhat modified, cut-down version on a Tegra TK1 board, running a NVIDIA L4T kernel derivate.



So in /etc/network/interfaces, which before interestingly only contained 2 comment lines



# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:


and nothing else, I added:



auto eth1:1
iface eth1:1 inet static
address 10.0.10.55
netmask 255.255.0.0


(the system has only a eth1, no eth0)



Well, reboot and... there is no such IP address shown in ifconfig and I can't access it.
It lists, however, for eth1:



inet6 addr: fe80::214:2dff:fe2f:c150/64 Scope:Link


What might be wrong? (I didn't ask for a ipv6 address, where would come from now?)










share|improve this question




























    0















    I found this site: click
    First I tried to use the non-permanent way via "ip address add". But the static address I assigned would not be accessible anymore after a minute or so, and this is repeatable.
    So I tried the permanent approach described there for Ubuntu. I am running "Ubuntu 14.04.5 LTS", albeit a probably somewhat modified, cut-down version on a Tegra TK1 board, running a NVIDIA L4T kernel derivate.



    So in /etc/network/interfaces, which before interestingly only contained 2 comment lines



    # interfaces(5) file used by ifup(8) and ifdown(8)
    # Include files from /etc/network/interfaces.d:


    and nothing else, I added:



    auto eth1:1
    iface eth1:1 inet static
    address 10.0.10.55
    netmask 255.255.0.0


    (the system has only a eth1, no eth0)



    Well, reboot and... there is no such IP address shown in ifconfig and I can't access it.
    It lists, however, for eth1:



    inet6 addr: fe80::214:2dff:fe2f:c150/64 Scope:Link


    What might be wrong? (I didn't ask for a ipv6 address, where would come from now?)










    share|improve this question


























      0












      0








      0








      I found this site: click
      First I tried to use the non-permanent way via "ip address add". But the static address I assigned would not be accessible anymore after a minute or so, and this is repeatable.
      So I tried the permanent approach described there for Ubuntu. I am running "Ubuntu 14.04.5 LTS", albeit a probably somewhat modified, cut-down version on a Tegra TK1 board, running a NVIDIA L4T kernel derivate.



      So in /etc/network/interfaces, which before interestingly only contained 2 comment lines



      # interfaces(5) file used by ifup(8) and ifdown(8)
      # Include files from /etc/network/interfaces.d:


      and nothing else, I added:



      auto eth1:1
      iface eth1:1 inet static
      address 10.0.10.55
      netmask 255.255.0.0


      (the system has only a eth1, no eth0)



      Well, reboot and... there is no such IP address shown in ifconfig and I can't access it.
      It lists, however, for eth1:



      inet6 addr: fe80::214:2dff:fe2f:c150/64 Scope:Link


      What might be wrong? (I didn't ask for a ipv6 address, where would come from now?)










      share|improve this question
















      I found this site: click
      First I tried to use the non-permanent way via "ip address add". But the static address I assigned would not be accessible anymore after a minute or so, and this is repeatable.
      So I tried the permanent approach described there for Ubuntu. I am running "Ubuntu 14.04.5 LTS", albeit a probably somewhat modified, cut-down version on a Tegra TK1 board, running a NVIDIA L4T kernel derivate.



      So in /etc/network/interfaces, which before interestingly only contained 2 comment lines



      # interfaces(5) file used by ifup(8) and ifdown(8)
      # Include files from /etc/network/interfaces.d:


      and nothing else, I added:



      auto eth1:1
      iface eth1:1 inet static
      address 10.0.10.55
      netmask 255.255.0.0


      (the system has only a eth1, no eth0)



      Well, reboot and... there is no such IP address shown in ifconfig and I can't access it.
      It lists, however, for eth1:



      inet6 addr: fe80::214:2dff:fe2f:c150/64 Scope:Link


      What might be wrong? (I didn't ask for a ipv6 address, where would come from now?)







      networking






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 23 at 13:03







      sktpin

















      asked Jan 23 at 12:43









      sktpinsktpin

      205




      205




















          1 Answer
          1






          active

          oldest

          votes


















          1














          That guide is for adding a second IP address to an existing NIC that is already in use.



          As you are just trying to set a primary static IP address, put this into /etc/network/interfaces:



          auto eth1
          iface eth1 inet static
          address 10.0.10.55
          gateway <your gateway>
          netmask 255.255.0.0
          broadcast <your broadcast>


          You can also add:



          dns nameservers <your dns nameservers>


          if it's not defined in /etc/resolv.conf.



          Be sure to restart your networking or NetworkManager service or reboot afterwards.






          share|improve this answer

























          • eth1 in my case, but that works, thanks

            – sktpin
            Jan 23 at 13:37












          • @sktpin Updated to reflect eth1. You are welcome.

            – Nasir Riley
            Jan 23 at 13:56










          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f496203%2fhow-to-keep-static-ip-working%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









          1














          That guide is for adding a second IP address to an existing NIC that is already in use.



          As you are just trying to set a primary static IP address, put this into /etc/network/interfaces:



          auto eth1
          iface eth1 inet static
          address 10.0.10.55
          gateway <your gateway>
          netmask 255.255.0.0
          broadcast <your broadcast>


          You can also add:



          dns nameservers <your dns nameservers>


          if it's not defined in /etc/resolv.conf.



          Be sure to restart your networking or NetworkManager service or reboot afterwards.






          share|improve this answer

























          • eth1 in my case, but that works, thanks

            – sktpin
            Jan 23 at 13:37












          • @sktpin Updated to reflect eth1. You are welcome.

            – Nasir Riley
            Jan 23 at 13:56















          1














          That guide is for adding a second IP address to an existing NIC that is already in use.



          As you are just trying to set a primary static IP address, put this into /etc/network/interfaces:



          auto eth1
          iface eth1 inet static
          address 10.0.10.55
          gateway <your gateway>
          netmask 255.255.0.0
          broadcast <your broadcast>


          You can also add:



          dns nameservers <your dns nameservers>


          if it's not defined in /etc/resolv.conf.



          Be sure to restart your networking or NetworkManager service or reboot afterwards.






          share|improve this answer

























          • eth1 in my case, but that works, thanks

            – sktpin
            Jan 23 at 13:37












          • @sktpin Updated to reflect eth1. You are welcome.

            – Nasir Riley
            Jan 23 at 13:56













          1












          1








          1







          That guide is for adding a second IP address to an existing NIC that is already in use.



          As you are just trying to set a primary static IP address, put this into /etc/network/interfaces:



          auto eth1
          iface eth1 inet static
          address 10.0.10.55
          gateway <your gateway>
          netmask 255.255.0.0
          broadcast <your broadcast>


          You can also add:



          dns nameservers <your dns nameservers>


          if it's not defined in /etc/resolv.conf.



          Be sure to restart your networking or NetworkManager service or reboot afterwards.






          share|improve this answer















          That guide is for adding a second IP address to an existing NIC that is already in use.



          As you are just trying to set a primary static IP address, put this into /etc/network/interfaces:



          auto eth1
          iface eth1 inet static
          address 10.0.10.55
          gateway <your gateway>
          netmask 255.255.0.0
          broadcast <your broadcast>


          You can also add:



          dns nameservers <your dns nameservers>


          if it's not defined in /etc/resolv.conf.



          Be sure to restart your networking or NetworkManager service or reboot afterwards.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 23 at 13:52

























          answered Jan 23 at 12:58









          Nasir RileyNasir Riley

          2,654249




          2,654249












          • eth1 in my case, but that works, thanks

            – sktpin
            Jan 23 at 13:37












          • @sktpin Updated to reflect eth1. You are welcome.

            – Nasir Riley
            Jan 23 at 13:56

















          • eth1 in my case, but that works, thanks

            – sktpin
            Jan 23 at 13:37












          • @sktpin Updated to reflect eth1. You are welcome.

            – Nasir Riley
            Jan 23 at 13:56
















          eth1 in my case, but that works, thanks

          – sktpin
          Jan 23 at 13:37






          eth1 in my case, but that works, thanks

          – sktpin
          Jan 23 at 13:37














          @sktpin Updated to reflect eth1. You are welcome.

          – Nasir Riley
          Jan 23 at 13:56





          @sktpin Updated to reflect eth1. You are welcome.

          – Nasir Riley
          Jan 23 at 13:56

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f496203%2fhow-to-keep-static-ip-working%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 check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay