Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Pi with static ip address is unable to update

    Scheduled Pinned Locked Moved
    General Discussion
    3
    9
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • luckyflyerundefined
      luckyflyer
      last edited by

      I've changed my Duet pi to a static ip address and now when I do,

      sudo apt-get update
      

      I get

      pi@duet3:~ $ sudo apt-get update
      Err:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
        Temporary failure resolving 'raspbian.raspberrypi.org'
      Err:2 https://pkg.duet3d.com unstable InRelease
        Temporary failure resolving 'pkg.duet3d.com'
      Err:3 http://archive.raspberrypi.org/debian buster InRelease
        Temporary failure resolving 'archive.raspberrypi.org'
      Err:4 https://pkg.duet3d.com stable InRelease
        Temporary failure resolving 'pkg.duet3d.com'
      Reading package lists... Done
      W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelea                                                                                                             se  Temporary failure resolving 'raspbian.raspberrypi.org'
      W: Failed to fetch https://pkg.duet3d.com/dists/unstable/InRelease  Temporary fa                                                                                                             ilure resolving 'pkg.duet3d.com'
      W: Failed to fetch https://pkg.duet3d.com/dists/stable/InRelease  Temporary fail                                                                                                             ure resolving 'pkg.duet3d.com'
      W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease                                                                                                               Temporary failure resolving 'archive.raspberrypi.org'
      W: Some index files failed to download. They have been ignored, or old ones used                                                                                                              instead.
      

      I can go back to a dynamic address and update works. Anyone else experience this?

      A Former User? 1 Reply Last reply Reply Quote 0
      • jens55undefined
        jens55
        last edited by

        You just lost all internet connectivity ... not a duet or even a pi issue but rather an issue with your router.
        Are you using your router to assign a static IP address? does the router and the pi talk? Can you ping the router from the pi ? Many questions .....

        1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User @luckyflyer
          last edited by

          @luckyflyer said in Pi with static ip address is unable to update:

          I can go back to a dynamic address and update works. Anyone else experience this?

          how did you set your static ip? and did you include a dns server in the setup?

          1 Reply Last reply Reply Quote 0
          • luckyflyerundefined
            luckyflyer
            last edited by

            I used an online tutorial here
            https://pimylifeup.com/raspberry-pi-static-ip-address/
            This is the data that I entered,

            interface eth0
            static ip_address=192.168.0.180
            interface wlan0
            static ip_address=192.168.0.181
            static routers=192.168.1.1
            static domain_name_servers=192.168.1.1

            My pc can communicate with duet pi but Duet pi web browser doesn't seem to be able to get on the internet.

            1 Reply Last reply Reply Quote 0
            • luckyflyerundefined
              luckyflyer
              last edited by

              I think I may have entered the wrong dns server. My router says this,
              Primary DNS Server : 192.168.254.254
              I'll try that.

              A Former User? 1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User @luckyflyer
                last edited by

                @luckyflyer most consumer routers provide gateway and dns server on the same address.

                its also a bit odd that you have your IP addresses in 192.168.0.0 and the router in 192.168.1.0, but if the netmask is not /24 it makes a little more sense (except 192.168. range is meant for class C so still a bit odd.

                simplest is probably to run ipconfig /all on your windows computer and use the detfaut gateway and dns server from there if you didn't solve it already.

                1 Reply Last reply Reply Quote 0
                • luckyflyerundefined
                  luckyflyer
                  last edited by luckyflyer

                  I ran IPconfig/all and had a 1 digit dns error,192.168.1.1 should be 192.168.0.1. Corrected it and now works.
                  Thanks again

                  1 Reply Last reply Reply Quote 0
                  • A Former User?
                    A Former User
                    last edited by

                    presumably same for the routers address?

                    1 Reply Last reply Reply Quote 0
                    • luckyflyerundefined
                      luckyflyer
                      last edited by luckyflyer

                      Yes it is, was a typo.
                      Can you take a look at last couple of posts in need help installing ustreamer and advise?

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA