Cloud Native应用交付

  • 首页
  • 关于本站
  • 个人介绍
  • Downloads
  • Repo
    • Github
    • Container
  • F5
    • F5 Python SDK
    • F5-container
    • F5-LBaaS
  • 社交
    • 联系我
    • 微信/微博
    • 公众号
    • 打赏赞助
行至水穷处 坐看云起时
Cloud Native Application Services: cnadn.net
  1. 首页
  2. 化云为雨/Openstack
  3. 正文

VXLAN与flat网络共存测试模型

2015年05月15日 18085点热度 2人点赞 0条评论

受限于实体网络以及主机网卡,利用em2接口作为vm的流量接口,该接口所在网络以vxlan 网络运行,同时compute主机的另一个接口em1配置为支持openstack flat网络,这样可以在openstack内部起一个flat类型网络,该网络还可以顺便作为L3 agent的external 网络。

flat 网络是openstack中非vlan方式的可以与外部物理网络直接通的一种provider网络。

C(}V69(@N[G2`0VUK4TJGXK

compute节点添加一个br-ex接口,将地址分配到该br-ex接口上

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
root@compute:/var/log/upstart# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
auto em1
iface em1 inet manual
up ifconfig $IFACE 0.0.0.0 up
up ip link set $IFACE promisc on
down ip link set $IFACE promisc off
down ifconfig $IFACE down
 
 
 
# Used for openstack flat and hypervisor mgmt
auto br-ex
iface br-ex inet static
        address 9.9.9.6
        netmask 255.255.255.0
        network 9.9.9.0
        broadcast 9.9.9.255
        gateway 9.9.9.253
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8
 
 
auto em2
iface em2 inet static
        address 10.1.1.6
        netmask 255.255.255.0
        network 10.1.1.0
        broadcast 10.1.1.255

然后添加 br-ex 桥以及将em1接口加入br-ex桥

ovs-vsctl add-br br-ex

ovs-vsctl add-port br-ex em1

reboot 机器

network节点以及计算节点ml2文件配置如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
root@compute:/var/log/upstart# egrep -v "^$|^#" /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
type_drivers = flat,vxlan,vlan,gre
tenant_network_types = vxlan,vlan
mechanism_drivers = openvswitch
[ml2_type_flat]
flat_networks = phyflat9
[ml2_type_vlan]
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
vni_ranges = 65537:69999
[ovs]
local_ip = 10.1.1.6
tunnel_type = vxlan
tunnel_bridge = br-tun
integration_bridge = br-int
tunnel_id_ranges = 65537:69999
tenant_network_type = vxlan
enable_tunneling = true
network_vlan_ranges = phyflat9
bridge_mappings = phyflat9:br-ex
[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
tunnel_types = vxlan
vxlan_udp_port = 4789
l2_population = False
[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

配置完毕后,可以创建一个flat 网络

keystone tenant-list

neutron net-create --tenant-id  496355a769d94241afbbdc76adbe1fb5 sharedflat9 --shared --router:external=True  --provider:network_type flat --provider:physical_network phyflat9

neutron net-create --tenant-id  496355a769d94241afbbdc76adbe1fb5 sharedflat9 --shared --provider:network_type flat --provider:physical_network phyflat9

可以将该网络分配给L3 agent router作为external网络使用,这样L3 agent就可以通过该网络连接到internet处的F5设备。

FT$]38NH)8F433}N9VWRD_K

相关文章

  • openstack heat模板之配置基本LB到F5 BIGIP
  • Mitaka Openstack 排错备忘
  • Openstack Mitaka 在Centos7上的自动化安装
  • Neutron/DVR L2 Agent
  • 观察openstack中VXLAN的flows(Icehouse,ubuntu14.04)
本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: flat openstack provider network VLAN
最后更新:2015年05月15日

纳米

linjing.io

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

页面AI聊天助手

纳米

linjing.io

☁️迈向Cloud Native ADC ☁️

认证获得:
TOGAF: ID 152743
Kubernetes: CKA #664
Microsoft: MCSE MCDBA
Cisco: CCNP
Juniper: JNCIS
F5:
F5 Certified Solution Expert, Security
F5 Certified Technology Specialist, LTM/GTM/APM/ASM
F5 Certified BIG-IP Administrator
  • 点击查看本博技术要素列表
  • 归档
    分类
    • AI
    • Automation
    • Avi Networks
    • Cisco ACI
    • CISCO资源
    • F5 with ELK
    • F5-Tech tips
    • F5技术
    • Juniper
    • Linux
    • NGINX
    • SDN
    • ServiceMesh
    • WEB编程
    • WINDOWS相关
    • 业界文章
    • 交换机技术
    • 化云为雨/Openstack
    • 协议原理
    • 容器/k8s
    • 我的工作
    • 我的生活
    • 网站技术
    • 路由器技术
    • 项目案例
    标签聚合
    F5 bigip openstack irule flannel DNS gtm docker nginx k8s api envoy network istio neutron
    最近评论
    汤姆 发布于 8 个月前(09月10日) 嗨,楼主,里面的json怎么下载啊,怎么收费啊?
    汤姆 发布于 8 个月前(09月09日) 大佬,kib的页面可以分享下吗?谢谢
    zhangsha 发布于 1 年前(05月12日) 资料发给我下,谢谢纳米同志!!!!lyx895@qq.com
    李成才 发布于 1 年前(01月02日) 麻烦了,谢谢大佬
    纳米 发布于 1 年前(01月02日) 你好。是的,因为以前下载系统插件在一次升级后将所有的下载生成信息全弄丢了。所以不少文件无法下载。DN...
    浏览次数
    • Downloads - 183,777 views
    • 联系我 - 118,966 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 116,516 views
    • Github - 103,665 views
    • F5常见log日志解释 - 79,774 views
    • 从传统ADC迈向CLOUD NATIVE ADC - 下载 - 74,627 views
    • Sniffer Pro 4 70 530抓包软件 中文版+视频教程 - 74,320 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 67,770 views
    • 关于本站 - 60,915 views
    • 这篇文档您是否感兴趣 - 55,496 views
    链接表
    • F5SE创新
    • Jimmy Song‘s Blog
    • SDNlab
    • Service Mesh社区
    • 三斗室
    • 个人profile
    • 云原生社区

    COPYRIGHT © 2023 Cloud Native 应用交付. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    京ICP备14048088号-1

    京公网安备 11010502041506号