Comments (4)
使用vlan只是把两个macvlan的容器包装在一个vlan内,不是必须的。
ping通本主机容器,是从主机发起还是从另外的容器发起?从本主机ping本主机的macvlan容器,理论上应该是不通的,因为docker对这块本身做了限制。
不知道两主机相连用的什么样的交换机,有些交换机,或者虚假交换机也会限制混杂模式,需要开启交换机的混杂模式支持。
from study-doc.
不好意思没表达清楚,从容器内ping同主机的另外一个容器能ping通,不同主机的容器ping不通。
对vlan网络这块不太了解,交换机也不太清楚。如果硬件环境问题可能不会采用这个方案,目前在看calico方案。
感谢答复。
from study-doc.
多探讨一起学习呗。本身同主机容器互ping因为还有本身的docker0网桥,所以有可能是可以通的。在容器类具体看有几个iface,可以判定macvlan的口有没有通。如果最终目的只是要进行容器间通信,calico和flannel的方案都很好。macvlan更擅长的应该是怎么把容器暴露到现有网络中。
from study-doc.
请问一下解决了吗、?我也是相同的问题
from study-doc.
Related Issues (4)
- 2.1 的作用是什么? HOT 1
- 不能联通宿主机的问题 HOT 1
- 启动calico服务时执行了20分钟没有结束
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from study-doc.