安裝Raspberry Pi OS (32-bit, Debian 11 Bulleye改) 的raspberry pi 3,要設定有線網路eth0成固定IP,需要修改/etc/dhcpcd.conf(注意檔名的dhcp後面加cd,不是只有d)這個檔案,大約在43行做友會有Example static IP configuration的字樣,設定如下:
interface eth0
static ip_address=192.168.x.x
#static routers=x.x.x.x
static domain_name_servers=192.168.x.x
這邊要注意到這張網卡是拿來對內使用,所以不設定router。這台RPI3預設使用networking來控制Wifi網路wlan0對外,用dhcpcd來控制有線網路eth0對內。用下面的指令可以觀察狀態:
- service dhcpcd status
- service networking status
參考資料
_EOF_
A cute little matte low poly isometric mushroom island, waterfalls, lat lighting, soft shadows, trending on artstation, 3d render, monument valley, fez video game
Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 1456782580, Size: 512x512, Model hash: fc2511737a, Model: chilloutmix_NiPrunedFp32Fix, Version: v1.6.0-2-g4afaaf8a
Time taken: 13.2 sec.
沒有留言:
張貼留言