Re: internal network

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2025-03-01 at 23:22 +0100, Patrick Dupre via users wrote:
> I had a configuration with was working, but my usb WiFi doogle does
> not work anymore.

Replacing it isn't an option?

As for the best way forward...  It might be worth letting us know if
you were using a mix of cabled ethernet and WiFi because that's what
you want to do, or just because you managed to get things working that
way before.

The simplest solution for a small LAN is usually some kind of router
with WiFi connected to your internet service, and everything connected
to that in whatever way's convenient (cabled or WiFi).  Often it is the
device that connects to your internet, or it might sit after it.

       ISP
        |
      router
       /  \
      PC  PC   (cabled or wireless connections) 


> The configuration which was working
> 
> Doogle on PC A with 2 ethernet cards.
> One connected to PC B: a laptop
> one connected to PC C
> 
> Now, The laptop PC B is connect to a wifi mobile.
> It works
> wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.43.115  netmask 255.255.255.0  broadcast 192.168.43.255
> 
> I set the ethernet interface "shared to other computers"
> enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 10.42.0.1  netmask 255.255.255.0  broadcast 10.42.0.255
> 
> Now I am trying to connect this ethernet card to PC A
> From the network interface, It tried
> "shared to other computers"
> and
> "Automatic (DHCP)",
> but none of them allow me to make the connection
> (connecting for ever).

Sharing a connection *should* set up what you need for that PC to act
as your router.

That DHCP setting expects some DHCP server on your LAN to configure
that interface for you.  If you don't have one, then use manual
configuration of your network settings.  For what you're doing, with
just three devices, manual setting is probably easier to manage (on
every device, set the interfaces you're using with the IPs you want).

You seem to have:

WiFi mobile
192.168.43.1
      |
      |
192.168.43.115
     PC B (acting as a gateway)
   10.42.0.1
      |
      |
   10.42.0.5
     PC A

PC A will need to have PC B (10.42.0.1) configured as its gateway
address.

And PC B will need to have the WiFi mobile (192.168.43.1) as its
gateway address for the 192.168.43.115 interface.  "Sharing" out its
10.42.0.1 interface ought to set up internal networking properly.

This is where things get confusing...  On some PC systems you would be
sharing the internet connection (turning PC B into a router between the
192.168/16 and 10.42/16 networks).  On others sharing seems to define
which interface faces the LAN.

I used to do this around 20 years ago with dial-up internet (like the
above sketch, but with a public IP on the outside face of B).  This was
pre-NetworkManager days, and I used a script to set up my networking,
setting up a IP forwarding flag and firewall rules.

As for pinging between A & B not working...  Firewall rules?  Cross-
over ethernet cable (I know they're *rarely* required these days).

> Hence, I tried manually
> 10.42.0.5  255.255.255.0
> It connected
> enp1s0 flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 10.42.0.5 netmask 255.255.255.0  broadcast 10.42.0.255
> 
> But the 2 computers do not talk together
> From PC B to PC A:
>  ping 10.42.0.5
> PING 10.42.0.5 (10.42.0.5) 56(84) bytes of data.
> From 10.42.0.1 icmp_seq=1 Destination Host Unreachable
> traceroute to 10.42.0.5 (10.42.0.5), 30 hops max, 60 byte packets
>  1  Sappho (10.42.0.1)  3068.823 ms !H  3068.691 ms !H  3068.614 ms !H
> route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 0.0.0.0         192.168.43.1    0.0.0.0         UG    600    0        0 wlp2s0
> 10.42.0.0       0.0.0.0         255.255.255.0   U     100    0        0 enp3s0
> 192.168.43.0    0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0
> 
> From PC A to PC B:
> same behavior
> route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 10.42.0.0       0.0.0.0         255.255.255.0   U     100    0        0 enpls0
> 192.168.122.0   0.0.0.0         255.255.255.0   U     600    0        0 virbr0
> 
> 
> For now all my tests to connect to PC C failed.
> 


 
-- 
 
uname -rsvp
Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 

-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux