|
本帖最后由 DFGsky 于 2021-1-28 16:54 编辑
本人小白,刷了这个老哥的armbian
玩客云 Armbian 20.12 Buster with Linux 5.9.0-rc7 hdmi docker可用 - 各种币,譬如迅雷玩客云 玩客币 睿智激活码等 - 恩山无线论坛 - Powered by Discuz! (right.com.cn)给大哥点个赞👍
在install.sh里写入mac地址后可以正常开机进armbian,mac也是固定的,但是按照这篇文档安装了omv后,会遇到dns error问题,如果从omv里设置网络接口,那么mac就会变回随机。
(另:实测按原帖266楼的omv安装方法也会遇到这个问题)
原因是omv会托管armbian的网络设置,这时候修改interface是不起作用的。但是没搜到omv怎么更改mac地址。然后尝试英文搜索,最终在omv的英文论坛里找到了解决方法。
During the networking daemon initiation the /etc/network/interfaces.d/ directory is searched for network interface configurations. Any found network configuration is included as part of the /etc/network/interfaces. Code: /etc/network/interfaces.d/mac_eth0
# Setup MAC address
allow-hotplug eth0
iface eth0 inet dhcp
hwaddress ether MY_MAC_ADDRESS
但是按照上面的办法我并没有成功,但是根据这个提示,我把刚安装好armbian的时候的interface文件删掉第一行(不知道有没有用)
- source /etc/network/interfaces.d/*
复制代码 直接将这个文件放在etc/network/interfaces.d/下,文件名随意。reboot,mac终于固定了 为了防止有朋友没有这个文件,我直接把它放在了附件里,把第五行的mac地址改成自己的就可以用了。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
评分
-
查看全部评分
|