Home Assistant Static IP Address: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Line 20: Line 20:
<pre>
<pre>
print ipv6
print ipv6
</pre
</pre>


= From USB Configuration File =
= From USB Configuration File =

Revision as of 05:57, 8 August 2020

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

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