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. Java第六天,API中常用的类,StringBuffer、StringBuilder、包装类、System类的使用

    System (1)这个类中有很多可以获取系统信息的类. public class SystemLearn { public static void main(String[] args) { lon ...

  2. Flask 入门(一)(Mac 系统)

    熟话说,万事开头难,为了运行这第一个程序,我可是碰了不少壁,接下来我将正确的方法交给大家. 1.首先得有python和虚拟环境 (1)python环境苹果系统自带 (2)虚拟环境: 安装virtual ...

  3. matplotlib Bbox类

    Bbox 类是一个可变的(相对于BboxBase)限位框, 继承自BboxBase 2020-04-07 22:54:57  --Edit by yangray 方法: __init__(points ...

  4. 16-jmeter-CLI模式(无图形界面)

    GUI和非GUI图形界面的使用区别: 非GUI界面:命令模式运行可以将实时的log文件保存到本地,位置可以自定义,不会占用太多资源,可以长时间运行. GUI图形界面:在运行时会消耗资源,且图形界面运行 ...

  5. RESTful API设计的点

    RESTful API 前言 一直在使用RESTful API,但是好像概念还是很模糊的,总结下使用到的点 设计的规范 协议 API与用户的通信协议,总是使用HTTPs协议. 域名 应该尽量将API部 ...

  6. Mac Jenkins+fastlane 简单几步实现iOS自动化打包发布 + jenkins节点设置

    最近在使用jenkins 实现ios自动化打包发布蒲公英过程实践遇到了一些坑,特意记录下来方便有需要的人. 进入正题: 一.安装Jenkins 1.Mac上安装Jenkins 遇到到坑 因为 Jenk ...

  7. 2019-07-31【机器学习】无监督学习之降维PCA算法实例 (鸢尾花)

    样本 代码: import matplotlib.pyplot as plt from sklearn.decomposition import PCA from sklearn.datasets i ...

  8. C. Primes and Multiplication

    题目连接:https://codeforces.com/contest/1228/problem/C 题目大意:g(x,y)==y^k(其中y^k是X的最大可以整除因子) f(x,y)==g(x,p1 ...

  9. G - GCD and LCM 杭电

    Given two positive integers G and L, could you tell me how many solutions of (x, y, z) there are, sa ...

  10. element-ui修改自定义主题

    官方文档:https://element.eleme.cn/#/zh-CN/component/custom-theme 简单更换主题色 打开:在线主题编辑器,仅修改主题色,点击右上角[切换主题色], ...