Update ip-renew/README.md
This commit is contained in:
@@ -20,10 +20,14 @@
|
||||
|
||||
|
||||
# 원하는 MAC 주소로 변경
|
||||
Set-NetAdapter -Name "이더넷" -MacAddress "00-11-22-33-44-55"
|
||||
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
|
||||
Set-NetAdapter -Name "이더넷" -MacAddress $randomMac -Confirm:$false
|
||||
|
||||
|
||||
# factor default 주소로 복원
|
||||
Set-NetAdapter -Name "이더넷" -MacAddress "" -Confirm:$false
|
||||
```
|
||||
Reference in New Issue
Block a user