“Object "netns" is unknown, try "ip help".\n'”报错
tail -f/var/log/neutron/dhcp-agent.log
By default, CentOS 6.4 does not support network namespaces. If one wants totest the new virtualization platforms (Docker, OpenStack, & co…) on aCentOS server, all features won’t be available.
For OpenStack for example, Neutron won’t work as expected, since it actuallyneeds 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 :
1 | #> 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 andenable the network namespace feature
1 2 3 | #> yum install -y http://rdo.fedorapeople.org/rdo-release.rpm #> yum install kernel iproute #> reboot |
And that’s it. Really.
Now one can run
1 2 | #> ip netns add spredzy #> ip netns list |
spredzy should get displayed.
If everything is working one should have the following kernel and iproutepackages installed :
1 2 3 | 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 |
本文出自 “zhanguo1110” 博客,请务必保留此出处http://zhanguo1110.blog.51cto.com/5750817/1535786
“Object "netns" is unknown, try "ip help".\n'”报错,古老的榕树,5-wow.com
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。