The simplest way is to unplug your ethernet cable for wired network. For wireless, just go to Network Connection and choose "disconnect" if you are using Windows. That applies for the whole system.
Some individual applications, like web browser, offer an offline mode and that applies to individual program only. Mostly you can find it under the Main Menu.