Raspiberry静的IPレコードの設定

468 ワード

詳細
rootユーザー
修正:sudo nano/etc/dhcpcd.confファイル、のnohookの下に以下の内容を追加します.
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname

interface eth0
static ip_address=192.168.8.99/24
static routers=192.168.8.8
static domain_name_servers=192.168.8.8 8.8.8.8

^O,+X
保存、終了、再起動
sudo reboot