Skip to main content
9 events
when toggle format what by license comment
Apr 13, 2019 at 19:07 comment added LL3 In theory, for a more robust setup, I’d say you would rather have a job for link-local addresses, and I’d even say that IPv6 would be better suited but I don’t know how confident you are with these. You can do it with IPv4 link-local addresses (169.254/16), too, managed by Avahi daemon and utils, which should be present by default on Ubuntu Desktops (but not on servers by default) and are fairly easy to use.. if you study them a bit
Apr 13, 2019 at 19:00 comment added LL3 I see. The thing is, since you don’t want computer A being a gateway for B, there’s no gateway to be known. I suppose the easiest approach for your case could be: 1. set your computer B’s dedicated interface to “addresses only” so that it won’t pollute the PPP’s DNS configuration and 2. query either the NetworkManager or the DHCP client process that handles computer B’s dedicated interface to get the DHCP server address, because that should always be computer A’s “shared connection”’s address.
Apr 13, 2019 at 17:20 comment added rok Edited with more details. Please see if it's clear now..
Apr 13, 2019 at 17:20 history edited rok CC BY-SA 4.0
more details about final goal
Apr 13, 2019 at 16:57 comment added LL3 I’m missing what your actual goal is. Sharing a connection but without a gateway ? and then knowing the gateway's address ? does not make much sense networking-wise. Do you just want to connect the two computers together ? OR do you need to use computer A as a gateway for B to the Internet and/or to a LAN with different network address ? OR do you perhaps need to use computer A to let B access a wider LAN (i.e. a bridge) ? or what else ?
Apr 13, 2019 at 16:18 comment added rok Just edited my question, I made confusion with A's ip route command, src is fine and has nothing to do with my question..
Apr 13, 2019 at 16:17 history edited rok CC BY-SA 4.0
I was wrong in the question, clarified
Apr 13, 2019 at 15:56 comment added ctrl-alt-delor Use different subnets, e.g. 192.168.n.x
Apr 13, 2019 at 15:49 history asked rok CC BY-SA 4.0