Welcome to our Knowledge Base
Set HASSIO Static IP address
Summary Steps
- Establish a terminal connection
- Set static IP address
- Reserve static IP address
Detailed Guide
1. Establish a terminal connection
- Install and configure SSH & Web Terminal Addon
- Enter a temporary username and password in the Addon configuration
ssh:
username: hasmaster
password: HAS2019
authorized_keys: []
sftp: false
compatibility_mode: false
allow_agent_forwarding: false
allow_remote_port_forwarding: false
allow_tcp_forwarding: false
zsh: true
share_sessions: false
packages: []
init_commands: []
- Start the service

- Take note of the automatically generated keys in the log
- Copy and update configuration to include the rsa key fingerprint
- Remove temporary password
username: hasmaster
password: ''
authorized_keys:
- 'SHA256:YtNRRsnO...root@a0d7b954-ssh'
sftp: false
compatibility_mode: false
allow_agent_forwarding: false
allow_remote_port_forwarding: false
allow_tcp_forwarding: false
zsh: true
share_sessions: false
packages: []
init_commands: []
- Start the Addon
- Refresh the log to see properly running
Note: if the default port 22 is in use, the addon will not start. change the port to something else
Alternatively, Access Terminal on VM
Connect to terminal window
Login as "root", no password
Type Login
Then proceed with commands below

2. Set Static IP Address
- Use nmcli to identify your connection
nmcli connection show
# nmcli connection show
# nmcli con show
# nmcli c s
nmcli connection edit "network-name"
nmcli> set ipv4.addresses 192.168.2.100/24
Do you also want to set 'ipv4.method' to 'manual'? [yes]:
nmcli> set ipv4.dns 1.1.1.1
nmcli> set ipv4.gateway 192.168.2.1
nmcli> print ipv4
nmcli> remove ipv4.addresses 192.168.1.100/24 (to remove addresses)
nmcli> save
nmcli> quit
3. Reserve static IP address
- Configure router so it doesn’t offer your static IP address via DHCP to other clients