ip netns delete testns

Category: Local Network & Public Hosting

ip netns delete testns

Remove a network namespace

Network namespaces isolate their own interfaces, addresses, and routes, and this removes the one named testns, tearing down everything inside it. Interfaces moved into the namespace with ip link set netns return only if explicitly moved back. Deleting a namespace cannot be undone, and the ip netns add testns companion creates it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.