how to extend ethernet cable to another room

how to extend ethernet cable to another room.