VXLAN(Virtual eXtensible LAN可扩展虚拟局域网)诞生了,基于IP网络之上,采用的是MAC in UDP技术

跨三层实现二层通信

总结为何需要Vxlan:

  1. 虚拟机规模受到网络规格的限制,大L2网络里,报文通过查询MAC地址转发,MAC表容量限制了虚拟机的数量。
  2. 网络隔离的限制,普通的vlan和VPN配置无法满足动态网络调整的需求,同时配置复杂
  3. 虚拟器搬迁受到限制,虚拟机启动后假如在业务不中断基础上将该虚拟机迁移到另外一台物理机上去,需要保持虚拟机的IP地址和MAC地址等参数保持不变,这就要求业务网络是一个二层的网络。

拓扑图:

交换机配置:

CE1

 <HUAWEI>display cu
<HUAWEI>display current-configuration
!Software Version V800R013C00SPC560B560
!Last configuration was updated at -- ::+: by SYSTEM automatic
ally
!Last configuration was saved at -- ::+:
#
sysname HUAWEI
#
device board board-type CE-MPUB
device board board-type CE-LPUE
#
aaa
#
authentication-scheme default
#
authorization-scheme default
#
accounting-scheme default
#
domain default
#
domain default_admin
#
interface MEth0//
undo shutdown
#
interface GE1//
undo portswitch
undo shutdown
ip address 10.12.0.1 255.255.255.0
#
interface GE1//
undo portswitch
undo shutdown
ip address 10.13.0.1 255.255.255.0
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface NULL0
#
ospf
area 0.0.0.0
network 10.12.0.0 0.0.0.255
network 10.13.0.0 0.0.0.255
#
ssh authorization-type default aaa
#
user-interface con
#
vm-manager
#
return

CE2

 <HUAWEI>display current-configuration
!Software Version V800R013C00SPC560B560
!Last configuration was updated at -- ::+:
!Last configuration was saved at -- ::+:
#
sysname HUAWEI
#
device board board-type CE-MPUB
device board board-type CE-LPUE
#
vlan batch
#
bridge-domain
vxlan vni
#
aaa
#
authentication-scheme default
#
authorization-scheme default
#
accounting-scheme default
#
domain default
#
domain default_admin
#
interface Vlanif10
ip address 1.1.1.254 255.255.255.0
#
interface MEth0//
undo shutdown
#
interface GE1//
undo shutdown
port link-type trunk
#
interface GE1//0.1 mode l2
encapsulation dot1q vid
bridge-domain
#
interface GE1//
undo portswitch
undo shutdown
ip address 10.12.0.2 255.255.255.0
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface LoopBack0
ip address 10.2.2.2 255.255.255.255
#
interface Nve1
source 10.2.2.2
vni head-end peer-list 10.3.3.3
#
interface NULL0
#
ospf
area 0.0.0.0
network 10.2.2.2 0.0.0.0
network 10.12.0.0 0.0.0.255
#
ssh authorization-type default aaa
#
user-interface con
#
vm-manager
#
return

CE3

 <HUAWEI>display current-configuration
!Software Version V800R013C00SPC560B560
!Last configuration was updated at -- ::+: by SYSTEM automatic
ally
!Last configuration was saved at -- ::+:
#
sysname HUAWEI
#
device board board-type CE-MPUB
device board board-type CE-LPUE
#
vlan batch
#
bridge-domain
vxlan vni
#
aaa
#
authentication-scheme default
#
authorization-scheme default
#
accounting-scheme default
#
domain default
#
domain default_admin
#
interface MEth0//
undo shutdown
#
interface GE1//
undo portswitch
undo shutdown
ip address 10.13.0.3 255.255.255.0
#
interface GE1//
undo shutdown
port link-type trunk
#
interface GE1//1.1 mode l2
encapsulation dot1q vid
bridge-domain
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface GE1//
shutdown
#
interface LoopBack0
ip address 10.3.3.3 255.255.255.255
#
interface Nve1
source 10.3.3.3
vni head-end peer-list 10.2.2.2
#
interface NULL0
#
ospf
area 0.0.0.0
network 10.3.3.3 0.0.0.0
network 10.13.0.0 0.0.0.255
#
ssh authorization-type default aaa
#
user-interface con
#
vm-manager
#
return

LSW1

 #
vlan batch
#
interface GigabitEthernet0//
port link-type trunk
port trunk allow-pass vlan
#
interface GigabitEthernet0//
port link-type access
port default vlan
#

LSW2

 #
vlan batch
#
interface GigabitEthernet0//
port link-type trunk
port trunk allow-pass vlan
#
interface GigabitEthernet0//
port link-type access
port default vlan

PC1 PING PC2 验证:

Vxlan L2的更多相关文章

  1. 解读Mirantis最新的Neutron性能测试

    最近,mirantis的工程师发布了最新的基于Mitaka版本的Neutron性能测试结果.得出的结论是:Neutron现在的性能已经可以用生产环境了. 报告的三位作者都是OpenStack社区的活跃 ...

  2. VXLAN, 一种叠加在L3网络上的L2网络

    这几天看了下RFC7348,顺便翻译了一下,根据自己理解做了注解 虚拟化及租户隔离 服务器虚拟化增加了对物理网络基础设施的需求,服务器有多个虚机,要求交换机支持更大的MAC地址表. 在数据中心场景下, ...

  3. 配置 L2 Population - 每天5分钟玩转 OpenStack(114)

    前面我们学习了L2 Population 的原理,今天讨论如何在 Neutron 中配置和启用此特性. 目前 L2 Population 支持 VXLAN with Linux bridge 和 VX ...

  4. L2 Population 原理 - 每天5分钟玩转 OpenStack(113)

    前面我们学习了 VXLAN,今天讨论跟 VXLAN 紧密相关的 L2 Population. L2 Population 是用来提高 VXLAN 网络 Scalability 的. 通常我们说某个系统 ...

  5. 部署 instance 到 VXLAN - 每天5分钟玩转 OpenStack(112)

    上一节我们创建了 vxlan 100_net,今天将部署 instance 并分析网络的连通性. launch 新的 instance "cirros-vm1",网络选择 vxla ...

  6. VXLAN 概念(Part I) - 每天5分钟玩转 OpenStack(108)

    除了前面讨论的 local, flat, vlan 这几类网络,OpenStack 还支持 vxlan 和 gre 这两种 overlay network. overlay network 是指建立在 ...

  7. Neutron 理解 (3): Open vSwitch + GRE/VxLAN 组网 [Netruon Open vSwitch + GRE/VxLAN Virutal Network]

    学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GR ...

  8. Neutron 理解 (4): Neutron OVS OpenFlow 流表 和 L2 Population [Netruon OVS OpenFlow tables + L2 Population]

    学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GR ...

  9. Neutron 理解(14):Neutron ML2 + Linux bridge + VxLAN 组网

    学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GR ...

随机推荐

  1. String 对象-->判断是否相等

    1.定义和用法 == 值相等 === 绝对相等(值和类型都相等) 举例: var str = '8' var str1 = 8 console.log(str == str1) console.log ...

  2. Markdown自动生成目录

    Markdown自动生成目录 使用npm语法生成 1.安装npm 2.安装doctoc插件 3.执行生成 参考 Markdown自动生成目录 使用npm语法生成 1.安装npm 我的系统是deepin ...

  3. JVM 调优之 Eclipse 启动调优实战

    本文是我12年在学习<深入理解Java虚拟机:JVM高级特性与最佳实践>时,做的一个 JVM 简单调优实战笔记,版本都有些过时,不过调优思路和过程还是可以分享给大家参考的. 环境基础配置 ...

  4. C# windows服务没有RunInstallerAttribute.Yes的公共安装程序

    1.在视图状态 右键添加ServiceInstaller及ServiceProcessInstaller两个控件; 2.将serviceProcessInstaller类的Account属性改为 Lo ...

  5. L4文本预处理

    文本预处理 timemachine.txt数据下载地址 链接:https://pan.baidu.com/s/1RO2OLyTRQZ90HJUW7V7BCQ 提取码:bjox NLTK数据集下载 链接 ...

  6. F - Robot Motion 栈加BFS

    A robot has been programmed to follow the instructions in its path. Instructions for the next direct ...

  7. C++枚举算法

    枚举算法 什么是枚举? 枚举,顾名思义,就是用最笨的方法,去解决问题(暴力枚举),一个集的枚举是列出某些有穷序列集的所有成员的程序,或者是一种特定类型对象的计数.这两种类型经常(但不总是)重叠. 枚举 ...

  8. [linux][MongoDB] mongodb学习(一):MongoDB安装、管理工具、

    参考原文:http://www.cnblogs.com/kaituorensheng/p/5118226.html linux安装完美实现! 1. mongoDB安装.启动.关闭 1.1 下载安装包 ...

  9. 负载均衡服务之HAProxy基础配置(三)

    前文我们聊到了haproxy的代理配置段中比较常用的配置指令的用法以及说明,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/12770930.html:今天我们来 ...

  10. Golang Map实现(一)

    本文学习 Golang 的 Map 数据结构,以及map buckets 的数据组织结构. hash 表是什么 从大学的课本里面,我们学到:hash 表其实就是将key 通过hash算法映射到数组的某 ...