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


Groups > alt.os.linux > #60385

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 Soviet_Mario <SovietMario@CCCP.MIR>
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 13:25 +0100
Organization A noiseless patient Spider
Message-ID <qq3mre$ln$1@dont-email.me> (permalink)
References <qq3dm3$ctq$1@dont-email.me> <qq3i15$57m$1@dont-email.me>

Show all headers | View raw


On 08/11/2019 12:03, Paul wrote:
> 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.

mmmm okay so far

> 
> But, what if a computer needs DNS service ? 

but does a PC1 <=> PC2 files-based connection need 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.

ah so this is not what I am needing now

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

I had not been clear, as usual :)
I would not want to isolate the whole to be safe, just to 
setup a LAN that does not go out when not needed and do not 
let strangers in when not asked to
In other words, the independent navigation abilities of both 
computers should not be affectet
I'd just want to enable to establish "direct" communications 
within the "lan" without adding vulnerability

> 
> 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 is a service ? how to verify I have it installed/running ?
is it a protocol ? (this resembles Samba name, has it 
anything to do with Samba ?)

> 
>     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.

before starting I prefer to understand a bit more than now

> 
> *******
> 
> 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.)

I only have two ethernet ports, so I'm not very willing to 
explore the direct connection, as I have to do without the 
internet on both machines

> 
> 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. 

uhm, i do not understand well this point. I own a single 
device called modem-router and has only ethernet ports
I guess this simplifies things ...

> Then,
> straight cables between the router/switch and client computers
> is sufficient to finish the job.
> 
> Just a guess,
>     Paul


-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

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