Repair LAN Connection : What happens when we repair LAN connection

Many users have to frequetly repair lan connection to maintain the connection and continue browsing. When you click on repair connection at that time following process takes place in the sequence it is mentioned below. Also the commands that are executed are also mentioned in below.

  • Dynamic Host Configuration Protocol (DHCP) lease is renewed:
    ipconfig /renew
  • Address Resolution Protocol (ARP) cache is flushed:
    arp -d *
  • Reload of the NetBIOS name cache:
    nbtstat -R
  • NetBIOS name update is sent:
    nbtstat -RR
  • Domain Name System (DNS) cache is flushed:
    ipconfig /flushdns
  • DNS name registration:
    ipconfig /registerdns

You can automate this process by creating a batch file to execute the above commands and then loop the file if you get frequent connection problems.

Here is a sample code for looping batch file. Put the below code in rlc.bat

ipconfig /renew
arp -d *
nbtstat -R
nbtstat -RR
ipconfig /flushdns
ipconfig /registerdns
call rlc.bat

To see the description of each of these commands Click Here