From LedHed's Wiki
Jump to: navigation, search
(Created page with "== Notes == mkdir -p /mnt/boot/CONFIG vi /mnt/boot/CONFIG/my-network Change the '''[IPv4]''' section to: [ipv4] method=manual address=10.20.30.40/24;10.20.30.1 dns=1.1...")
 
(No difference)

Latest revision as of 05:27, 16 May 2021

Notes

mkdir -p /mnt/boot/CONFIG
vi /mnt/boot/CONFIG/my-network

Change the [IPv4] section to:

[ipv4]
method=manual
address=10.20.30.40/24;10.20.30.1
dns=1.1.1.1;8.8.8.8;


nmcli

# nmcli con show
# nmcli con show "Home Assistant OS default"
# nmcli con edit "Home Assistant OS default"
nmcli> set ipv4.addresses 10.20.30.40/24
Do you also want to set 'ipv4.method' to 'manual'? [yes]:
nmcli> set ipv4.dns 1.1.1.1,8.8.8.8
nmcli> set ipv4.gateway 10.20.30.1

Confirm the changes:

nmcli> print ipv4

and Save:

nmcli> save

Restart the connection:

nmcli con reload

or a Host reboot also works.


Reference

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