networking mac地址固定
https://blog.csdn.net/jyoryo/article/details/9044151
但是这样重启后就失效了,需要再敲一遍。当然也可以写入rc.local来解决
例如:
ifconfig eth0 down
ifconfig eth0 hw ether 00:01:02:03:04:05 ##注意这里的mac地址用冒号分开,而非是"-",mac地址字母不区分大小写
ifconfig eth0 up
这样修改后,下面的地址也改变了:
[root@elastix82 ~]# more /sys/class/net/eth0/address
00:01:02:03:04:05
[root@elastix82 ~]#
浙公网安备 33010602011771号