GO:0050801: ion homeostasis
Any process involved in the maintenance of an internal steady state of ions within an organism or cell.