Home > Common Problem > body text

How to solve the problem that the LAN cannot be accessed after the route add command

小老鼠
Release: 2024-05-07 00:51:16
Original
392 people have browsed it

Solution: Check default gateway, IP address and subnet mask, configure firewall, clear ARP cache, check DNS settings, reset network configuration.

How to solve the problem that the LAN cannot be accessed after the route add command

Solution to LAN inaccessibility after route add

Problem:route add command Afterwards, the LAN cannot be accessed.

Solution:

Step 1: Check the default gateway

Make sure the computer's default gateway is correct. Enter the following command at the command prompt:

<code>ipconfig /all</code>
Copy after login
Copy after login

Check whether the value of Default Gateway is the gateway address of the LAN.

Step 2: Check the IP address and subnet mask

Make sure that the computer is assigned an IP address and subnet mask within the LAN. Check using the following command:

<code>ipconfig /all</code>
Copy after login
Copy after login

The IP Address should be similar to 192.168.1.100 and the Subnet Mask should be similar to 255.255.255.0.

Step 3: Check the firewall

The firewall may be preventing the computer from communicating with the LAN. Check your firewall settings to make sure network sharing and file access are allowed.

Step 4: Clear the ARP cache

The ARP cache stores the mapping between IP addresses and MAC addresses. If the ARP cache is corrupted, the computer may be unable to communicate with devices on the LAN. Clear the ARP cache using the following command:

<code>arp -d</code>
Copy after login

Step 5: Check DNS settings

Incorrect DNS settings may prevent the computer from accessing devices on the LAN. Make sure the DNS server address is correct and that the computer can access the DNS server.

Step 6: Reset network configuration

If none of the above steps solve the problem, consider resetting the network configuration. Enter the following command at the command prompt:

<code>netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns</code>
Copy after login

and then restart the computer.

The above is the detailed content of How to solve the problem that the LAN cannot be accessed after the route add command. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template