I'm assuming you are having other switches as well. If you do, using Spanning tree for Layer 2 redundancy and HSRP for Layer 3 redundancy. The following page should help
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: