When you connect two devices of different types together, you use a straight through cable. When you connect two devices of the same type together, you use a crossover cable. All cables are straight through if you insert a network device between two devices of the same kind.