1. 程式人生 > >CMD命令下修改和檢視IP地址,DNS,閘道器

CMD命令下修改和檢視IP地址,DNS,閘道器

設定IP,DNS,閘道器

>netsh interface ip set address name="本地連線" source=static addr=192.168.132.5 mask=255.255.255.0
>netsh interface ip set address name="本地連線" gateway=192.168.132.1 gwmetric=0
>netsh interface ip set dns name="本地連線" source=static addr=192.168.132.1 register=PRIMARY
>netsh interface ip set wins name="本地連線" source=static addr=none

檢視IP地址,DNS,閘道器

>netsh interface ip show address