Hi, after trying to set something with netsh in a dos script, I can't access internet anymore. nothing wrong in "local area connection" properties (ipv4- ip and dns is set to auto.)
Tried disabling dhcp client service and restarted my router.
I get ""Local Area Connection" doesn't have a valid IP configuration" when I try to "diagnose the connection", it doesnt fix the problem and suggest me to restart router.
oh and I noticed Autoconfiguration IPv4 Address. . : 169.254.187.177, thats weird, thats wasnt there.
Code:
Windows IP Configuration
Ethernet adapter Local Area Connection 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5858:461b:864c:bbb1%10
Autoconfiguration IPv4 Address. . : 169.254.187.177
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Tunnel adapter isatap.{69DCD87B-4B5E-45AC-A8E8-37A69703D104}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{B7017F31-CD0D-42CD-A9CE-338AE60DD489}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
C:\Users\User>
ipconfig:
Windows IP Configuration
Ethernet adapter Local Area Connection 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5858:461b:864c:bbb1%10
Autoconfiguration IPv4 Address. . : 169.254.187.177
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Tunnel adapter isatap.{69DCD87B-4B5E-45AC-A8E8-37A69703D104}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{B7017F31-CD0D-42CD-A9CE-338AE60DD489}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : command in bat script I used
Code:
netsh interface ipv4 set address name="%name%" source=static address=%addr% mask=%mask% gateway=%gate%
netsh interface ipv4 set dns name="%name%" static %dns1%
netsh interface ipv4 add dns name="%name%" %dns2% index=2
netsh interface ipv4 set dns name="Local Area Connection" static ""
netsh interface ipv4 add dns name="Local Area Connection" "" index=2
and I did that
Windows 7 Unidentified Network, Limited Access, No Internet Connection Problem Resolved