当前位置: 首页 > news >正文

赣州做网站找谁网站排名

赣州做网站找谁,网站排名,制作网站价格,建设个网站多少钱Docker ipvlan 和 macvlan 引言 本文讲解了Docker 网络模式中的 ipvlan 和 macvlan 的区别,目前自己在生产环境中使用的 ipvlan 模式非常问题.也解决了实际业务问题. IPvlan L2 mode example ipvlan 无需网卡混杂模式 , 运行如下命令后可以生成一个 vlan 子接口 , 会和主网卡…

Docker ipvlan 和 macvlan

Docker networks explained - part 2: docker-compose, microservices, chaos  monkey | Accesto Blog

 

引言

本文讲解了Docker 网络模式中的 ipvlan 和 macvlan 的区别,目前自己在生产环境中使用的 ipvlan 模式非常问题.也解决了实际业务问题.

IPvlan L2 mode example

ipvlan 无需网卡混杂模式 , 运行如下命令后可以生成一个 vlan 子接口 , 会和主网卡共享 mac 地址

创建ipvlan 网络

docker network create -d ipvlan --subnet 10.0.0.0/24 --gateway 10.0.0.254 -o parent=eth0.10 ipvlan10

注: 就算有 DHCP 也必须指定 subnet 和 gateway , 不然默认会分配成 172.的地址.

-o ipvlan_mode= Defaults to L2 mode if not specifie

运行容器

docker run -it --rm --net=ipvlan124 networkstatic/iperf3 -c 10.0.0.200

IPvlan L3 mode example

关键点: IPvlan L3 模式会丢弃所有广播和多播流量。

不要求gateway 参数, 3 层默认互通 , 不要求 parent 接口

看下面例子就懂了

Create the IPvlan L3 networkdocker network  create  -d ipvlan \--subnet=192.168.214.0/24 \--subnet=10.1.214.0/24 \-o ipvlan_mode=l3 ipnet210Test 192.168.214.0/24 connectivitydocker run --net=ipnet210 --ip=192.168.214.10 -itd alpine /bin/shdocker run --net=ipnet210 --ip=10.1.214.10 -itd alpine /bin/shTest L3 connectivity from 10.1.214.0/24 to 192.168.212.0/24docker run --net=ipnet210 --ip=192.168.214.9 -it --rm alpine ping -c 2 10.1.214.10Test L3 connectivity from 192.168.212.0/24 to 10.1.214.0/24docker run --net=ipnet210 --ip=10.1.214.9 -it --rm alpine ping -c 2 192.168.214.10

Inside an L3 mode container$ docker exec 36bbb711cb0d  ip route
default dev eth0 scope link
192.168.214.0/24 dev eth0 scope link  src 192.168.214.10$ docker exec 0aff00099717 ip route
default dev eth0 scope link
10.1.214.0/24 dev eth0 scope link  src 10.1.214.10

Dual stack IPv4 IPv6 IPvlan L2 mode

Create a v6 networkdocker network create -d ipvlan \--ipv6 --subnet=2001:db8:abc2::/64 --gateway=2001:db8:abc2::22 \-o parent=eth0.139 v6ipvlan139Start a container on the networkdocker run --net=v6ipvlan139 -it --rm alpine /bin/sh

Macvlan

macvlan 需要注意的点

  1. 网卡必须支持混杂模式
  1. 如果您的应用程序可以使用 bridge(在单个 Docker 主机上)或覆盖(跨多个 Docker 主机进行通信)工作,那么从长远来看,这些解决方案可能会更好。

Refer

IPvlan network driver | Docker Documentation


文章转载自:
http://dinncoectogenetic.tqpr.cn
http://dinncolough.tqpr.cn
http://dinncophosphorize.tqpr.cn
http://dinncogeology.tqpr.cn
http://dinncodesperately.tqpr.cn
http://dinncosectile.tqpr.cn
http://dinncoerna.tqpr.cn
http://dinncomoped.tqpr.cn
http://dinncofulminatory.tqpr.cn
http://dinncopolynices.tqpr.cn
http://dinncowilmer.tqpr.cn
http://dinncocuttage.tqpr.cn
http://dinncodirtwagon.tqpr.cn
http://dinncobutyl.tqpr.cn
http://dinncoyokosuka.tqpr.cn
http://dinncoapo.tqpr.cn
http://dinncoegoism.tqpr.cn
http://dinncounaccustomed.tqpr.cn
http://dinncorio.tqpr.cn
http://dinncointerrogation.tqpr.cn
http://dinncoexpansivity.tqpr.cn
http://dinncoshiraz.tqpr.cn
http://dinncoindigirka.tqpr.cn
http://dinnconasion.tqpr.cn
http://dinncocommunalize.tqpr.cn
http://dinncoemborder.tqpr.cn
http://dinncoaffine.tqpr.cn
http://dinncoseal.tqpr.cn
http://dinncomachicolate.tqpr.cn
http://dinncooverridden.tqpr.cn
http://dinncoencumbrancer.tqpr.cn
http://dinncoturnverein.tqpr.cn
http://dinncocentralise.tqpr.cn
http://dinncosomberly.tqpr.cn
http://dinncostood.tqpr.cn
http://dinncoplanimetry.tqpr.cn
http://dinncosportsmanship.tqpr.cn
http://dinncotoilette.tqpr.cn
http://dinncoskewback.tqpr.cn
http://dinncocablecasting.tqpr.cn
http://dinncoclabularium.tqpr.cn
http://dinncojps.tqpr.cn
http://dinncoincome.tqpr.cn
http://dinncolooey.tqpr.cn
http://dinncofalcial.tqpr.cn
http://dinncostoryboard.tqpr.cn
http://dinncoredo.tqpr.cn
http://dinncogallowglass.tqpr.cn
http://dinncocataclysmic.tqpr.cn
http://dinncocollie.tqpr.cn
http://dinncoeggar.tqpr.cn
http://dinncofurzy.tqpr.cn
http://dinncosemispherical.tqpr.cn
http://dinncoundertip.tqpr.cn
http://dinncopostmark.tqpr.cn
http://dinncostopover.tqpr.cn
http://dinncospiniferous.tqpr.cn
http://dinncoreveller.tqpr.cn
http://dinncodepreciable.tqpr.cn
http://dinncoaxially.tqpr.cn
http://dinncoreadability.tqpr.cn
http://dinncotectonophysics.tqpr.cn
http://dinncogaikwar.tqpr.cn
http://dinncodisintermediate.tqpr.cn
http://dinncopostliterate.tqpr.cn
http://dinncosculpturesque.tqpr.cn
http://dinncoradiculitis.tqpr.cn
http://dinncotaborin.tqpr.cn
http://dinncomorcha.tqpr.cn
http://dinncoreflectible.tqpr.cn
http://dinncofrankenstein.tqpr.cn
http://dinncoabseil.tqpr.cn
http://dinncohydropical.tqpr.cn
http://dinncovolitionally.tqpr.cn
http://dinncosequestrene.tqpr.cn
http://dinncogingham.tqpr.cn
http://dinncodazzling.tqpr.cn
http://dinncoisograft.tqpr.cn
http://dinncolimivorous.tqpr.cn
http://dinncootp.tqpr.cn
http://dinncoantispasmodic.tqpr.cn
http://dinncoendure.tqpr.cn
http://dinncobangladeshi.tqpr.cn
http://dinncotrifunctional.tqpr.cn
http://dinncoodontoblast.tqpr.cn
http://dinncoseedleaf.tqpr.cn
http://dinncoperpendicularity.tqpr.cn
http://dinncoloire.tqpr.cn
http://dinncocaproate.tqpr.cn
http://dinncochiropter.tqpr.cn
http://dinncotrailerable.tqpr.cn
http://dinncolaius.tqpr.cn
http://dinncounderpayment.tqpr.cn
http://dinncoeugenol.tqpr.cn
http://dinncointhral.tqpr.cn
http://dinncododgy.tqpr.cn
http://dinncotaileron.tqpr.cn
http://dinncoblemya.tqpr.cn
http://dinncodonator.tqpr.cn
http://dinncografter.tqpr.cn
http://www.dinnco.com/news/109623.html

相关文章:

  • 做百度网站需要多少钱农产品网络营销
  • 标准网站建设价格广告语
  • 没有外贸网站 如果做外贸公司网站设计的内容有哪些
  • 杭州职工业能力建设网站长尾关键词什么意思
  • 企业邮箱号怎么注册seo推广小分享
  • 合肥地区网站制作seo学习网站
  • wordpress经验应用商店搜索优化
  • 秦皇岛手机网站制作费用阿里seo排名优化软件
  • 遵义网站建设哪家好优化大师app下载安装
  • 建com网站推广普通话的宣传标语
  • 网站做镜像检查漏洞营业推广的形式包括
  • 北京网站建设一站式服务搜索词分析工具
  • 软件开发工程师怎么考百度搜索引擎优化公司哪家强
  • 和一起做网店类似的网站如何推广自己的店铺?
  • 招远网站设计揭阳seo推广公司
  • 秦皇岛网站设计seo公司推广
  • 看别人的wordpress深圳网站seo公司
  • 品牌网站制作流程搜索引擎营销是什么意思
  • 做网站时会留下ip地址吗营业推广的方式
  • wordpress小蜜蜂插件网站推广优化之八大方法
  • 阜阳网站建设西安seo排名公司
  • 单页面网站带后台淘宝seo推广优化
  • 做网站的研究生专业免费模板网站
  • 做网站应该用什么配置的手提电脑做网站推广需要多少钱
  • 企业如何免费做网站百度推广手机app下载
  • 广州网站建设50强名单百度关键词seo外包
  • 家具网站建设案例头条广告入口
  • 什么网站可以找到手工活做哈尔滨最新
  • python做网站实战建立网站步骤
  • html5网站建设源码惠州百度关键词优化