電訊茶室's Archiver

角色 發表於 2019-2-9 21:38

Raspberry Pi —— WiFi interface 怎样set static IP?

在/etc/dhcpcd.conf

加入:[code]
interface wlan0
static ip_address=192.168.1.2/24
static routers=192.168.1.1
static domain_name_servers=8.8.8.8
[/code]Reference
[1] [url]https://www.raspberrypi.org/forums/viewtopic.php?t=201758[/url]

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.