Attach drive to time machine backups

I have an airport extreme. I would like to attach my external hard drive to it and have "time machine" backup to it. It seems that "time machine" can only backup to a drive that is physically attach to the machine. Is that so? If not, how can I get it to work?