These commands are used to configure the network settings of the "本地连接" (Local Connection) interface.

  1. netsh interface ip set address name="本地连接" source=dhcp: This command sets the IP address configuration to obtain the address dynamically from a DHCP server.
  2. netsh interface ip set dns name="本地连接" source=dhcp: This command sets the DNS server configuration to obtain the server addresses dynamically from a DHCP server.
  3. netsh interface ip set address name="本地连接" source=static addr=192.168.81.8 mask=255.255.255.0 gateway=192.168.81.2: This command sets the IP address configuration to a static address of 192.168.81.8 with a subnet mask of 255.255.255.0 and a default gateway of 192.168.81.2.
  4. netsh interface ip set dns name="本地连接" source=static addr=192.168.81.2: This command sets the DNS server configuration to use a static address of 192.168.81.2.

Overall, these commands are used to switch between obtaining network settings dynamically through DHCP and manually configuring static settings for the "本地连接" interface

netsh interface ip set address name=本地连接 source=dhcp && netsh interface ip set dns name=本地连接 source=dhcp && netsh interface ip set address name=本地连接 source=static addr=192168818 mask=2552552550 gatewa

原文地址: https://www.cveoy.top/t/topic/ixhc 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录