ip netns exec myns ip addr

Category: Networking

ip netns exec myns ip addr

Run a command inside a network namespace

Executes a command with the network context of the named namespace. Useful for debugging container networking by running tools like ip, ss, or ping inside the isolated network environment Docker or Kubernetes created.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.