A server rack is configured to accommodate a network switch. The server rack includes a rack body, at least one stretchable frame, and at least one baffle. The rack body has two first strips opposite to each other. The stretchable frame includes a guiding part and an adjustable part slidably disposed on the guiding part. The guiding part and the adjustable part of the stretchable frame are respectively mounted on the two first strips. The baffle is connected to the guiding part. The baffle is located between the two first strips, and the baffle is configured to be located at a side of the network switch to guide an airflow to the network switch.