Jump to content
Ultimaker Community of 3D Printing Experts
Nooger

How to set IP address without WiFi or DHCP

Recommended Posts

My best guess would be this approach (but I don't have a UM3 to test):

* Turn on developer mode

* Start the WiFi wizard, which makes the UM3 into a WiFi hotspot

* Connect to the WiFi hotspot of the UM3, but don't complete the wizard

* Figure out the IP address of the UM3 in its own network (which should be the default gateway as handed out to your computer)

* SSH into the UM3 at that address

* Edit the eth0 interface in /etc/network/interfaces to a static IP

* Cancel out of the WiFi hotspot mode and disable WiFi

* Turn off developer mode

Doable: yes. Easy. Not so much.

Share this post


Link to post
Share on other sites

Thanks for the help ahoeben, but it didn't work.

I've included the following line to the interfaces file:

auto eth0

iface eth0 inet static

address 192.168.0.26

netmask 255.255.255.0

gateway 192.168.0.254

.. but when the ultimaker starts up it just assigns itself some random ip address.

The eth0 is now active, (wifi disabled) but not with the above ip address.

I'm new to linux networking, so maybe I am missing something.

Any ideas anyone?

Share this post


Link to post
Share on other sites

Changeing the interface file didn't work for me as well.

My simple solution was to edit the /etc/rc.local and add these lines.

To overwrite the current IP address:

sleep 100

ifconfig eth0 192.168.1.123 netmask 255.255.255.0

route add default gw 192.168.1.1 eth0

The 100 sec sleep is because the search for DHCP IP needs to be finish before the IP "overwrite" can be done.

the RC.LOCAL will be executed every restart of the Ultimaker3

Share this post


Link to post
Share on other sites

We have a similar problem at my company. Our wlan hotspot needs a username and password and our ethernet needs a different gateway which i can't change :/

my linux skills are pretty low so i'am a bit afraid of changing anything in the developer mode.

Maybe someone can write a step by step guide?

Or is there a way to use the wlan with username+password?

Thank you guys!!!

Share this post


Link to post
Share on other sites

The interfaces file won't work. The rc.local option will most likely fail as well.

We are using "connman" to configure the network. So here are some tips:

https://communities.intel.com/thread/60242

In the future we want to provide some better support for static configuration, as this request is more common then expected. (Shame on the IT infastructure providers of the world)

  • Like 2

Share this post


Link to post
Share on other sites

Not to sound harsh, but I rather work on the solution so this works for everyone. (I'm the guy in charge of firmware at Ultimaker)

Got a few questions, the setup you need, is that static IP configuration on the cabled connection, static IP configuration on the WiFi connection.

Or, even dynamic configuration with a static gateway? And then on WiFi or LAN?

(Maybe you have some IT instructions that you can copy&paste without passwords)

I'm asking these questions to make sure we build the new static configuration feature in a way that it can support your network configuration. As it is a bit unclear to me what exact needs you have.

Edited by Guest

Share this post


Link to post
Share on other sites

Thank you for your reply. We have DHCP on the cabled network. The Printer gets an IP (which is fine) but it gets a gateway which needs to be changed so the printer is in the right Network.

If i could make everything static it would be fine.

IP: 10.45.4.170

Subnet: 255.255.255.0

Gateway: 10.45.10.253

Our wlan hotspot needs a username and a password to log in.

Like:

Username: logmein

Password: test123

Hope you understand what I mean :)

Thanks for your Help!

Edited by Guest

Share this post


Link to post
Share on other sites

You can setup a static IP. One way is to put the um3 in developer mode, ssh into the printer, and you are now in a linux environment. Using google you can learn how to setup the ip address. I suspect you want to read about conman but not certain.

Share this post


Link to post
Share on other sites

Not to sound harsh, but I rather work on the solution so this works for everyone. (I'm the guy in charge of firmware at Ultimaker)

Got a few questions, the setup you need, is that static IP configuration on the cabled connection, static IP configuration on the WiFi connection.

Or, even dynamic configuration with a static gateway? And then on WiFi or LAN?

(Maybe you have some IT instructions that you can copy&paste without passwords)

I'm asking these questions to make sure we build the new static configuration feature in a way that it can support your network configuration. As it is a bit unclear to me what exact needs you have.

 

Hi @Daid,

My suggestion is to use the same network settings procedure as regular printers (paper and ink). Having a printer on the network has been solved long ago. Usually, IT guys know how to make their network settings ready to support regular printers on it.

Share this post


Link to post
Share on other sites

Most of the time, the IT guys use the MAC address of the machines and have the routers give out fixed IP addresses based on those MAC addresses.

That's actually the easiest way.

Because, uhm... I just for the fun of it, tried to set a fixed IP for my 2 networkprinters, a mobile phone and a ziggo box.

I quickly resorted to map a MAC to an IP address in my router...

Share this post


Link to post
Share on other sites

I just used this procedure to edit rc.local and it did work. It takes a few minutes for the IP address to change to the static IP I configured, but it does work consistently. I may experiment with shortening the sleep time. When I get some more time, I may try the connman approach.

Stephen Barner

So Burlington High School, Vermont

The interfaces file won't work. The rc.local option will most likely fail as well.

We are using "connman" to configure the network. So here are some tips:

https://communities.intel.com/thread/60242

In the future we want to provide some better support for static configuration, as this request is more common then expected. (Shame on the IT infastructure providers of the world)

Share this post


Link to post
Share on other sites
On 2/28/2017 at 10:00 AM, Daid said:

I'm the guy in charge of firmware at Ultimaker

...so if I may give you a suggestion, let IT personnel do their job and implement an easier way to set and protect a static IP in the firmware. Nothing wrong with the SSH and connman for me, but somebody with less linux experience could be in trouble and normally people dealing with design are not linux experts (nobody is questioning why you use connman instead of /etc/network/interfaces so please do not question why we prefer to have printers on static IPs outside the DHCP area).

 

Here the full guide for anybody who might need it:

1. on the printer panel enable developer mode (printer restart needed)
2. SSH to the printer (default credentials would be root/ultimaker)
3.

$ connmanctl services

and note the name of the interface that must be configured (remember: the machine has 2 network interfaces): from now on that will be the <service> (no "<" or ">" needed, just the service/interface name which will look like ethernet_<MAC_ADDR>_cable for the wired one, the other one I didn't have time to check )
4.

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

at this point the SSH connection will be broken because the printer switches immediately to the new IP so verify if everything went fine and


5. on the printer panel disable developer mode

 

just in case you want to re-enable DHCP the command is:
 

$ connmanctl config <service> --ipv4 dhcp

 

Edited by freesbee
  • Like 2

Share this post


Link to post
Share on other sites
6 hours ago, freesbee said:

...so if I may give you a suggestion, let IT personnel do their job and implement an easier way to set and protect a static IP in the firmware. Nothing wrong with the SSH and connman for me, but somebody with less linux experience could be in trouble and normally people dealing with design are not linux experts (nobody is questioning why you use connman instead of /etc/network/interfaces so please do not question why we prefer to have printers on static IPs outside the DHCP area).

 

It's on the list to have a good static-ip-configuration option, there is just no priority on it, so other things get pushed above it. I don't like it that you need to use the connman commandline way, trust me. I'm not seeing the current ssh-to-connman "solution" is actually a solution to the static IP issue. It's an ugly workaround at best.

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Daid said:

It's on the list to have a good static-ip-configuration option, there is just no priority on it, so other things get pushed above it.

Make a forum were your users can propose ideas and a voting mechanism for each idea (or "kudos" if you prefer to call them that way).

It won't take very long to figure out which ideas have more votes/kudos, and will help you in prioritizing your tasks quite efficiently.

2 hints in one day.... ?... maybe too much...

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

    • Introducing Ultimaker Cura 3.6 | Beta
      Ultimaker Cura 3.6 | Beta is available. It comes with new features, bug fixes, and UX improvements. We would really like to have your feedback on it to make our stable release as good as it can be. As always, you can download the beta for free from our website, for Windows, MacOS, and Linux.
        • Like
      • 95 replies
    • Print Core CC | Red for Ruby
      Q: For some users, abrasive materials may be a new subject matter. Can you explain what it is that makes a material abrasive when you are not sure which print core to use?
      A: Materials which are hard in a solid piece (like metals, ceramics and carbon fibers) will generally also wear down the nozzle. In general one should assume...
        • Like
      • 30 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!