修改 /etc/network/interfaces 然后
加一行 hwaddress ether ##:##:##:##:##:##
例如我的:
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.16.51
netmask 255.255.255.0
gateway 192.168.16.1
hwaddress ether 00:00:39:9E:58:3C #add this line
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
# please do not modify the following line
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
# /etc/init.d/networking restart
fconfig eth0 down
ifconfig eth0 hw ether XX XX XX XX XX XX
ifconfig eth0 up
ifconfig停了网卡,改地址,启动网卡~~OK~~
Debian下永久修改MAC地址
最新推荐文章于 2025-10-09 19:06:07 发布
本文介绍如何在Linux系统中通过编辑/etc/network/interfaces文件来设置网络接口eth0的静态IP地址及子网掩码,并详细展示了如何手动指定MAC地址。此外,还提供了重启网络服务的方法以及临时更改MAC地址的步骤。
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
ACE-Step
音乐合成
ACE-Step
ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言
4380

被折叠的 条评论
为什么被折叠?



