This had originally been a reply on the duplicate of this thread, I’m reposting it here…use whatever the ifconfig reports for the name of the ethernet device if eth0 is not correct…
This is on a JTK1, but results should be the same. Beware I may have done other configuration (this was a while back) related to telling NetworkManager to not interfere, but I don’t remember what it was if I actually did that (my config has been saved and transferred over to new flash images for about 4 years now). Somewhere I probably did something to tell DHCP to not happen.
In “/etc/network/” the naming of file “interfaces” would lead you to believe that it automatically works with files in “/etc/network/interfaces.d/”, but it doesn’t. So I manually told it to source the relevant file. Try manually editing “/etc/network/interfaces” to become this with one extra line:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
# This line is a custom edit.
Then inside of “/etc/network/interfaces.d/” add file “eth0”. Content something like this (I’m assuming your router is the gateway and that the gateway has address “192.168.1.2”…note that the address you gave of “192.168.150” is missing a digit, I’m assuming it is “192.168.1.150”):
iface eth0 inet static
If that file is read the content says to automatically bring the interface up using static protocols, so it may be this is enough to stop DHCP (it depends on other software and there is a mix of NetworkManager and older style files that don’t always play together nicely).