修改 /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地址
最新推荐文章于 2024-08-20 16:52:56 发布
本文介绍如何在Linux系统中通过编辑/etc/network/interfaces文件来设置网络接口eth0的静态IP地址及子网掩码,并详细展示了如何手动指定MAC地址。此外,还提供了重启网络服务的方法以及临时更改MAC地址的步骤。
4465

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



