请问如何永久性修改网卡的MAC地址?
请问如何永久性修改网卡的MAC地址?是修改哪个文件? 原来是这样,呵呵。问题解决了。修改 /etc/network/interfaces
加一行 hwaddress ether ##:##:##:##:##:##
例如我的:
# This file describes the network interfaces available on your system
# 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~~ 有时候不要随便更改硬件地址。 我这里拨号是认MAC地址的,这个只是操作系统的欺骗行为不会伤害到硬件。
页:
[1]