Backup Solution & IT Study/OS

[Redhat]MAC 주소 변경

blue_licht 2021. 3. 2. 10:43

#vi /etc/rc.local

 

ifconfig eth0 down

 

ifconfig eth0 hw ether 00:00:00:00:00:00 

 

ifconfig eth0 up

 

리눅스 mac을 자유롭게 변경할수 있다

 

#ifconfig eth0 down

 

#ifconfig eth0 hw ether 00:03:47:06:E1:43

 

#ifconfig eth0 up

 

하면 에러가 들것이다

 

#vi /etc/sysconfig/network-scripts/ifcfg-eth0

 

HWADDR=11:11:11:11:11:11

 

위 부분을 00:03:47:06:E1:43 으로 변경하면 된다.

 

재부팅 마다 mac 에러가 뜬다

 

#vi /etc/rc.local

 

ifconfig eth0 down

 

ifconfig eth0 hw ether 00:00:00:00:00:00 

 

ifconfig eth0 up