Jump to content
Ultimaker Community of 3D Printing Experts
DeNescafe

Dynamic vs static IP address

Recommended Posts

As you have noticed it's not possible yet without a workaround, but it is on the roadmap to be added. 

I can't give you a specific time yet though. Once this is more clear I'll share it with the community. Hope this helps.

  • Like 1

Share this post


Link to post
Share on other sites

Is there an update when it will be available?

I have to integrate an UM3 into a Ethernet LAN with fixed IP adresses in a Sub-C net 192.168.nnn.nnn, DHCP must be disabled.

We do not have WLAN nor use DHCP in the compny.

The brand new UM3 can not be really used now.

Edited by stoccarda
additions

Share this post


Link to post
Share on other sites

Unfortunately not, maybe with the next firmware. But I guess also not because the next UM3 firmware will be a "clone" of the S5 firmware and there is still no option to set a static address.

Share this post


Link to post
Share on other sites

Couldn't you just buy a cheapo router and set it to a static IP address on the current network and then plug only the Ultimaker into that router and set a static lease for the MAC address to the correct IP address?  That way it received the IP from DHCP and is guaranteed to be the same IP address every time.

Share this post


Link to post
Share on other sites

From the technical point of view it is possible, but not so easy, because the printer is then on another network than the workstation the user uses. So you have also to configure the NAT forwarding to get back to the printer. But yes it is an option, or enable the developer mode, ssh into the printer and set a static IP there. But this should be done by someone who as some experiences with Linux.

Share this post


Link to post
Share on other sites
54 minutes ago, stoccarda said:

There is just some experience with Fedora,
knowing the files to edit will be a great help

 

Well, it's still an ugly workaround, but it is not hard. The Linux on the Olimex-board is based on Debian (AFAIK).

You have to (temporary) enable the developer mode and you can use the wifi hotspot (that the printer creates if you start the wifi setup) for the ssh connection, if there is no other network option available.

 

The printer uses "connman" for the network setup, here are the steps:

 

 

  • Like 1

Share this post


Link to post
Share on other sites

I followed the first three steps as suggested by freesbee.

Output of connmanctl services is

*A0 my_SSID wifi_000...

the others WLAN sports in the neighbourhood following,

but not ethernet listed.

Of course Lan-cable is disabled, else i am loosing the SSH connection when enabling it.

 

connmnctl technologies gives

/net/common/technology/p2p

...

/net/common/technology/wifi

...

/net/common/technology/ethernet

 Name = Wired

 Type  = Ethernet

 Powered = False

 Connected = False

 Tethering = False

 

Here in my home network with DHCP, I have connected it by cable and enabled Ethernet, the UM3 is known to the router then, meaning that the ethernet port basically works.

 

Share this post


Link to post
Share on other sites

I can make some experiments tomorrow, but first some thoughts...

  • if you connect it with a cable you should get the LAN service-name listed
  • the LAN connection should even work without a router by using a cross-link cable between a PC and the printer (i'm not sure, if a cross-link cable is still needed nowadays - probably a normal cable would work too)
  • on the other hand: all you need is probably the servicename of the ethernet connection, but i don't know, if it can be configured while it is disabled?
  • the service name for a cable connection is usually "ethernet_<MAC-address>_cable"
  • there's a folder for each configured connection in "/var/lib/connman" that corresponds to the service names, to check:
    ls -d /var/lib/connman/*/

     

  • or use "ifconfig -a" to determine the MAC-address for eth0 and insert it in the service name (without colons and brackets)
Edited by tinkergnome

Share this post


Link to post
Share on other sites

Good news :-)
After establishing a connection with a cable, 'connmanctl services' reported exactly the service name you have expected.

Using

connmanctl config <service> --ipv4 manual <IP address> <netmask> <gateway>

 

allowed to set the address. I will to test it in a network without DHCP tomorrow.

 

If the UM3 uses WLAN it was not possible to use the command above, a

'Error ethernet_MAC_cable: Method "SetProperty" with signature "sv" on interface "net.connman.Service" doesn't exist

occurred. 

Hence it looks for me that you must be connected by cable to set a static ethernet IP address.

 

Thanks to all for great support

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Our picks

    • Ultimaker Cura | a new interface
      We're not only trying to always make Ultimaker Cura better with the usual new features and improvements we build, but we're also trying to make it more pleasant to operate. The interface was the focus for the upcoming release, from which we would already like to present you the first glance. 
        • Like
      • 86 replies
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Like
      • 12 replies
×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!