以下為特定IP自動配置↓
REM name → 網路的名稱
REM static addr → IP
REM mask → 子網路遮罩
REM gateway → 預設閘道
netsh interface ip set address name="區域連線" source=static addr=140.115.237.84 mask=255.255.0.0
netsh interface ip set address name="區域連線" gateway=140.115.236.254 gwmetric=1
REM 設定DNS
netsh interface ip set dns name="區域連線" source=static addr=140.115.1.31
netsh interface ip add dns name="區域連線" addr=140.115.236.110 index=2
pause
以下為DHCP自動配置↓
netsh interface ip set address name="區域連線" source=dhcp
netsh interface ip set dns name="區域連線" source=dhcp
pause
沒有留言:
張貼留言