You are not logged in.
I work in a network where multiple gateways are provided. For various tasks I switch between them.
$ ls /etc/systemd/network
20-wired-gw1.network
20-wired-gw2.network.offNow if I want to switch between them I do the following:
$ systemctl stop systemd-networkd
$ mv /etc/systemd/network/20-wired-gw1.network /etc/systemd/network/20-wired-gw1.network.off
$ mv /etc/systemd/network/20-wired-gw2.network.off /etc/systemd/network/20-wired-gw2.network
$ systemctl start systemd-networkdI am just curious if there are better (built in) ways to achieve that? Of course I could write a script for that.
Offline