Where have I set a static IP in Raspbian (Stretch)?

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











up vote
0
down vote

favorite












There are so many conflicting guides on how to set a static IP in Raspbian that I don't know which I've followed, and now I'd like to change it.



How can I figure out which I've used?







share|improve this question


























    up vote
    0
    down vote

    favorite












    There are so many conflicting guides on how to set a static IP in Raspbian that I don't know which I've followed, and now I'd like to change it.



    How can I figure out which I've used?







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      There are so many conflicting guides on how to set a static IP in Raspbian that I don't know which I've followed, and now I'd like to change it.



      How can I figure out which I've used?







      share|improve this question














      There are so many conflicting guides on how to set a static IP in Raspbian that I don't know which I've followed, and now I'd like to change it.



      How can I figure out which I've used?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 2 at 15:09

























      asked Jan 31 at 23:19









      jezmck

      1085




      1085




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          You look into all the places mentioned in those conflicting guides you've read, and see if you have followed the instructions in that guide or not.



          For example, if Guide A tells you to add the settings to the /etc/network/interfaces file, view the file and see whether the existing settings are there or not.



          If Guide B tells you to configure a static IP using NetworkManager (using nmcli, nmtui or any number of GUI tools), then open the respective tool and see if the current network settings are visible/editable in there. If the network interface you're planning to change is not listed in that tool or is shown as "unmanaged", then it's not currently in control of NetworkManager and you can skip all NetworkManager-related tools and guides (assuming you can recognize them as such; reading the documentation of the tool should help there).



          If Guide C tells you to write a file with the name of your choosing with a .link suffix to /etc/systemd/network directory, then you should view all the files in that directory and see if the current IP address settings are in there.



          If you run out of ideas, you can always run a recursive grep command over the entire /etc/ directory sub-tree and see which files, if any, contain the current IP address.



          grep -r 1.2.3.4 /etc


          Once you know the pathnames of all the files containing your current IP address, it should be easier to google for any instructions mentioning the file, or the directory containing that file (in case the configuration scheme allows you to choose the filename yourself, as long as the file is in a particular directory).






          share|improve this answer




















          • Thank you. The grep part is the kind of thing I was hoping would be suggested.
            – jezmck
            Feb 2 at 15:10










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f421109%2fwhere-have-i-set-a-static-ip-in-raspbian-stretch%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          You look into all the places mentioned in those conflicting guides you've read, and see if you have followed the instructions in that guide or not.



          For example, if Guide A tells you to add the settings to the /etc/network/interfaces file, view the file and see whether the existing settings are there or not.



          If Guide B tells you to configure a static IP using NetworkManager (using nmcli, nmtui or any number of GUI tools), then open the respective tool and see if the current network settings are visible/editable in there. If the network interface you're planning to change is not listed in that tool or is shown as "unmanaged", then it's not currently in control of NetworkManager and you can skip all NetworkManager-related tools and guides (assuming you can recognize them as such; reading the documentation of the tool should help there).



          If Guide C tells you to write a file with the name of your choosing with a .link suffix to /etc/systemd/network directory, then you should view all the files in that directory and see if the current IP address settings are in there.



          If you run out of ideas, you can always run a recursive grep command over the entire /etc/ directory sub-tree and see which files, if any, contain the current IP address.



          grep -r 1.2.3.4 /etc


          Once you know the pathnames of all the files containing your current IP address, it should be easier to google for any instructions mentioning the file, or the directory containing that file (in case the configuration scheme allows you to choose the filename yourself, as long as the file is in a particular directory).






          share|improve this answer




















          • Thank you. The grep part is the kind of thing I was hoping would be suggested.
            – jezmck
            Feb 2 at 15:10














          up vote
          1
          down vote



          accepted










          You look into all the places mentioned in those conflicting guides you've read, and see if you have followed the instructions in that guide or not.



          For example, if Guide A tells you to add the settings to the /etc/network/interfaces file, view the file and see whether the existing settings are there or not.



          If Guide B tells you to configure a static IP using NetworkManager (using nmcli, nmtui or any number of GUI tools), then open the respective tool and see if the current network settings are visible/editable in there. If the network interface you're planning to change is not listed in that tool or is shown as "unmanaged", then it's not currently in control of NetworkManager and you can skip all NetworkManager-related tools and guides (assuming you can recognize them as such; reading the documentation of the tool should help there).



          If Guide C tells you to write a file with the name of your choosing with a .link suffix to /etc/systemd/network directory, then you should view all the files in that directory and see if the current IP address settings are in there.



          If you run out of ideas, you can always run a recursive grep command over the entire /etc/ directory sub-tree and see which files, if any, contain the current IP address.



          grep -r 1.2.3.4 /etc


          Once you know the pathnames of all the files containing your current IP address, it should be easier to google for any instructions mentioning the file, or the directory containing that file (in case the configuration scheme allows you to choose the filename yourself, as long as the file is in a particular directory).






          share|improve this answer




















          • Thank you. The grep part is the kind of thing I was hoping would be suggested.
            – jezmck
            Feb 2 at 15:10












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          You look into all the places mentioned in those conflicting guides you've read, and see if you have followed the instructions in that guide or not.



          For example, if Guide A tells you to add the settings to the /etc/network/interfaces file, view the file and see whether the existing settings are there or not.



          If Guide B tells you to configure a static IP using NetworkManager (using nmcli, nmtui or any number of GUI tools), then open the respective tool and see if the current network settings are visible/editable in there. If the network interface you're planning to change is not listed in that tool or is shown as "unmanaged", then it's not currently in control of NetworkManager and you can skip all NetworkManager-related tools and guides (assuming you can recognize them as such; reading the documentation of the tool should help there).



          If Guide C tells you to write a file with the name of your choosing with a .link suffix to /etc/systemd/network directory, then you should view all the files in that directory and see if the current IP address settings are in there.



          If you run out of ideas, you can always run a recursive grep command over the entire /etc/ directory sub-tree and see which files, if any, contain the current IP address.



          grep -r 1.2.3.4 /etc


          Once you know the pathnames of all the files containing your current IP address, it should be easier to google for any instructions mentioning the file, or the directory containing that file (in case the configuration scheme allows you to choose the filename yourself, as long as the file is in a particular directory).






          share|improve this answer












          You look into all the places mentioned in those conflicting guides you've read, and see if you have followed the instructions in that guide or not.



          For example, if Guide A tells you to add the settings to the /etc/network/interfaces file, view the file and see whether the existing settings are there or not.



          If Guide B tells you to configure a static IP using NetworkManager (using nmcli, nmtui or any number of GUI tools), then open the respective tool and see if the current network settings are visible/editable in there. If the network interface you're planning to change is not listed in that tool or is shown as "unmanaged", then it's not currently in control of NetworkManager and you can skip all NetworkManager-related tools and guides (assuming you can recognize them as such; reading the documentation of the tool should help there).



          If Guide C tells you to write a file with the name of your choosing with a .link suffix to /etc/systemd/network directory, then you should view all the files in that directory and see if the current IP address settings are in there.



          If you run out of ideas, you can always run a recursive grep command over the entire /etc/ directory sub-tree and see which files, if any, contain the current IP address.



          grep -r 1.2.3.4 /etc


          Once you know the pathnames of all the files containing your current IP address, it should be easier to google for any instructions mentioning the file, or the directory containing that file (in case the configuration scheme allows you to choose the filename yourself, as long as the file is in a particular directory).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 1 at 23:08









          telcoM

          10.8k11132




          10.8k11132











          • Thank you. The grep part is the kind of thing I was hoping would be suggested.
            – jezmck
            Feb 2 at 15:10
















          • Thank you. The grep part is the kind of thing I was hoping would be suggested.
            – jezmck
            Feb 2 at 15:10















          Thank you. The grep part is the kind of thing I was hoping would be suggested.
          – jezmck
          Feb 2 at 15:10




          Thank you. The grep part is the kind of thing I was hoping would be suggested.
          – jezmck
          Feb 2 at 15:10












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421109%2fwhere-have-i-set-a-static-ip-in-raspbian-stretch%23new-answer', 'question_page');

          );

          Post as a guest













































































          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