iface dlink inet static address 192.168.0.2 netmask 255.255.255.0 up ip addr add 10.10.0.2/24 dev $IFACE || true down ip addr del 10.10.0.2/24 dev $IFACE || true iface openwrt inet static address 192.168.1.2 netmask 255.255.255.0 up ip addr add 192.168.1.2/24 dev $IFACE || true down ip addr del 192.168.1.2/24 dev $IFACE || true iface easybox inet static address 192.168.2.2 netmask 255.255.255.0