본문 바로가기
Backup Solution & IT Study/OS

[Redhat]MAC 주소 변경

by blue_licht 2021. 3. 2.

#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

 

'Backup Solution & IT Study > OS' 카테고리의 다른 글

[HP-UX] Install 명령어  (0) 2021.03.02
[AIX]Install 명령어  (0) 2021.03.02
[Debian,Ubuntu] Install 명령어  (0) 2021.03.02
[SLES]MAC 주소 변경  (0) 2021.03.02
[Linux]route 명령어  (0) 2021.03.02

댓글