Re: ethernet connection



On Wed, Feb 12, 2020 at 10:29:36PM +0100, read shrl nl wrote:
Is there a way to configure two wired connections. One for my home
network (assigned-mac-address=permanent) and one for all other wired
connections (assigned-mac-address=random) in a manner at which
networkmanager autodetects if the wired connection is at my home
network?

Hi Jaap,

Set one of connections as connection.autoconect=True, let's say
`other wired connections` is auto connect.

Then add a script in /etc/NetworkManager/dispatcher.d
to probe the network, if noticed(for example by checking connected
device, like dock, keyboard, mouse) its home, use `nmcli c up home`
to switch network connection.


-- 

Jaap van Wingerde
e-mail: read shrl nl

-- 
Gris Ge

Attachment: signature.asc
Description: PGP signature



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