S
S
Sergey2015-02-01 15:01:33
linux
Sergey, 2015-02-01 15:01:33

How to connect a computer to a computer via a switch?

Is it possible to connect a computer to a computer via a switch (which is used to distribute the Internet to them), i.e. so that they can communicate with each other and go to the Internet?
And if so, how?
PS one computer on Debian testing (8), and the other on WinXP

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Artem @Jump, 2015-02-01
curated by the

Is it possible to connect a computer to a computer through a switch
- can.
And if so, how?
- take a patch cord, plug one end into the computer's network card, the other into a free switch port, do the same with the second computer.

C
Cool Admin, 2015-02-02
@ifaustrue

If they receive Internet through this switch, then they already have a connection with each other.
Just from one computer run the command ping %IP_NEIGHBOR_ADDRESS%
***pysy is very sorry to see questions of this level on this resource.

R
rexer, 2015-02-01
@rexer

Switch depending on what. If unmanaged, then there will be no problems - both machines will be in the same broadcast domain, which means you will be on the same local network.
In the case of a managed switch, when configuring the switch itself, you can be in different VLANs, i.e. in different local networks.
Connect everything with a regular Ethernet cable, as usual.
Make sure that firewalls do not block packets from computers.

M
MaySky, 2015-02-01
@MaySky

Is it possible to connect a computer to a computer via a switch (which is used to distribute the Internet to them), i.e. so that they can communicate with each other and go to the Internet?
Switch for Internet distribution? It turns out you have a router, not a switch. The actions are the same as in the case of the switch, as with the router. Take a properly crimped patch cord, plug one end into the network card of one computer, and the other end into the switch. Do the same on the second computer.
If you still have a switch, then you will need to register IP addresses on both machines from the same subnet (for example, one computer is 192.168.0.2, the second is 192.168.0.3), set the mask to 255.255.255.0.
If you still have a router and DHCP is enabled on it, then you will receive the addresses automatically.
Both computers will see each other over the network and, if you still have a router, go through it to the Internet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question