Even though you aren't connected via modem, I believe that this also applies to dsl. (seen this on apple discussion board)
Open System Preferences and click Network.
Choose your modem port (internal or external) from the Show pop-up menu, then click PPP Options.
Click the "Disconnect if idle for __ minutes" checkbox to deselect this option, or increase the number of minutes.