How to ping two computers

Source: Internet
Author: User

How to ping two computers

Because Ping is based on the IP protocol, you must first ensure that the two computers are in the same subnet. Here, the concept of VLAN and subnet is involved.

 

If the two hosts are not in the same subnet, they cannot be pinged.

If the two hosts are pinged in the same subnet, you can disable Windows Firewall ~~ This is my solution. If other anti-virus software has any firewall
Try to close it to see if the problem can be solved. If not, it may involve network and software settings.

 

Ping is not only a command in windows, but also a command in UNIX and Linux. Ping is only a communication protocol, part of the IP protocol, part of the TCP/IP protocol, Ping
In Windows, an executable command is provided. It can be used to check whether the network can be connected. Using it can help us analyze and determine network faults. Application Format:
Pingip address. This command can also be used with many parameters. Specifically, you can enter Ping and press enter to see detailed instructions. ---- From Baidu

 


Ping works like this: Assume that two hosts, A and B,
If a needs to ping B, it will first check B's IP address and then use it to compare its routetable (route table )?? If a finds that B and it
If it is no longer in the same IP subnet, it will send packets to its default gateway. The default gateway cannot receive this package .. Obviously, neither can B .. So the ping between the two cannot be achieved ....

The netbeui protocol is different, as long as they are in the same broadcast domain, that is, B can receive the broadcast packet sent by. However, Ping is a command based on the IP protocol.

In fact, in the same VLAN... It is equivalent to two machines in the same network segment.


I understand the differences between VLANs and subnets as follows:
Generally speaking, a VLAN is a layer 2 concept. A common Layer 2 switch can be used to divide a VLAN, no matter whether the switch is uplinked to a vro or a Layer 3 switch.
. As long as the vswitch does not have a layer-3 device, after VLAN division, the result is that the host located in different VLANs on the vswitch will not be able to communicate, No matter what protocol you configure, These Hosts
They are disconnected, just like physically isolated two local networks. Subnet is a layer-3 concept, and we generally say that subnet is only a sub-node based on the IP protocol.
Networks and subnets must be divided on three-layer devices (routers and three-layer switches.

 

You can use IP addresses and subnet masks to determine whether the IP address is in a subnet. On the running interface, enter ipconfig/All and press enter to view the IP address of the computer.
And subnet mask. Each host uses its own IP address and its own subnet mask for computation. If the obtained result is the same as that of other hosts, it indicates that they are in the same subnet.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.