note that here enp6s0 is wired card and wlp2s0 is wireless, which is different from eth0 and wlan0 in some distributions (e.g., slackware ubuntu debian lubuntu, scientific linux) also note that the name of the mac is called ether rather than HWaddr
therefore, one can do:
ifconfig enp6s0 down
ifconfig enp6s0 hw ether 00:22:19:2E:60:3F
ifconfig enp6s0 up
now you have the new mac address working on your enternet. for other distributions, one may need to change enp6s0 into eth0, and ether into HWaddr.
enjoy!
hah, Thanks for the reply. Actually it is a temporary way to gain internet access for some encrypted LAN. Some of the router only provide ip for registered MAC, if you want to allow some unregistered device to aquire IP temporarily, you can change the mac. but be careful it is not good to connect the LAN with two device having the same MAC!
With the above method it is fun changing the mac address of your network adapter.
ReplyDeleteThanks
Silvester Norman
Changing MAC Address
hah, Thanks for the reply. Actually it is a temporary way to gain internet access for some encrypted LAN. Some of the router only provide ip for registered MAC, if you want to allow some unregistered device to aquire IP temporarily, you can change the mac. but be careful it is not good to connect the LAN with two device having the same MAC!
Delete