Hello,
in addition to the other post, check if your ports support the ´mdix auto´ command, which enables the ports to automatically detect a straight or crossover cable, hence making it insignificant which one you use.
Check this info from CCO:
You can use the mdix auto interface configuration command in the CLI to enable the automatic medium-dependent interface crossover (Auto-MDIX) feature. When the Auto-MDIX feature is enabled, the switch detects the required cable type for copper Ethernet connections and configures the interfaces accordingly. Therefore, you can use either a crossover or a straight-through cable for connections to a copper 10/100, 10/100/1000, or 1000BASE-T SFP module port on the switch, regardless of the type of device on the other end of the connection.
The Auto-MDIX feature is enabled by default on switches running Cisco IOS Release 12.2(18)SE or later. For releases between Cisco IOS Release 12.1(14)EA1 and 12.2(18)SE, the Auto-MDIX feature is disabled by default. For configuration information for this feature, see the switch software configuration guide or the switch command reference.
HTH,
GP