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

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

×

Important Information

Terms of Use Privacy Policy