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

    MAC and Static IP on Duet WiFi

    Scheduled Pinned Locked Moved
    General Discussion
    3
    8
    1.9k
    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.
    • mhackneyundefined
      mhackney
      last edited by mhackney

      My network is out of control with 40+ devices. I am going through and systematically assigning static IPs to known devices to help keep things organized and working. Now I'm working on my Duet WiFi powered printers (8 of them) all running the latest firmware.

      I've read the Wiki, the g-code Wiki, and searched lots of posts here. I am using one printer to work through how to set this up to keep it easy. This printer is connected via USB to Pronterface so I can easily check and set things. No matter what I do, the static IP address is not sticking. So I attempted to configure my FIOS router to dole out a static IP to the WiFi. It requires the MAC address of the device - fair enough. I've set the MAC address in config.g as:

      M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0x01 ; MAC Address

      Even after rebooting the Duet, clearing network WiFi host networks with M588 S"*" and starting over from scratch, I:

      1. can't get the static IP to stick (using M587 S"ssid" I"my static IP" P"network password"
      2. the MAC address displayed on my FIOS router is nothing like the MAC I've assigned to the Duet with M540!

      I've gone through this configuration multiple times and can't sort it out. Help greatly appreciated! Sleepless in Boston.

      Michael

      My 3D Printing blog: http://www.sublimelayers.com
      Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

      1 Reply Last reply Reply Quote 0
      • Dougal1957undefined
        Dougal1957
        last edited by

        Michael AFAIK you can't set the mac address with M540 on the WiFi's they use the mac that is encoded in the WIFI Module also I have never had any issue with the M587 to do it either mind I have always done it with an empty wifi list so may be worth clearing it out on one and then setting the M587.

        Just a stab but it may just help.

        Doug

        1 Reply Last reply Reply Quote 0
        • mhackneyundefined
          mhackney
          last edited by

          Thanks. I just did a test and used the MAC I see in my router to config a static IP on the router. That actually worked!

          I had cleared the wifi list as mentioned in my first post. I've tried multiple times! I might remove the M540 from my config and test. But at least I can use my router to assign the static IPs I want.

          Thanks!

          My 3D Printing blog: http://www.sublimelayers.com
          Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

          Dougal1957undefined 1 Reply Last reply Reply Quote 0
          • Dougal1957undefined
            Dougal1957 @mhackney
            last edited by

            @mhackney you sure you used M558 S"" to clear the list cos it should be M588 S"" i would then do a M587 to make sure the list was empty but I do know some Routers can be finicky. The M540 by the way goes back to the series 1 duets and the Ethernet version of the Series2.

            1 Reply Last reply Reply Quote 0
            • mhackneyundefined
              mhackney
              last edited by

              Yes, I used M588 S"*" - I caught the error in your other thread and verified with the g-code wiki. I accidentally typed that above, I'll edit it to reflect.

              My 3D Printing blog: http://www.sublimelayers.com
              Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

              1 Reply Last reply Reply Quote 0
              • mhackneyundefined
                mhackney
                last edited by

                I finally got static ips but not by configuring Duet. I had to set it up on my router using the MAC addresses for my printers. It also required multiple router re-boots to clear out the cruft. I'm not sure why the M587 I"ipaddr" isn't working though. That would be more convenient.

                My 3D Printing blog: http://www.sublimelayers.com
                Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                1 Reply Last reply Reply Quote 0
                • Dougal1957undefined
                  Dougal1957
                  last edited by

                  The IP does not want to be inside quotes maybe thats the reason

                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators
                    last edited by dc42

                    You have to give the IP address in the same M587 command that you give the SSID and password. This is because you will very likely need to use different IP addresses on different wireless networks.

                    M587 will list all the known SSIDs and the IP addresses that it uses when it connects to them, or all zeros to mean use DHCP.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

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