修改centos7的MAC地址
其他
2018-06-13 15:57:50
阅读次数: 2
change MAC Address in CentOS 7:
- Update CentOS Repositories by:
- Install nano (for editing config files) and net-tools (for enabling ifconfig command).
yum
install
nano net-tools
|
- Go to the ethernet configuration file.
nano
/etc/sysconfig/network-scripts/ifcfg-ens160
|
- Add the following line. Replace the current MAC with your desired MAC Address.
MACADDR=00:0C:29:24:79:76
|
- Save the configuration file.
- Restart the networking process.
- You are done. Now, verify by issuing ifconfig command.
- If you have a windows machine in the same network. Issue arp -d to delete current ARP table. Then ping CentOS 7 IP Address from Windows PC. Next issue arp -a. You will find the changed MAC next to your CentOS 7 IP Address.
转载自www.cnblogs.com/timxgb/p/9178173.html