Home Assistant Static IP Address: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
Line 14: Line 14:


<pre>
<pre>
save
quit
quit
reboot
reboot

Revision as of 02:49, 9 August 2020

From the Console

Log in as root

login
nmcli con edit "HassOS default"
print ipv4
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
save
quit
reboot

IPv6 parameters are also available.

print ipv6

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