Home Assistant Static IP Address

From KlavoWiki
Revision as of 05:56, 8 August 2020 by David (talk | contribs) (Created page with "= From the Console = Log in as root <pre> login nmcli con edit "HassOS default" </pre> <pre> set ipv4.addresses 192.168.1.11/24 set ipv4.gateway 192.168.1.254 set ipv4.dns 8....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

From the Console

Log in as root

login
nmcli con edit "HassOS default"
set ipv4.addresses 192.168.1.11/24
set ipv4.gateway 192.168.1.254
set ipv4.dns 8.8.8.8,8.8.4.4
quit
reboot

From USB Configuration File

  • Using a FAT32 USB drive. preferably a small capacity
  • label the USB as CONFIG. Notice the capitals. No period after the name.
  • create a folder called network and a file called my-network. \network\my-network

my-network

[connection]
id=HassOS
uuid=e9e5d678-e8dd-4ace-a4ac-56294a0ce88f
type=802-3-ethernet

[ipv4]
method=manual
address1=192.168.1.11/24;192.168.1.254
dns=192.168.11.1;8.8.8.8

[ipv6]
addr-gen-mode=stable-privacy
method=auto

With Static IPv6 Settings

Remove the IPv4 DNS setting so IPv6 are used.

[ipv6]
method=manual
address-data=2023:4a38:2358:a300:0:0:0:1111/56
addr-gen-mode=stable-privacy
dns=2606:4700:4700::1113;2606:4700:4700::1003

Reference

https://github.com/home-assistant/operating-system/blob/dev/Documentation/network.md