Simply put, crossover cable. But you have to manually assign IP's.
Crossover cable is for same devices (computer to computer, switch to switch)
Normal ethernet cable is for unlike devices (router to computer, switch to computer)
Some devices these days are autosensing so it wouldn't matter, but I still make the appropriate cable for the job at hand. (yep, make.)