2024年11月15日星期五 下午3:50:33

How To Set a Static IP on HassOS

7 个月 前
#31959 引用
How To Set a Static IP on HassOS
hassOS如何设置为一个固定静态 IP地址

两个方法:
1、路由器绑定dhcp 静态分配
2、主系统设置固定ip



https://community.home-assistant.io/t/how-to-set-a-static-ip-on-hass-io-hassos/75680
0
7 个月 前
#31960 引用
wifi router - set your DHCP server to a static address

Yes you do need to set your DHCP server to a static address.
在路由设置

路由器上 设置 mac和ip绑定就可以了。
0
7 个月 前
#31961 引用
Using nmcli to set a static IPV4 address

使用nmcli设置静态IPv4地址


nmcli> set ipv4.addresses 192.168.100.10/24
Do you also want to set 'ipv4.method' to 'manual'? [yes]: yes


or

Be connected to the HA CLI, you should see an ha> prompt
Run ‘login’, you should now see a # prompt
Run ‘nmcli connection show’ to see your list of connections and choose which one you intend to edit. In my install there was only one listed, “HassOS default”
Run ‘nmcli con edit “HassOS default”’ (or whatever your connection is), you should now have an nmcli> prompt
Once in the nmcli prompt, run these commands filling in whatever your network details are:

nmcli> set ipv4.addresses 192.168.1.10/24
Do you also want to set ‘ipv4.method’ to ‘manual’? [yes]: yes
nmcli> set ipv4.dns 1.1.1.1
nmcli> set ipv4.gateway 192.168.1.1
nmcli> save
nmcli> quit


Exit the login prompt (run ‘exit’)
At the ha> prompt, run ‘ho reboot’

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

https://community.home-assistant.io/t/how-to-change-ip-adresse-in-cli/332205/22?u=msly

https://blog.csdn.net/gongchenyu/article/details/134675480
0
7 个月 前
#31962 引用
宿主机

环境vmware workstation装的haos
0
7 个月 前
#31963 引用
直接在配置--系统--网络中配置,不用再到SSH中去改了,非常方便

http://192.168.2.120:8123/config/network
0