Files
2025-01-18 21:37:28 +00:00
..
2025-01-18 21:37:28 +00:00

Windows에서 IP 변경하기

  • 아래의 방법으로 원하는 LAN카드의 MAC주소를 변경할 수 있다.
  • MAC주소가 변경되면 ISP 모뎀에서 새로운 기기로 인식하고 새로운 IP를 할당한다.
  • Powershell (관리자로 실행):
# 현재 네트워크 어댑터 목록 확인
Get-NetAdapter

Name                      InterfaceDescription                    ifIndex Status       MacAddress          LinkSpeed
----                      --------------------                    ------- ------       ----------          ---------
vEthernet (WSL)           Hyper-V Virtual Ethernet Adapter             26 Up           00-15-5D-20-8B-D9     10 Gbps
VMware Network Adapte...1 VMware Virtual Ethernet Adapter for ...      14 Up           00-50-56-C0-00-01    100 Mbps
vEthernet (Default Swi... Hyper-V Virtual Ethernet Adapter #2          30 Up           00-15-5D-73-E2-0C     10 Gbps
VMware Network Adapte...8 VMware Virtual Ethernet Adapter for ...      11 Up           00-50-56-C0-00-08    100 Mbps
Bluetooth 네트워크 연결   Bluetooth Device (Personal Area Netw...      10 Not Present  E4-60-17-4B-6D-64       0 bps
이더넷                    Intel(R) Ethernet Controller (3) I225-V       8 Not Present  D8-43-AE-3D-0F-64       0 bps
Wi-Fi                     Intel(R) Wi-Fi 6E AX211 160MHz                3 Up           E4-60-17-4B-6D-60    721 Mbps


# 원하는 MAC 주소로 변경
Set-NetAdapter -Name "이더넷" -MacAddress "00-11-22-33-44-55" -Confirm:$false


# 랜덤 MAC 주소 생성 및 설정
$randomMac = (0..5 | ForEach-Object { "{0:X2}" -f (Get-Random -Minimum 0 -Maximum 255) }) -join '-'; Set-NetAdapter -Name "이더넷" -MacAddress $randomMac -Confirm:$false


# Factory default 주소로 복원
Set-NetAdapter -Name "이더넷" -MacAddress "" -Confirm:$false

국내 ISP별 IP 범위 정보