Multiple IP addresses?

Howdy, folks. Just getting started with my Sovol and with 3D printing generally. I’m getting ready to run some test prints but something I noticed is that my printer, connected to WiFi, has 2(!) IP addresses. I noticed this because my gateway hosts DHCP and registers the hostnames from the DHCP requests in the local/internal DNZ zones and I have two IP addresses for the same hostname. Hitting each of the IP addresses ends up at the Mainsail interface.

The only reason I can think why this might be is one IP address is intended for use by Mainsail and the other address is intended for use by API endpoint? That’s Moonraker, correct?

Thoughts?

Edit: I am not using the Ethernet adapter on the back of the unit. I wish I had physical cabling to the printer! but I’m only using WiFi for now.

SSH into your printer and run nmcli device show

Another thing you might want to do. While your mucking around with your gateway assign the MAC address of your printer a static IP. Don’t know if that would solve the double IP issue but it stops having to hunt for your printer when DHCP changes IP on reconnect.

The wlan0 device definitely has multiple IP addresses, 118 and 119, listed with nmcli device show. When I try to remove them with nmcli or ip commands it puts them back after the interface is bounced. Very odd. Interestingly, the DHCP leases have the same MAC address and lease initiation times approx 2 seconds apart.

I’ll first purge the existing DHCP leases and then I’ll look for a way to reset the network config completely and hope that clear it up.

As to static addressing, I have a bunch of very dynamic infra – things popping into and out of existence on-demand and using dynamic address registration – so I try to avoid any static addressing unless a device simply will not work without it.

I can’t check my Zero right now…but I believe it is the Max Klipper Screen.

Well that would be surprising result.

lsof is available when connected via ssh but I lack the lsof chops to be able to confidently confirm.

Mine is doing this too, it shows IP 197 and 198, has anyone found a solution?

This is most probably an issue with your router not your printer.

I’d start by using the router’s web interface to find the mac address of the printer. Assign a static IP to that mac. You can also assign the printer a “friendly name” so you don’t need to remember the IP to connect.

You can use SSH and network manager’s CLI to set your printer to a static IP. But if you do you will still need to go into your router and reserve that IP for your printer’s exclusive use.

Read up on DHCP if you want to know more,

As a unit – perhaps as Lion states above – the Sovol sends two DHCP Requests for the same name and using the same MAC address. This is very visible in the logs of the DHCP server whether it runs on the router or not. If your network takes host names specified in the DHCP Req and populates internal DNS records this can cause the hostname to have multiple IP address.

Although one could suggest that the zone population should be more strict the fact of the matter is that the Sovol unit is the first device I have seen in 20 years that will not play nicely with this sort of setup.

The solution to oddball – arguably buggy – DHCP client behavior is NOT to stop using DHCP or use a static address.

1 Like