Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #60382

Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable

From Paul <nospam@needed.invalid>
Newsgroups alt.os.linux
Subject Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable
Date 2019-11-08 06:03 -0500
Organization A noiseless patient Spider
Message-ID <qq3i15$57m$1@dont-email.me> (permalink)
References <qq3dm3$ctq$1@dont-email.me>

Show all headers | View raw


Soviet_Mario wrote:
> 
> Hi, I am completely new to this topic, so sorry if my questions seem 
> really trivial and silly
> 
> I'd like to connect, with "peer" rights (I mean both should be able to 
> access the other's resources, expecially disks and files), two PC.
> Both run Linux (various distros) and both are attached to the same 
> modem-router (a TP-link with four ethernet ports)
> via independent ethernet cables (non crossed, standard)
> 
> I've read that with a crossed cable two PC can be connected.
> But since both PC have just a single ethernet port, this way none could 
> be at the same time remain connected to the internet.
> 
> So I do not find this solution viable
> 
> Is it there a way to set up some kind of "lan" via the modem-router ?
> 
> I mean that traffic SHOULD NOT go outside, on the internet, and come 
> back and reenter, but be "short-circuited" in the router.
> 
> if possible, some particular supplementary HW is needed ?
> 
> maybe i just have enough SW installed without knowing it.
> How to setup this simple peer-to-peer lan not letting anything "out" ?
> 
> what should I configure ?
> 
> tnx in advance. I apologize for the trivialness of the question, but I 
> am completely ignorant on networks

                       |<---------- router_box ----------->|          LAN

    X-- WAN ---------- Router_Block -------- Learning Switch ------- Comp#1
                       DHCP daemon           with 4 ports    ------- Comp#2
                       DNS daemon                            ------- Comp#3
                                                             ------- Comp#4

For ordinary traffic, the Learning Switch portion of the router box,
examines the MAC addresses in the packets. It knows which port
has which MAC addresses seen on it. It can then send an incoming packet
to the correct port, using nothing but the MAC address for a hint.

For LAN traffic on the right, most of the operations are handled
by the switch. That means #1 can talk to #2, without help from
the Router_Block. Packets from #1 to #2, stay within the Learning
Switch.

But, what if a computer needs DNS service ? A DNS query headed towards
the switch, the Comp#1 knows that 192.168.1.1:53 is the upstream
DNS. So it makes a DNS query there. The Router_Block can then send the
query to the WAN.

Now, if you disconnect the WAN cable, DNS will stop working.
But this is not a big deal, for your "isolated traffic" case.

OK, what about when the computer boots. Does the DHCP daemon
inside the router still work ? The computer #1 should get
address 192.168.1.2 from DHCP on the router_block portion
of the router. The computer #2 should get address
192.168.1.3.

Now that both computers have addresses (but not symbolic
names), the computers still work.

    ping 192.168.1.2        # From the computer with 192.168.1.3 address
    ping 192.168.1.3        # From the computer with 192.168.1.2 address

You should be able to do that much. If you have SMB Client set
up, in the File Manager you should be able to do

    smb://192.168.1.3/shared_disk   # From the computer with 192.168.1.2 address

and it should work.

It won't take you long to test this.

*******

As for the ports, the need for "crossover" cable, varies with NIC type.
10/100BT NIC interfaces use only four wires out of the total
eight electrical contacts. Pins 1,2,3,6 are used for a TX pair
and an RX pair.

When connecting two 10/100BT devices to one another, you need
a Crossover cable, so TX goes to RX, and RX goes to TX. The four
wires on each of the two computers, need to be physically connected
properly for it to work.

                            Crossover
      10/100BT  TX-output =============> RX-input  10/100BT
                RX-input <============= TX-output

      "The nuisance case requires contemplation by the user..."
      (The WAN connector on the router has reversed 10/100BT pairs.
       That's one reason why the connector is yellow.)

The GbE NICs are different. To run at 1 gigabit per second,
requires usage of all eight wires. That's a total of four pairs.
The pairs operate in parallel, and are full duplex. And an
interesting feature of the eight wire interface, is called
MDI/MDIX. When a GbE NIC is connected to a 10/100BT NIC,
via negotiation, the GbE NIC "re-wires" the interface,
so a straight-thru cable will work.

                            Straight
      10/100BT  TX-output =============> RX-input  GbE auto-negotiates
                RX-input <============= TX-output  the correct direction...
                                     == pair 3     Magical!!!
                                     == pair 4

                           Straight
           GbE  pair 1 <=============> pair 1  GbE auto-negotiates
                pair 2 <=============> pair 2  the wiring for this too
                pair 3 <=============> pair 3
                pair 4 <=============> pair 4

Thus, a computer room which has nothing but GbE equipment,
could survive without any crossover cables at all.

Most of the time, when you buy a modem or a router, there
will be a short yellow cable in the box, and that typically
solves the connection between the modem and router. Then,
straight cables between the router/switch and client computers
is sufficient to finish the job.

Just a guess,
    Paul

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-08 10:48 +0100
  Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Dan Purgert <dan@djph.net> - 2019-11-08 10:42 +0000
    Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-08 13:13 +0100
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-08 13:33 +0100
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable William Unruh <unruh@invalid.ca> - 2019-11-08 16:44 +0000
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Dan Purgert <dan@djph.net> - 2019-11-08 14:21 +0000
  Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Paul <nospam@needed.invalid> - 2019-11-08 06:03 -0500
    Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-08 13:25 +0100
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-08 13:39 +0100
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-08 17:25 +0100
          Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "J.O. Aho" <user@example.net> - 2019-11-08 22:01 +0100
          Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-09 11:47 +0100
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Chris Elvidge <chris@mshome.net> - 2019-11-08 12:53 +0000
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-08 14:27 +0100
  Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-08 13:48 +0100
    Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Dan Purgert <dan@djph.net> - 2019-11-08 14:24 +0000
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-08 17:43 +0100
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable William Unruh <unruh@invalid.ca> - 2019-11-08 17:07 +0000
          Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-09 11:51 +0100
            Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable William Unruh <unruh@invalid.ca> - 2019-11-09 15:17 +0000
              Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-09 20:30 +0100
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Dan Purgert <dan@djph.net> - 2019-11-08 17:51 +0000
          Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-09 11:53 +0100
            Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable William Unruh <unruh@invalid.ca> - 2019-11-09 15:21 +0000
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-09 11:54 +0100
    Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Ken Hart <kwhart1@frontier.com> - 2019-11-08 09:41 -0500
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-08 16:10 +0100
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Ken Hart <kwhart1@frontier.com> - 2019-11-08 15:47 -0500
          Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Dan Purgert <dan@djph.net> - 2019-11-08 20:58 +0000
            Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-09 12:02 +0100
              Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Dan Purgert <dan@djph.net> - 2019-11-09 23:28 +0000
                Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-10 15:02 +0100
                Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Dan Purgert <dan@djph.net> - 2019-11-10 14:32 +0000
                Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-10 20:04 +0100
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-08 17:56 +0100
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-09 12:21 +0100
          Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-10 16:53 +0100
            Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Dan Purgert <dan@djph.net> - 2019-11-10 17:31 +0000
            Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-10 20:09 +0100
    Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-08 17:38 +0100
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable "Carlos E.R." <robin_listas@es.invalid> - 2019-11-09 12:37 +0100
  Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Ken Hart <kwhart1@frontier.com> - 2019-11-08 09:05 -0500
  Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Chris Elvidge <chris@mshome.net> - 2019-11-08 14:06 +0000
    Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-08 18:21 +0100
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Chris Elvidge <chris@mshome.net> - 2019-11-08 18:49 +0000
        Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-09 00:49 +0100
      Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable William Unruh <unruh@invalid.ca> - 2019-11-08 20:07 +0000
  Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable William Unruh <unruh@invalid.ca> - 2019-11-08 16:43 +0000
    Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Paul <nospam@needed.invalid> - 2019-11-08 16:51 -0500
  Re: [Niubbo-mode on] connecting two linux PC by means of a single modem-router to whom they are just connected via eth. cable Soviet_Mario <SovietMario@CCCP.MIR> - 2019-11-10 11:21 +0100

csiph-web