Re: local network

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

 



On 6/14/25 11:28 AM, Patrick Dupre via users wrote:
Hello,

I tried to fix a small issue that I have.
PC A is connected to internet through a USB port.
This PC A has 2 RJ45 cards, connected to 2 PC: B and C.
Both interface are in shared to other computers

The problem is this one.
I use /etc/hosts to put a name to each PC connected to A.
PC A is normally always started first.
If PC B and PC C are started always in the same order, there is no problem.
But if I change the starting order, then I cannot connect to them from PC A.
Initially, I configured Automatic DHCP on both (PC B and PC C).
To avoid the issue, I set the configure Manually, but it does not really solve the issue.
It seems that PC A configures the interface connected to PC C in 10.42.0.1 if
PC C is started before PC B, and in 10.42.1.1 if PC C is started after PC B.
In theory, I should not care, but it seems that if PC C is connected first to the interface
then it is set in 10.42.0.1, then PC C address has to be something like 10.42.0.204
while if the interface has been set in 10.42.1.1, PC C address has to be like 10.42.1.204.

How can I solve this issue?
On PC A: Do I need to switch from shared to other computers to Manual?
If Yes how should I configure ?
10.42.1.0   255.255.255.0 Gateway? DNS ?

Thank.


Hi Patrick,

Did you ever get this solved?

I personally would have used a hub to connect
everybody up.  Five port layer two switching hubs
are pretty cheap no-a-days.

https://www.trendnet.com/products/gigabit-switch/5-port-gigabit-desktop-switch-TEG-S51

Or if you want an external firewall, which induces
the hub, this is a bit more expensive and requires
a bit of firewall knowledge to operate:

https://www.watchguard.com/wgrd-products/tabletop/firebox-t25

If not, then:

I do not know if this will help you or not, but
to get ports to forward, I run this inside my
iptables firewall:

# Check and force Masquerading
MasqStatus=`cat /proc/sys/net/ipv4/ip_forward`
if [ "$MasqStatus" = "0" ]; then
   echo 1 > /proc/sys/net/ipv4/ip_forward
   logger -p user.notice -t firewall "Warning: IP FORWARDing forced."
fi


Just try the (as root)
    # echo 1 > /proc/sys/net/ipv4/ip_forward
by itself

Also, would you open a terminal and post the following
for both working and not working?

    netstat -rn

It will show who is up and who is down, plus who is
acting as a gateway.  It will let us all know
what exactly is going on.

-T

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