Enable network namespaces in CentOS 6.4Posted: November 22, 2013
By default, CentOS 6.4 does not support network namespaces. If one wants to test the new virtualization platforms (Docker, OpenStack, & co…) on a CentOS server, all features won’t be available.
For OpenStack for example, Neutron won’t work as expected, since it actually needs network namespace to create networks,
Fortunately, RedHat – through RDO – provides a kernel that get this feature backported.
So, before updating the kernel, if one runs :
#> ip netns list
s/he will be presented with the following error message : Object “netns” is unknown, try “ip help”.
The following steps needs to be realized to install the new kernel and enable the network namespace feature
#> yum install -y http://rdo.fedorapeople.org/rdo-release.rpm #> yum install kernel iproute #> reboot
And that’s it. Really.
Now one can run
#> ip netns add spredzy #> ip netns list
spredzy should get displayed.
If everything is working one should have the following kernel and iproute packages installed :
kernel-2.6.32-358.123.2.openstack.el6.x86_64 kernel-firmware-2.6.32-358.123.2.openstack.el6.noarch iproute-2.6.32-130.el6ost.netns.2.x86_64
Note : the openstack mention for kernel and netns for iproute