As i know from my ccna study when i connect a Router(DTE) to a computer(DTE) i need to use a cross cable.
In my lab i tryed to do this with straight cable and it also worked.
How can it be? is the router can work either way?
The feature is called auto MDI/MDIX.
Which is there by default on some ports actually it is an hardware based application which detects the signaling.
The port auto detect the nature of the cable and make the necessary adjustments in signaling.