armbian的有线网卡每次重启后MAC地址都会变,
而且每次重启hk1服务器的局域网ip也会变化,这很不方便。
解决方法也不复杂。 使用宝塔面板或者winscp打开/etc/network/interfaces文件,在eth0网卡上写死一个mac地址即可:
root@aml:~# cat /etc/network/interfaces source /etc/network/interfaces.d/* # Wired adapter #1 allow-hotplug eth0 no-auto-down eth0 iface eth0 inet dhcp hwaddress 4e:03:88:54:39:93
如图