Re: local network

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

 



This is what I have done.


1) I cannot configure properly manually my interfaces on PC A, ie. enp1s0 and enp2s0
I do not know why.
I tried 10.42.0.1 and 10.42.0.2
Thenk I played with Gateway and DNS.
Hence, I switched to shared to other computer.
it turned to 10.42.0.1 and 10.42.1.1
Then, I can manually set PC B and PC C to 10.42.0.82 and 10.42.1.204
and have the Gateway and the DNS right (10.42.0.1 and 10.42.1.1, DNS 192.168.1.1)
This does not really solve my probleme, because I need to have both interfaces enp1so and enp2s0
set manually to avoid any change.

Anyway.
I set a bridge with nm-cpnnection-editor.
bridge0 in automatic mode

port1 is set enp1s0
and port 2 to enp2s0
ip link show bridge0
16: bridge0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether 26:a8:27:5e:f2:65 brd ff:ff:ff:ff:ff:ff

 tcpdump -i bridge0
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on bridge0, link-type EN10MB (Ethernet), snapshot length 262144 bytes

0 packets captured
0 packets received by filter
0 packets dropped by kernel


but it does not work (port unreacheble)
nm-cpnnection-editor says never
I tried proxu Automatic and None
IPVA4 setting
I tried Automatic (DHCP)
Automatic (DHCP) addresses only
Link-local only
shared to other computer

I do not know how to set up manually!

Any idea ?




>
> On 6/15/25 12:32 PM, Samuel Sieb wrote:
> > On 6/15/25 1:42 AM, Patrick Dupre via users wrote:
> >> PC A is connected to internet and it is fine. device enp0s20f0u11
> >> It is in automatic setting.
> >> This PC has 2 ethernet cards
> >> By default
> >>   enp1s0 (connected to PC B) and enp2s0 (connected to PC C)
> >> If I understand PC A run as a router.
> >> By default (shared to other computer) if I start PC B first (after PC 
> >> A and before PC C)
> >> enp1s0 takes 10.42.0.1
> >> and
> >> enp2s0 takes 10.42.1.1
> >> PC A in DHCP (automatic) assigns an IP 10.42.0.82
> >> while PC B get 10.42.1.204.
> >>
> >> If I reverse the starting order enp1s0 and enp2s0 addresses are switched.
> >>
> >> It is fine except that PC B and PC C do not communicate together.
> >>
> >> If I understand I need to configure every thing manually to have a 
> >> single network
> >> for example
> >> enp1s0 would have 10.42.0.1 PC B could have 10.42.0.82
> >> enp2s0 would have 10.42.0.2, PC C could have 10.42.0.204
> >>
> >> Then, what would be the Gateways ? 10.42.0.x (x=1 and x=2 ?)
> > 
> > Now you're getting more complicated.  For that you need to create a 
> > bridge over both ethernet interfaces, then set the bridge to shared. Set 
> > the IP address and subnet.  Then set B and C to have a static address in 
> > that subnet.  The gateway and DNS will be the address of A that you set 
> > in the shared interface.
> 
> You will need to use nm-connection-editor for this.
> 
> -- 
> _______________________________________________
> 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
>
-- 
_______________________________________________
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