Vxlan L2
VXLAN(Virtual eXtensible LAN可扩展虚拟局域网)诞生了,基于IP网络之上,采用的是MAC in UDP技术
跨三层实现二层通信
总结为何需要Vxlan:
- 虚拟机规模受到网络规格的限制,大L2网络里,报文通过查询MAC地址转发,MAC表容量限制了虚拟机的数量。
- 网络隔离的限制,普通的vlan和VPN配置无法满足动态网络调整的需求,同时配置复杂
- 虚拟器搬迁受到限制,虚拟机启动后假如在业务不中断基础上将该虚拟机迁移到另外一台物理机上去,需要保持虚拟机的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的更多相关文章
- 解读Mirantis最新的Neutron性能测试
最近,mirantis的工程师发布了最新的基于Mitaka版本的Neutron性能测试结果.得出的结论是:Neutron现在的性能已经可以用生产环境了. 报告的三位作者都是OpenStack社区的活跃 ...
- VXLAN, 一种叠加在L3网络上的L2网络
这几天看了下RFC7348,顺便翻译了一下,根据自己理解做了注解 虚拟化及租户隔离 服务器虚拟化增加了对物理网络基础设施的需求,服务器有多个虚机,要求交换机支持更大的MAC地址表. 在数据中心场景下, ...
- 配置 L2 Population - 每天5分钟玩转 OpenStack(114)
前面我们学习了L2 Population 的原理,今天讨论如何在 Neutron 中配置和启用此特性. 目前 L2 Population 支持 VXLAN with Linux bridge 和 VX ...
- L2 Population 原理 - 每天5分钟玩转 OpenStack(113)
前面我们学习了 VXLAN,今天讨论跟 VXLAN 紧密相关的 L2 Population. L2 Population 是用来提高 VXLAN 网络 Scalability 的. 通常我们说某个系统 ...
- 部署 instance 到 VXLAN - 每天5分钟玩转 OpenStack(112)
上一节我们创建了 vxlan 100_net,今天将部署 instance 并分析网络的连通性. launch 新的 instance "cirros-vm1",网络选择 vxla ...
- VXLAN 概念(Part I) - 每天5分钟玩转 OpenStack(108)
除了前面讨论的 local, flat, vlan 这几类网络,OpenStack 还支持 vxlan 和 gre 这两种 overlay network. overlay network 是指建立在 ...
- Neutron 理解 (3): Open vSwitch + GRE/VxLAN 组网 [Netruon Open vSwitch + GRE/VxLAN Virutal Network]
学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GR ...
- Neutron 理解 (4): Neutron OVS OpenFlow 流表 和 L2 Population [Netruon OVS OpenFlow tables + L2 Population]
学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GR ...
- Neutron 理解(14):Neutron ML2 + Linux bridge + VxLAN 组网
学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GR ...
随机推荐
- javascript入门 之 ztree(五 自定义字体)
<!--<!DOCTYPE html>--> <!--<HTML>--> <!--<HEAD>--> <!--<TI ...
- PHP程序员的能力水平层次(一)
前言 之前看过很多篇关于服务端工程师和PHP开发者的能力模型介绍,每篇都对能力有侧重点. 下面我们来详细谈谈以开发能力为基准点的PHP程序员的能力水平层次. 层层递进 1.功能开发 这个水平的程序员一 ...
- Struts2-学习笔记系列(15)-ajax支持和JSON
7.1stream类型的result 使用stream就无需jsp页面,直接在action想浏览者生成指定的响应 @Override public java.lang.String execute() ...
- asp.net mvc 接收jquery ajax发送的数组对象
<script type="text/javascript"> $(function () { var obj = { name: "军需品", m ...
- Extended Traffic LightOJ - 1074 (经典SPFA问题)
题目大意:每一个城市都有一定的繁荣度,然后给出m条有向边i->j,定义这条边的权值为pow(arr[j]-arr[i],3),然后给你q个询问,每个询问输入一个x. 然后问你点1到x的距离,如果 ...
- E1. Send Boxes to Alice (Easy Version)
题解: 保存每个1的位置.然后记录1的总个数cnt,如果存在一个k使得这个k是每个集合的倍数,那么为了使操作次数最小,这个k应该是cnt的质因子.(因为都是每个集合的数目1,使每个集合的数目变为2需要 ...
- Spark SQL源码剖析(一)SQL解析框架Catalyst流程概述
Spark SQL模块,主要就是处理跟SQL解析相关的一些内容,说得更通俗点就是怎么把一个SQL语句解析成Dataframe或者说RDD的任务.以Spark 2.4.3为例,Spark SQL这个大模 ...
- 微服务统计,分析,图表,监控, 分布式追踪一体化的 HttpReports 在 .Net Core 的应用
前言介绍 HttpReports 是针对.Net Core 开发的轻量级APM系统,基于MIT开源协议, 使用HttpReports可以快速搭建.Net Core环境下统计,分析,图表,监控,分布式追 ...
- 2. node xlsx的使用
1. 使用xlsx模块 const xlsx = require('xlsx'); //excel async exportexcel() { let arrayData = [ ['姓名', '电话 ...
- 【题解】P2480 [SDOI2010]古代猪文 - 卢卡斯定理 - 中国剩余定理
P2480 [SDOI2010]古代猪文 声明:本博客所有题解都参照了网络资料或其他博客,仅为博主想加深理解而写,如有疑问欢迎与博主讨论✧。٩(ˊᗜˋ)و✧*。 题目描述 猪王国的文明源远流长,博大精 ...