In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How to change the MAC address temporarily?
You can change the MAC address while Linux is running. It is important to note that when the MAC address translation time, your network will be offline. When the computer restarts, the MAC address will change back to its original address. Here are several ways to change your MAC address.
Method 1: iproute2
$sudo ip link set dev eth0 down$sudo ip link set dev eth0 address 00VOUR 00VONING 00VOUR 01DUBE $sudo ip link set dev eth0 up
Method 2: macchanger
The macchanger command allows you to change your MAC address to the serial number of different manufacturers.
Install macchanger under Debian,Ubuntu or Linux Mint:
$sudo apt-get install macchanger
Install macchanger under Fedora:
$sudo yum install macchanger
Install macchanger under CentOS or RHEL:
$wget http://ftp.club.cc.cmu.edu/pub/gnu/macchanger/macchanger-1.6.0.tar.gz $tar xvfvz macchanger-1.6.0.tar.gz$ cd macchanger-1.6.0 $. / configure$ make$ sudo make install
Here are some examples of advanced use of macchanger. You no longer need to disable and enable your network card manually with macchanger.
Just change the MAC address:
$sudo macchanger-mac=00:00:00:00:00:01 eth0
Set a random address for MAC while ensuring OUI consistency:
$sudo macchanger-e eth0
Set a completely random address for MAC:
$sudo macchanger-r eth0
Get the MAC addresses of all network cards, and then list only the specified vendors (such as Juniper):
$macchanger-l | grep-I juniper
Linux: the MAC address cloning method displays the original MAC address and camouflaged MAC address of a network card:
$macchanger-s eth0Current MAC: 56:95:ac:ee:6e:77 (unknown) Permanent MAC: 00:0c:29:97:68:02 (Vmware, Inc.)
How to change the MAC address permanently?
If you want to keep the camouflage MAC address after the system reboot, you need to edit the configuration file. For example, if you want to change the MAC address of eth0, do the following:
Under Fedora,CentOS or RHEL:
$sudo vi / etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0MACADDR=00:00:00:00:00:0
Or you can create a boot script in the / etc/NetworkManager/dispatcher.d directory, as long as you use NetworkManager to manage your network. Let's assume that you have installed macchanger, and the script reads as follows:
$sudo vi / etcUnix NetworkManagerAccording to etc/NetworkManager/dispatcher.d/000-changemac 2000 change emactants macchanger macchanger-- mac=00:00:00:00:00:01 "$1"; esac$ sudo chmod 755 / etc/NetworkManager/dispatcher.d/000-changemac
Under Debian,Ubuntu or Linux Mint:
Create a new boot script and put it in the / etc/network/if-up.d/ directory:
$sudo vi / etcUniverse networkplash if copyright up.dqqqchangemacacty.changemacorp; then ip link set dev "$IFACE" address 001fi01fi01fi$ sudo chmod 755 / etc/network/if-up.d/changemac
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.