Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dovker创建不了macvlan #91

Open
yyyyxrain opened this issue Nov 21, 2021 · 6 comments
Open

Dovker创建不了macvlan #91

yyyyxrain opened this issue Nov 21, 2021 · 6 comments

Comments

@yyyyxrain
Copy link

之前我用树莓派4b + Ubuntu用的macvlan模式,正常使用,跑量很高

最近重刷了一遍Ubuntu,使用
docker run -itd
-v /mnt/data/ttnode:/mnts
--name ttnode
--hostname ttnode
--net=macnet --ip=192.168.0.123
--privileged=true
--restart=always
ericwang2006/ttnode
的时候提示错误
docker: Error response from daemon: failed to create the macvlan port: device or resource busy.

我以为是系统问题,重刷了一遍,结果再次尝试还是提示错误

我的混杂模式打开了,网络也创建了,求如何解决

@ericwang2006
Copy link
Owner

看看macvlan父接口选择的是否正确
一键获取macvlan父接口名称的脚本
ip route|grep default

@yyyyxrain
Copy link
Author

截屏_20211127_213108
还是这个报错

@ericwang2006
Copy link
Owner

ericwang2006 commented Nov 27, 2021

截屏_20211127_213108 还是这个报错

执行ip route|grep default 返回的是eth0还是br-lan? 如果是eth0, 我有点怀疑是驱动不支持

@yyyyxrain
Copy link
Author

是eth0

@ericwang2006
Copy link
Owner

有可能是驱动不支持, 其他情况我也没有思路了

@weigeloveu
Copy link

--net=macnet --ip=10.0.0.99 --dns=223.5.5.5 --mac-address C2:
网络定义段写全试试,注意,mac地址C2开头

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants