Mac Address 인증기반 네트워크 환경에서 MacBook(OSX)의 MAC주소 변경하기 !
카페나 지하철에서..... 유용하게 사용할 수 있겠지요?
#!/bin/sh
mac_addr='나의 통신사 맥주소 de:ad:be:ef:ca:fe'
sudo ifconfig en0 ether $mac_addr
networksetup -setairportpower en0 off && networksetup -setairportpower en0 on
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan
networksetup -setairportnetwork en0 (Wifiname)
다른 명령어들은 다음과 같습니다.
Turn off wifi on your macbook from the Mac OSX terminal command line:
networksetup -setairportpower en0 off
Turn on wifi on your macbook from the Mac OSX terminal command line:
networksetup -setairportpower en0 on
List available wifi networks from the Mac OSX terminal command line:
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan
Join a wifi network from the Mac OSX terminal command line:
networksetup -setairportnetwork en0 WIFI_SSID_I_WANT_TO_JOIN WIFI_PASSWORD
Find your network interface name
networksetup -listallhardwareports
참고로
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
를 통해 커맨드에서 airport 명령어를 쓰도록 해놓으면 좋겠지요?
'OSX' 카테고리의 다른 글
apktool Unsupported major.minor version 51.0 오류 (0) | 2015.08.03 |
---|---|
OS X(10.10)에 Ext4 Mount하기 (0) | 2015.07.26 |
How to make the Bootable USB? (0) | 2015.01.06 |
Kali linux에 Parallels Tool 설치 (0) | 2014.08.15 |
OSX Java_Home Path (0) | 2014.07.22 |