As mentioned before, never put switches, modems or routers in a attic or garage. You want air conditioned space and airflow. A closet is fine but put a louver high up on the door and leave some breathing space around the equipment.
A Central Location is important, because likely one of your...