Code Monkey home page Code Monkey logo

Comments (4)

alfredhuang211 avatar alfredhuang211 commented on May 26, 2024

使用vlan只是把两个macvlan的容器包装在一个vlan内,不是必须的。
ping通本主机容器,是从主机发起还是从另外的容器发起?从本主机ping本主机的macvlan容器,理论上应该是不通的,因为docker对这块本身做了限制。
不知道两主机相连用的什么样的交换机,有些交换机,或者虚假交换机也会限制混杂模式,需要开启交换机的混杂模式支持。

from study-doc.

icefed avatar icefed commented on May 26, 2024

不好意思没表达清楚,从容器内ping同主机的另外一个容器能ping通,不同主机的容器ping不通。
对vlan网络这块不太了解,交换机也不太清楚。如果硬件环境问题可能不会采用这个方案,目前在看calico方案。
感谢答复。

from study-doc.

alfredhuang211 avatar alfredhuang211 commented on May 26, 2024

多探讨一起学习呗。本身同主机容器互ping因为还有本身的docker0网桥,所以有可能是可以通的。在容器类具体看有几个iface,可以判定macvlan的口有没有通。如果最终目的只是要进行容器间通信,calico和flannel的方案都很好。macvlan更擅长的应该是怎么把容器暴露到现有网络中。

from study-doc.

cylonchau avatar cylonchau commented on May 26, 2024

请问一下解决了吗、?我也是相同的问题

from study-doc.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.