Home > other >  It might be a stupid question: two machines can be connected to the network segment on the same laye
It might be a stupid question: two machines can be connected to the network segment on the same laye

Time:09-28

Small white to slag off network, ask a stupid question: switches is not judge by MAC address sent to who? Why use router?
Why am I here under a layer 2 switch computer with only one segment of the IP, and other IP network segment?

Thank you for your great god

CodePudding user response:

Should be able to connect, but certainly not to each other,

CodePudding user response:

Why can't each other?

CodePudding user response:

reference 1st floor iamlaosong response:
should be able to connect, but certainly not Shared,
why can't each other

CodePudding user response:

reference u011902922 reply: 3/f
Quote: refer to 1st floor iamlaosong response:

Should be able to connect, but certainly not Shared,
why can't each other
different network segments need to exchange information through a router

CodePudding user response:

Under normal circumstances can use a double card PC as a router, you this kind of situation, a network adapter with double address and soft routing, don't know whether it is feasible, and can have a try,

CodePudding user response:

Not necessarily can't exchange, how to set up, depending on switches

CodePudding user response:

Switch MAC direct contact, not by the so-called exchange from previous telephone program-controlled switches, such as a call b, bring them both a channel exchange directly, not to be listening to others
Switches is this meaning, A and B communication, establish A link between switches directly in his two, unlike previous HUB, through broadcast form,

CodePudding user response:

According to you, could you switch on the second floor is to network management, has been dividing VLAN, so only with the specified VLAN IP address, can pass

CodePudding user response:

Carefully read the TCP/IP communications protocol

CodePudding user response:

Can connect to the same switch, but different network segment is not each other, this is a TCP/IP agreement, in order to reduce the collision domain,
If different network segment can communicate, it's meaningless to subnet mask,

CodePudding user response:

2 switching will not boast of access to a network segment, unless you change the layer 3 switching

CodePudding user response:

On the computer, with which the IP network segment can? You mean should be configured with the IP whether we can get to the Internet, to see whether there is a division of vlan, connect the interface under the same vlan?

CodePudding user response:

If is not in a network segment, the opportunity to look them up in the arp table gateway inside the MAC and contract awarding to the switch switches will not go to hung fan gateway, the gateway can't pass

CodePudding user response:

I had been this problem, what I now understand, 2 hosts to communicate, in view of the TCP/IP protocol analysis, the first layer of the physical layer (here include physical network elements, and the second link protocol, are generally etherenet) is certainly no problem, the second layer network layer, we have A problem here, if the address is A 192.168.0.100 255.255.255.0, B is 172.16.0.100 255.255.255.0, at this level the network layer to communication, you first need to determine whether the network communication, if it is direct call directly Arp agreement to resolve the MAC address of the other party, make A judgment when we configure the IP address of the subnet mask is used, obviously 192.168.0.100 and 172.16.0.100 is not within the same network (host access to the host B, for example, the host, each in his own mask 255.255.255.0 with its own address, destination address do 192.168.0.0 and along with operation is not equal), which is not the network communication, then it should be the gateway to forward, the landlord did not configure the gateway, not communication,

CodePudding user response:

Layer 2 switches break up collision domains, break up a broadcast domain, a router you two different network segments are two different broadcast domains, is certainly need a router (layer 3 switches) to connect,

CodePudding user response:

Two computers in communication will calculate their own mask, if in the same network segment, will direct communication through the second floor, which is based on MAC address forwarding, if not a network segment, will go to the gateway, there is usually no gateway on the layer 2 switch, if not the same network segment, and no gateway, unable to communication,

CodePudding user response:

Not on the second floor, unless you use layer 3 switches, basic translation
  • Related