How to change static IP address

What is the principle behind the subnets.
I cwn certainly look into this. But I want to know what a subnet does and subnetting will help my situation

Not going to train you on subnets a.o. but you can use the mto separate devices from one another for security, traffic, etc. reasons.
… my point is that if your odroid is for some reason fixed to 192.168.3.20 (example) then it won’t connect to a router with 192.168.1.x.

I don’t use static ip’s, i use dhcp-reservations,
And since the dhcp server is on my router, yeah i have to re-enter this list when i get a new router.
But at least it is done centralized on one device, instead of me configuring each and every individual device :thinking:

subnets are defined by netmask.
f.e:
192.168.1.x uses netmask 255.255.255.0
192 168.y.x uses netmask 255.255.0.0

So a netmask of 255.255.255.0 gives you a range of 192.168.1.1 - 192.169.1.254 while
a netmask of 255.255.0.0 gives you a range of 192.168.1.1 - 192.169.254.254

How do I the odroid a new ip address without logging into it. Since I can’t sign into it as of yet. Is there a code I enter in haos

what me and @vingerha said, either put back your old router, and you should be able to logon and change ip address. Or change subnetmask on router to 255.255.0.0 (after which should also be able to access).

But also connecting a monitor/mouse would do.
Step 3. here describes how (you could have found that info yourself here too, you’re not the first one that asks….)

Hi thanks for getting back,

I get a error of “unknown command” when I type nmcli connection show
See the picture


what am i doing wrong

check this post from21d ago…you first need to type login (plusenter)
How to change IP adresse in CLI - Configuration - Home Assistant Community (home-assistant.io)

Thanks for that!
I got until step 4 and then i get this error



I seem to see that the supervisor is on 192.168.0
So. can you possibly set the router to that subnet?

Other… a bit higher in the same post

How to change IP adresse in CLI - Configuration - Home Assistant Community (home-assistant.io)

Repeating that I cannot verify this as no I donot have HAOS
And… you HAVE to know the subnet of the router before you start setting static IP anyhow else it will continue to not work if you set it to 192.168.1 and subnet is 0

Yes I just found the LAN IP in the router settings.
It is currently set at 192.168.68.1 change the 1 to 0 will fix the issue?

and btw what about the devices currently connected to the network, will they continue to function

Is the router IP dynamic or static; i.e. did it get its ip from the main router (i am just guessing this router is connected to your internat:wan router)?
If it received the IP from the main router then I woul not chnage it but try to set the HA address to match the 68…since you now have access to the HA machine you can try untill it works imho

1 Like

Yes the router is connected to the modem and thats how it gets its internet wan.
I have been trying to change the HA ip address to match my routers. But then you asked to change the subnet as I will have to change that anyway to change HAs ip address.

The problem now is I get stuck at step 4 of the link you set.

A much easier solution would be to simply factory reset it, but i cant find answers on that, so im trying the ip address

lets go back to basics then
please send ip of router NOW (not sure if you changed it)<
pleqse send nmcli feedback from your HA

are you on discord? that would be much faster

Assuming you did not change the router …Try this after you connected to supervisor
nmcli> set ipv4.addresses 192.168.68.22/24
Probqby you need to restart the machine then

I found this to restart from scratch…
If you can rename the config folder, then restart … then you could afterwards copy bits and pieces back…repeating again that I have no experience so donot kill the messenger :slight_smile:
I read in other posts that it may reauire a cabled connection
Hard reset - Configuration - Home Assistant Community (home-assistant.io)

WDYM cabled connection and copy bits and pieces?

discord? I qm on a french keyboard and fingers hurt

haha go for it