On 11/8/22 18:09, Michael D. Setzer II via users wrote:
Probable a simple solution, but its been a while since I done this type of stuff. Have a cable modem that has 4 ports but using 2. First port gets public IP xxx.xxx.233.11 with private network 192.168.16.x Second port gets public IP xxx.xxx.234.251 with private network 192.168.24.x ip route default via 192.168.16.1 dev enp8s0 proto dhcp metric 100 default via 192.168.24.1 dev wlp7s0 proto dhcp metric 600 192.168.16.0/24 dev enp8s0 proto kernel scope link src 192.168.16.101 metric 100 192.168.24.0/24 dev wlp7s0 proto kernel scope link src 192.168.24.13 metric 600
With the info above I understand your modem has an ethernet connection and a wireless connection, each of them gets a public IP (is this a cable as primary + phone as backup type of device?). Having two private networks looks a bit strange and it is not clear what you mean. The modem is indeed acting as two different devices? One exposing the cable and one exposing the wireless, each with its own internal private network? I suppose that could be. Then, what is this "ip route"? I suppose this is on a machine of yours, that is connected at the same time to the two "modems" and, I suppose, for each interface the machine has got a private address by modem DHCP. At this point, you indeed have two ways to go to the internet, and that is explicit by your two default route rules. The ethernet one wins because the metric is lower, so it is preferred. The wireless one will only play if the ethernet one gets removed. It could make sense: if you disconfigure the ethernet (removing the cable may trigger this, depending on NetworkManager, if you use it), the second route becomes the active choice. What you are not saying is: what is your problem? Connectivity between machines on the two private subnetworks? If that is the case, the only actor that can make it work is the cable modem; it must stop acting as two distinct modems and let forwarding to happen between the two subnetworks. You do not need special configuration on the machines, since they are in a way or another sending all their packets to the modem itself (thanks to the active default route). Add details if one of my assumptions are wrong. Regards. -- Roberto Ragusa mail at robertoragusa.it _______________________________________________ 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