윈 도 우 10049, ip와 dns 강제설정 팁
2015.03.31 22:01
안되면 되게 하는 방법을 찾으면 되는 거죠...
C:\> netsh interface ipv4 set address "Ethernet" static 192.168.25.11 255.255.255.0 192.168.25.1
C:\> netsh interface ipv4 set dnsservers "Ethernet" static 8.8.8.8 primary
1. "Ethernet" 은 랜 장치 이름입니다. 랜 디바이스의 속성에서도 볼 수 있고 ipconfig 명령으로도 볼 수 있습니다.
2. 192.168.25.11 은 부여하고자 하는 ip 주소입니다.
3. 255.255.255.0 은 넷마스크 값입니다.
4. 192.168.25.1 은 디폴트 게이트웨이 주소입니다.
5. 8.8.8.8 은 설정하고자 하는 DNS 서버입니다.
< 작업 전 >
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::81e0:73b6:9a2c:2575%2
IPv4 Address. . . . . . . . . . . : 192.168.25.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.25.1
< 작업 후 >
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82567V-2 Gigabit Network Connection
Physical Address. . . . . . . . . : 20-CF-30-1A-77-32
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.25.11(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.25.1
DNS Servers . . . . . . . . . . . : 8.8.8.8
NetBIOS over Tcpip. . . . . . . . : Disabled
< 참고 : DNS 서버 추가 >
C:\> netsh interface ip add dns name="Ethernet" addr=164.124.101.2 index=2
IPv4 Address. . . . . . . . . . . : 192.168.25.11(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.25.1
DNS Servers . . . . . . . . . . . : 8.8.8.8
164.124.101.2 <== 2차 DNS 서버가 추가됨
댓글 [3]
-
hawau 2015.03.31 22:17
와우~감사합니다.내일 출근해서 바로 확인해 볼게요 ^^ -
크림슨 2015.03.31 22:21
가상머신을 운용하기 이해 VLAN 장치를 만들었다면 위 "Ethernet" 자리에 해당 장치명만 바르게 넣어주면 됩니다.
C:\Windows\system32> netsh interface ipv4 set address "vEthernet (VLAN)" static 192.168.25.11 255.255.255.0 192.168.25.1
C:\Windows\system32> netsh interface ipv4 set dnsservers "vEthernet (VLAN)" static 8.8.8.8 primary
C:\Windows\system32>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : WIN10049
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter vEthernet (VLAN):
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
Physical Address. . . . . . . . . : 20-CF-30-1A-77-32
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.25.11(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.25.1
DNS Servers . . . . . . . . . . . : 8.8.8.8
NetBIOS over Tcpip. . . . . . . . : Disabled -
hawau 2015.04.01 07:32
정말 감사합니다.
정상적으로 적용 완료했습니다.
적용된 후에도 여전히 속성은 비활성화 상태네요. ^^