October 29, 2011

set network settings using netsh(ip+alias)

@echo off
REM set network settings for home lan network
netsh interface ip set address name="lan" static 192.168.1.196 255.255.255.0 192.168.1.1 1
netsh interface ip add address name="lan" 192.168.57.196 255.255.255.0
netsh interface ip set dns name="lan" static 192.168.1.1

No comments:

Post a Comment

How to type letters with accent

Very useful article https://www.freecodecamp.org/news/how-to-type-letters-with-accents-on-mac/