NEMS 1.4.1 Static IP address

Having issues? Post them here, and help other users.
QACjason
Junior Member
Posts: 9
Joined: Mon May 21, 2018 2:07 pm

NEMS 1.4.1 Static IP address

Post by QACjason »

I have decided to go from 1.3 to 1.4

I'm a big proponent of static IP addresses.  oddly it seems /etc/dhcpcd.conf is missing from the disk.  I believe I read another post where you discouraged using static IP, but using dhcp with reservation.  You didn't say how to set a static IP in the latest version.  Is this possible?
QACjason
Junior Member
Posts: 9
Joined: Mon May 21, 2018 2:07 pm

RE: NEMS 1.4.1 Static IP address

Post by QACjason »

I also have a DHCP server on the network.  It is not leasing out an IP address to the Pi from the looks of it.  I go to run nems-init and it says "You need to configure Internet connectivity first."

I feel like I am missing something small, but the directions go right from installing NEMS to nems-init.  nothing about any internet/network connectivity issues.
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: NEMS 1.4.1 Static IP address

Post by Robbie Ferguson »

NEMS should grab an IP from the DHCP server on boot, as long as Ethernet is plugged in. Can you confirm? Then, set a reservation on your DHCP server based on the MAC address of your NEMS server.

You obviously require Internet connectivity for NEMS to function. It isn't much use if no Internet connection is found :)

Cheers,
Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
QACjason
Junior Member
Posts: 9
Joined: Mon May 21, 2018 2:07 pm

RE: NEMS 1.4.1 Static IP address

Post by QACjason »

OK.  having trouble because I don't run DHCP.  I am going to try some things but would rather have a static IP address.  Is there any way to put one in?  That's what I've done in the past
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: NEMS 1.4.1 Static IP address

Post by Robbie Ferguson »

How can you not have a DHCP server? Is this home use?

Regardless, I don't yet have a supported means of setting a static IP within the device itself - there are too many variables (it's different from device to device).
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
QACjason
Junior Member
Posts: 9
Joined: Mon May 21, 2018 2:07 pm

RE: NEMS 1.4.1 Static IP address

Post by QACjason »

I static all of our devices that are in our DMZ, which is where this device resides.  I only use DHCP for wifi guest access in our guest vlan.  I am with a local county government.

I am trying to spin up a small dhcp server.  All other iteration of NEMS I have set a static IP address in the /etc/dhcpcd.conf file, but it does not show up in this version.
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

RE: NEMS 1.4.1 Static IP address

Post by Robbie Ferguson »

Alright - cool, thanks for the info.
Can you kindly email me so we can take this discussion private? Just because if I post here in the forum how to set the static IP, it's gonna get messy as soon as someone does the same on a 1.3.1 system and breaks their network - lol.

Cheers,
Robbie
Robbie Ferguson // The Bald Nerd

Did I help you out? Appreciate what I do? Please consider saying thanks:
QACjason
Junior Member
Posts: 9
Joined: Mon May 21, 2018 2:07 pm

RE: NEMS 1.4.1 Static IP address

Post by QACjason »

Thank you.  I can do that but was able to resolve the DHCP issue.  I basically setup a DHCP server with just the one IP I wanted to use. I have no other need for DHCP in my DMZ so this will work.

So let's say static IP resolved by not using it!

I have another issue I may put another thread up for.  It's not related to this so I don't want to put it under this thread.  Really nice product Robbie, thanks again for your help in supporting it!
steve74
Junior Member
Posts: 5
Joined: Thu Jul 12, 2018 5:59 am

RE: NEMS 1.4.1 Static IP address

Post by steve74 »

I managed to setup static ip on my nems pi3 as follows :-
(1) vi /etc/network/services
(2) add      :-
                     auto eth0
                     iface eth0 inet static
                               address XX.YY.ZZ.AA  ( put your i/p in here to replace XX..... etc)
                               netmask 255.255.255.0
                               gateway XX.YY.ZZ.AA ( put your gw i/p in here)
(3) wq! ( write changes, of course)
(4) sudo systemctl disable dhcpcd
(5) sudo systemctl enable networking
merguezdakar
Junior Member
Posts: 1
Joined: Mon Oct 22, 2018 5:14 am

RE: NEMS 1.4.1 Static IP address

Post by merguezdakar »

Hello, i don't have this file and dhcpcd !
i try to create file but not work !
Thanks to help me to use static IP
Post Reply