This opens an interactive shell whose network stack is completely isolated from the host, so ip addr and ping inside it see only what testns contains. It is the standard way to poke around a namespace or run a service inside one. Exit the shell to return to the host's networking.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.