배치 파일의 netsh 출력이 내 IP 주소 표시를 건너뜁니다.

배치 파일의 netsh 출력이 내 IP 주소 표시를 건너뜁니다.

그래서 고정 IP를 설정한 다음 이를 콘솔에 다시 반영하는 간단한 배치 파일을 작성했습니다.

@echo off
netsh interface ipv4 set address "Local Area connection" static 192.168.1.100 255.255.255.0 192.168.1.1
netsh interface ipv4 set dnsserver "Local Area Connection" static 8.8.8.8
netsh interface ipv4 add dnsserver "Local Area Connection" 8.8.4.4
netsh interface ipv4 show config "Local Area Connection"
pause

그러나 콘솔에 대한 출력은 다음과 같습니다.

Configuration for interface "Local Area Connection"
DHCP enabled:                         No
Default Gateway:                      192.168.1.1
Gateway Metric:                       1
InterfaceMetric:                      20
Statically Configured DNS Servers:    8.8.8.8
                                      8.8.4.4
Register with which suffix:           Primary only
Statically Configured WINS Servers:   None

Press any key to continue . . .

정적으로 할당한 IP 주소가 표시되지 않는 이유는 무엇입니까?

관련 정보