가상환경 구축 04: WinClient (Windows 10)

가상환경 구축 04 WinClient 가이드입니다. Windows 10 VM 스펙, hostname, static IP, DNS, Test-NetConnection, route, tracert와 DHCP 복구를 정리했습니다.

가상환경 구축 04: WinClient Windows 10 구성

WinClient는 Linux 서버 실습을 Windows 사용자 입장에서 검증하기 위한 VM이다. DNS 조회, ping, route, RDP, web 접속, proxy 설정, 방화벽 테스트를 Windows 명령으로 확인할 수 있다. 실습에는 CentOS8이라고 적힌 부분이 있지만 제목과 역할상 Windows 10 client로 보는 것이 맞다.

VM 스펙

항목실습 기준현재 권장
Disk60 GB SCSI60 GB 이상
Memory1 GBWindows 10은 2-4 GB 이상 권장
NetworkNATNAT 또는 lab VMnet
HostnameWinClientwinclient01

설치 후 hostname 변경

관리자 권한 PowerShell에서 실행한다.

Rename-Computer -NewName "winclient01" -Restart

IP 확인

hostname
ipconfig /all
Get-NetAdapter
Get-NetIPConfiguration
route print

Static IP 설정 예시

인터페이스 이름은 환경에 맞게 확인한다.

$ifAlias = "Ethernet"

New-NetIPAddress `
 -InterfaceAlias $ifAlias `
 -IPAddress 192.168.10.202 `
 -PrefixLength 24 `
 -DefaultGateway 192.168.10.1

Set-DnsClientServerAddress `
 -InterfaceAlias $ifAlias `
 -ServerAddresses 192.168.10.192,1.1.1.1

DNS와 서버 접속 테스트

Resolve-DnsName server01.lab.local -Server 192.168.10.192
Resolve-DnsName server02.lab.local -Server 192.168.10.192

Test-NetConnection server01.lab.local -Port 22
Test-NetConnection server01.lab.local -Port 80

Invoke-WebRequest http://server01.lab.local/ -UseBasicParsing

route 테스트

Linux router/NAT 실습에서 다른 대역으로 가야 하면 Windows route table에 추가한다.

route print
route add 192.168.12.0 mask 255.255.255.0 192.168.10.1
tracert 192.168.12.11

DHCP로 되돌리기

$ifAlias = "Ethernet"

Set-NetIPInterface -InterfaceAlias $ifAlias -Dhcp Enabled
Set-DnsClientServerAddress -InterfaceAlias $ifAlias -ResetServerAddresses
ipconfig /renew
ipconfig /all

마무리

WinClient는 Linux lab에서 Windows 사용자 시점의 문제를 확인하는 장비다. Linux server에서 정상으로 보이는 서비스도 Windows에서 DNS suffix, route, firewall, proxy 설정 때문에 실패할 수 있다. Resolve-DnsName, Test-NetConnection, route print, tracert를 기본 도구로 준비해두면 좋다.

BGM EVER