랜카드 이름이 “Local Area Connection” 인 것을 “eth0″로 변경하기
랜카드 이름이 너무 길어서, 외우기 힘드니까, 이것을 LINUX같이 (eth0, eth1…) 짧게 만들어 봅시다.
netsh interface set interface name=” Local Area Connection” newname=”eth0″
이렇게 하면, Local Area Connection 이던 랜카드 이름이 eth0으로 변경됩니다.
랜카드의 IP설정 상태 보기
netsh interface ip show config
를 입력하면 랜카드에 설정된 IP정보를 보여줍니다.
ipconfig랑 아주 비슷하네요.
DHCP사용 여부, IP, MASK, Gateway IP,DNS Server, WINDS Server 정보등을 볼 수 있습니다.
랜카드의 IP 변경하기
“ eth0“라는 이름을 가진 랜카드의 IP를 192.168.0.10으로 변경해 보겠습니다.
netsh interface ip set address ” eth0″ static 192.168.0.10 255.255.255.0 192.168.0.254
또는
Netsh interface ip set address
name=”eth0″ source=static addr=192.168.0.10 mask=255.255.255.0 gateway=192.168.0.1 gwmetric=1
으로도 세팅할 수 있습니다.
이렇게 하면 랜카드 “eth0“이란 이름을 가진 랜카드를 IP 192.168.0.10, Subnet MASK 255.255.255.0, Gateway IP 192.168.0.254로
설정되는 것입니다.
랜카드의 IP를 DHCP로 부터 할당 받기
“eth0“라는 이름을 가진 랜카드의 IP를 DHCP서버에서 할당 받도록 설정해보겠습니다.
간단합니다.
netsh interface ip set address “eth0” dhcp
또는
netsh interface ip set address name=”eth0″ source=dhcp
이렇게 하면, eth0 랜카드의 IP가 dhcp서버에서 할당 받게 되는 것입니다.
랜카드의 DNS 주소를 DHCP로 부터 할당 받기
“eth0“라는 이름을 가진 랜카드의 DNS 주소를 DHCP서버에서 할당 받도록 설정해보겠습니다.
간단합니다.
netsh interface ip set dns “eth0” dhcp
이렇게 하면, eth0 랜카드의 DNS IP가 dhcp서버에서 할당 받게 되는 것입니다.
랜카드의 WINS 서버 주소 할당하기
netsh interface ip set wins “eth0” static 192.168.100.3
랜카드의 WINS 서버 주소를 DHCP Server에게서 할당받기.
netsh interface ip set wins “eth0” dhcp
현재 랜카드 정보를 파일로 저장하기
netsh interface dump >mycfg.txt
파일로 저장해 놓은 랜카드 정보 복구하기
netsh exec mycfg.txt