淘宝搜索“mprg7 树莓派”,需要给mprg7树莓派5 PCIE转7路设备(网卡为eth1)分配一个固定ip。
安装dnsmasq服务并配置
interface=eth1
bind-interfaces
dhcp-range=192.168.23.10,192.168.23.150,12h
domain-needed
bogus-priv
no-dhcp-interface=eth0
no-dhcp-interface=wlan0
dnsmasq服务延迟启动
sudo systemctl edit dnsmasq
输入(时长酌情添加)
[Service]
ExecStartPre=/bin/sleep 15
保存并退出
sudo systemctl daemon-reload
sudo systemctl restart dnsmasq