Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3998582
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:32:37+00:00 2026-05-20T07:32:37+00:00

Using clone() or unshare() , we can create a network namespace. Just as the

  • 0

Using clone() or unshare(), we can create a network namespace. Just as the command:

ns_exec -nm -- /bin/bash

(see http://lxc.sourceforge.net/index.php/about/kernel-namespaces/network/configuration/)

If I have created several network namespaces with ns_exec command, where can I see them? or
How can i count the numbers of network namespaces?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:32:37+00:00Added an answer on May 20, 2026 at 7:32 am

    You observe them indirectly. Say, lo devices are independent, iptables rules are independent and so on.

    netns objects live in it’s own kmem_cache:
    grep net_namespace /proc/slabinfo

    But this is unreliable way to count them, as SLUB can share caches.

    There is no /proc file or something dedicated specifically as netns counter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a Div containing an iframe that I can Clone using JQuery.
I have a table where i can add rows using clone function like this:
I'm using the .clone() method to create copies of a collection of nested elements
I just got bit by using .clone() on my 2d boolean array, thinking that
I'm using git clone --reference to reduce network traffic over a slow connection. Now,
I have created dynamically the fields using Clone method. How can I name these
I'm trying to create a Breakout clone using C++, and so have several objects
I am using following C function to create multiple network namespaces from a single
A number of times I've argued that using clone() isn't such a bad practice.
I clone my source using git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git w/ . Then I specify a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.