MAC地址固定

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

如图

bb7ddaf4e9e62ecb7430c133c60e36ea



    [response_honeypot anti-spam]

    上一篇
    下一篇