Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the network namespace in Linux? [closed]

Can you tell me What's the network namespace in Linux?

And Why need network namespace in Linux?

In Linux network driver, I do not find any related about network namespace.

Is it related with network protocol in Linux?

Thanks!

like image 597
cnnbcza Avatar asked Nov 30 '25 17:11

cnnbcza


1 Answers

It's related to container support (e.g. LXC). Each container is like a separate OS, like a virtualized system, but there's still only one kernel. So the kernel needs some way to separate stuff into separate namespaces per container (e.g. PID 1234 in container 1 is not the same process as PID 1234 in container 2). Network namespaces is thus the "containerization" of the network stuff.

like image 72
janneb Avatar answered Dec 03 '25 12:12

janneb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!