Home Assistant Static IP Address: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:


<pre>
<pre>
save
quit
quit
reboot
reboot
Line 29: Line 30:


== my-network ==
== my-network ==
 
Get a unique UUID from : https://www.uuidgenerator.net/version4
<pre>
<pre>
[connection]
[connection]
id=HassOS
id=HassOS
uuid=e9e5d678-e8dd-4ace-a4ac-56294a0ce88f
uuid=d1d9a3e0-07ac-4049-b7ec-6f4da5af02c6
type=802-3-ethernet
type=802-3-ethernet


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


[[Category : HA]]
[[Category : Home Assistant]]

Latest revision as of 01:03, 7 September 2021

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

Get a unique UUID from : https://www.uuidgenerator.net/version4

[connection]
id=HassOS
uuid=d1d9a3e0-07ac-4049-b7ec-6f4da5af02c6
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