Legal Separation

Do we need to legal file for separation to be living separate? If we’re just wanted to go through a trial separation, but with the military and all that, do we need to file legally. Don’t want to be doing anything unlawful, but we don’t want to have to file anything unless we know for sure. Links appreciated.