Binary package “ifscheme” in ubuntu bionic

scheme control for network interfaces

 ifscheme allows you to change network configuration schemes or query the
 current scheme. It integrates with the ifup(8) command and interfaces(5). For
 example, you might use this program to configure a "home" scheme and a "work"
 scheme for a network device on a laptop. When you move between home and work,
 a simple command can reconfigure your networking.