Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

dhcpcd.confで固定IPを設定

raspiap がアクセスポイント化出来たのはいいけど、ネットワーク管理の都合でIPを固定にしないといけない。

実際のところ

# RaspAP wlan0 configuration
hostname
clientid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option ntp_servers
require dhcp_server_identifier
slaac private
nohook lookup-hostname
denyinterfaces eth0 wlan0
interface br0

br0はブリッジ。
固定IPを100.202としたいとき、
これに続けて以下のように。

static ip_address=192.168.100.202/24
static routers=192.168.100.1

RaspiAPの場合、アクセスポイント再立ち上げの際、上書きで消えるので注意。
都度再設定しないとダメ。