D
D
Dmitry2014-08-20 09:35:36
System administration
Dmitry, 2014-08-20 09:35:36

How to fix network connection via cmd?

The computer receives the network card settings automatically, but sometimes it does not receive the "Default Gateway". Because of this, the Internet refuses to work on the computer.
Manual entry of ip into the main gateway does not solve this problem. However, after some time, the Internet does not work.
In the network connection status view in XP, there is a "Fix" button.
88ead6f89cbd4604a87bf91ce52be486.jpg
After pressing it, the Internet starts working again.
Is there any way to run this command using cmd? For example, then to make a bat-file and place it in autoload.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
VDolinsky, 2014-08-20
@VDolinsky

ipconfig /renew

D
Dmitry, 2014-08-20
@firlix

Repair Connection
The Network Connection Repair feature can be used to quickly restore IPv4 network connection settings. This can help troubleshoot common configuration issues. When fixing a network connection, a number of tasks are performed to restore the connection as if it had just been initialized To start fixing a network connection, follow these steps:
Click the Start button, point to Control Panel, and then double-click Network Connections.
Right-click the connection you want to fix and select Fix from the context menu.
You can also click the Fix button on the Support tab in the Network Connection Status window.
Repairing a network connection does the following:
Checks to see if DHCP is enabled and, if enabled, sends a DHCPRequest broadcast message to update the IPv4 address configuration.
The ARP cache is cleared. This is equivalent to arp -d *.
The DNS client resolution cache is cleared and reloaded with entries from the Hosts file. This is equivalent to the ipconfig /flushdns command.
Dynamic DNS update re-registers DNS names. This is equivalent to the ipconfig /registerdns command.
The NetBIOS name cache is cleared and reloaded with #PRE entries from the Lmhosts file. This is equivalent to the nbtstat -R command.
The Windows Internet Name Service (WINS) releases and then re-registers the NetBIOS names. This is equivalent to the nbtstat -RR command.
technet.microsoft.com/en-us/library/bb727023.aspx

S
Sergey, 2014-08-20
@edinorog

netsh interface set interface name="Local Area Connection" admin=DISABLED
netsh interface set interface name="Local Area Connection" admin=ENABLED
not?)

M
Mikhail Lyalin, 2014-08-20
@mr_jok

first you need to identify and eliminate the cause
windata.ru/windows-world/utility/utility-windows-d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question