Empty windows system network configuration

Empty windows system network configuration

Source   https://www.cnblogs.com/lemon-rain/p/9569990.html

 

Specific description: qq, micro-channel network is available, but the other can not be used.

A, win + r Open input command cmd: ipconfig / all view the DNS

C: \ WINDOWS \ system32> ipconfig / all 

Ethernet adapter Ethernet: 

   connection-specific DNS suffixes:....... 
   Description:....... ........ Intel (R) 82579LM Gigabit Network Connection 
   physical address:............. 3C-97-0E-CE-A4-35 
   the DHCP enabled:........... No 
   automatic configuration has been enable:......... is the 
   link-local IPv6 address:....... . fe80 :: 8046: b71f: 1968: 8790% 20 ( preferred) 
   IPv4 addresses....... .....: 172.16.99.173 (preferred) 
   Subnet Mask:....... ..... 255.255.255.0 
   default gateway:............. 172.16. 99.1 
   DHCPv6 IAID:........... 339.51515 million 
   DHCPv6 client DUID:...... . 00-01-00-01-22-8E-21-2D-A4-4E-31- AA-B4-97 
   the DNS server...........:fec0: 0: 0: ffff :: 1% 1 
                                       fec0: 0: 0: ffff :: 2% 1 
                                       fec0: 0: 0: ffff :: 3% 1 
   the NetBIOS on TCPIP:...... . enabled 

C: \ WINDOWS \ system32>

 

Second, open a text editor, enter the following text:

 

netflush.bat

@Echo on
pushd\windows\system32\drivers\etc
attrib -h -s -r hosts
echo 127.0.0.1 localhost>HOSTS
attrib +r +h +s hosts
popd
ipconfig /release
ipconfig /renew
ipconfig /flushdns
netsh winsock reset all
netsh int ip reset all
shutdown -r -t 3
del %

 

Third, the above text as a file netflush.bat

Fourth, right-click Run as administrator. The program will reset the network settings, and automatically restart the computer.

 

 

Windows command line to modify the IP address of the DNS address

 

1. Modify the IP address:

Set the IP address:

  netsh interface ip set address name = "Local Area Connection" source = static addr = 192.168.1.100 mask = 255.255.255.0 gateway = 192.168.1.1

Empty IP address:

  netsh interface ip set address name = "Local Area Connection" source = dhcp

Parameter Description:

1.name: network connection name, usually "local connection." You can "Control Panel" - see> "Network Connections".

2.source: Obtain an IP route. Dynamic acquisition, compared with dhcp, manually set, was static.

3.addr: IP address to be set.

4.mask: subnet mask.

5.gateway: gateway address.

6.gwmetric: gateway metrics can be set to an integer value, may be set to "auto": auto

 

2. Modify the DNS address:

Providing a single DNS address:

  netsh interface ip set dns name = "Local Area Connection" source = static addr = 202.200.100.3 register = primary

Set up multiple DNS address:

  netsh interface ip set dns name = "Local Area Connection" static Source addr = = = 202.200.100.3 Primary Register
  the netsh the Add DNS IP interface name = "Local Area Connection" addr = 61.134.100.14

Clear DNS address:

 netsh interface ip set dns name = "Local Area Connection" source = dhcp

Parameter Description:

1.name: network connection name, usually "local connection." You can "Control Panel" - see> "Network Connections".

2.source: Obtain an IP route. Dynamic acquisition, compared with dhcp, manually set, was static.

3.addr: IP address to be set.

4.register:

5.none: disable dynamic DNS registration.

6.primary: Only registered under the primary DNS suffix.

7.both: registered under the primary DNS suffix, is also registered under a particular connection suffix.

8.index: DNS sequence number set.

 

3, export the configuration file

netsh -c interface dump>c:\ip.txt

 

4. After the machine configuration of the present modification introduced

netsh -f c:\ip.txt

 

==================== End

 

Guess you like

Origin www.cnblogs.com/lsgxeva/p/11343932.html