ns_mode

file: /proc/sys/net/ns_mode
variable: net.ns_mode
Official reference

Read-only. Reports the current namespace’s mode, set at namespace creation and immutable thereafter.

Values:

- ``global`` - the namespace shares system-wide CID allocation and
  its sockets can reach any VM or socket in any global namespace.
  Sockets in this namespace cannot reach sockets in local
  namespaces.
- ``local`` - the namespace has private CID allocation and its
  sockets can only connect to VMs or sockets within the same
  namespace.

The init_net mode is always global.