- 浏览: 1477992 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (691)
- linux (207)
- shell (33)
- java (42)
- 其他 (22)
- javascript (33)
- cloud (16)
- python (33)
- c (48)
- sql (12)
- 工具 (6)
- 缓存 (16)
- ubuntu (7)
- perl (3)
- lua (2)
- 超级有用 (2)
- 服务器 (2)
- mac (22)
- nginx (34)
- php (2)
- 内核 (2)
- gdb (13)
- ICTCLAS (2)
- mac android (0)
- unix (1)
- android (1)
- vim (1)
- epoll (1)
- ios (21)
- mysql (3)
- systemtap (1)
- 算法 (2)
- 汇编 (2)
- arm (3)
- 我的数据结构 (8)
- websocket (12)
- hadoop (5)
- thrift (2)
- hbase (1)
- graphviz (1)
- redis (1)
- raspberry (2)
- qemu (31)
- opencv (4)
- socket (1)
- opengl (1)
- ibeacons (1)
- emacs (6)
- openstack (24)
- docker (1)
- webrtc (11)
- angularjs (2)
- neutron (23)
- jslinux (18)
- 网络 (13)
- tap (9)
- tensorflow (8)
- nlu (4)
- asm.js (5)
- sip (3)
- xl2tp (5)
- conda (1)
- emscripten (6)
- ffmpeg (10)
- srt (1)
- wasm (5)
- bert (3)
- kaldi (4)
- 知识图谱 (1)
最新评论
-
wahahachuang8:
我喜欢代码简洁易读,服务稳定的推送服务,前段时间研究了一下go ...
websocket的helloworld -
q114687576:
http://www.blue-zero.com/WebSoc ...
websocket的helloworld -
zhaoyanzimm:
感谢您的分享,给我提供了很大的帮助,在使用过程中发现了一个问题 ...
nginx的helloworld模块的helloworld -
haoningabc:
leebyte 写道太NB了,期待早日用上Killinux!么 ...
qemu+emacs+gdb调试内核 -
leebyte:
太NB了,期待早日用上Killinux!
qemu+emacs+gdb调试内核
上接
http://haoningabc.iteye.com/blog/2282452
liberty装好之后,做一个neutron的关于router的试验
建立router
neutron net-list
neutron subnet-list
neutron net-create private
ip netns
#这之后建立命名空间
neutron subnet-create --name private-subnet1 private 192.168.10.0/29
nova boot --image cirros --flavor 1 One
nova boot --image cirros --flavor 1 Two
nova boot --image cirros --flavor 1 Three
nova boot --image cirros --flavor 1 Four
neutron subnet-create --name private-subnet2 private 192.168.20.0/29
nova boot --image cirros --flavor 1 Five
nova list
ip netns exec qdhcp-c8c64093-fbde-4660-9f06-1bf7016b2a50 ip a
nova get-vnc-console Five novnc
neutron router-create --distributed=false MyRouter
#这也建立一个新的命名空间
neutron router-list
neuron router-interface-add MyRouter privat-subnet1
neutron router-interface-add MyRouter privat-subnet2
neutron router-list
neutron router-port-list f8f7ba67-ee99-4186-b51f-1f3974cf8282
ip netns exec qrouter-f8f7ba67-ee99-4186-b51f-1f3974cf8282 ip a
ip netns exec qrouter-f8f7ba67-ee99-4186-b51f-1f3974cf8282 ethtool -S qr-63bf9f93-cf
ip netns exec qrouter-f8f7ba67-ee99-4186-b51f-1f3974cf8282 ethtool -S qr-4e347ef7-f8
ip a
brctl show
-------------------------------------如果是删除操作--------------
nova delete Five
ip netns
#两个,一个router一个dhcp
neutron router-port-list f8f7ba67-ee99-4186-b51f-1f3974cf8282
#这句没用
neutron router-interface-delete MyRouter 3468a50d-3287-4316-b050-e2cd026672c9
neutron router-interface-delete MyRouter private-subnet2
neutron router-delete MyRouter
ip netns
[root@controller ~(keystone_admin_v3)]# neutron subnet-delete private-subnet2
Deleted subnet: private-subnet2
[root@controller ~(keystone_admin_v3)]# neutron subnet-delete private-subnet1
Unable to complete operation on subnet 3468a50d-3287-4316-b050-e2cd026672c9. One or more ports have an IP allocation from this subnet.
[root@controller ~(keystone_admin_v3)]#
###有vm的网络是不能删除的,需要先删除vm
nova delete One
nova delete Two
nova delete Three
nova delete Four
neutron subnet-delete private-subnet1
neutron net-delete private
http://haoningabc.iteye.com/blog/2282452
liberty装好之后,做一个neutron的关于router的试验
建立router
neutron net-list
neutron subnet-list
neutron net-create private
ip netns
#这之后建立命名空间
neutron subnet-create --name private-subnet1 private 192.168.10.0/29
nova boot --image cirros --flavor 1 One
nova boot --image cirros --flavor 1 Two
nova boot --image cirros --flavor 1 Three
nova boot --image cirros --flavor 1 Four
neutron subnet-create --name private-subnet2 private 192.168.20.0/29
nova boot --image cirros --flavor 1 Five
nova list
ip netns exec qdhcp-c8c64093-fbde-4660-9f06-1bf7016b2a50 ip a
nova get-vnc-console Five novnc
neutron router-create --distributed=false MyRouter
#这也建立一个新的命名空间
[root@controller ~(keystone_admin_v3)]# ip netns qrouter-f8f7ba67-ee99-4186-b51f-1f3974cf8282 (id: 1) qdhcp-c8c64093-fbde-4660-9f06-1bf7016b2a50 (id: 0)
neutron router-list
neuron router-interface-add MyRouter privat-subnet1
neutron router-interface-add MyRouter privat-subnet2
neutron router-list
neutron router-port-list f8f7ba67-ee99-4186-b51f-1f3974cf8282
ip netns exec qrouter-f8f7ba67-ee99-4186-b51f-1f3974cf8282 ip a
[root@controller ~(keystone_admin_v3)]# ip netns exec qrouter-f8f7ba67-ee99-4186-b51f-1f3974cf8282 ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: qr-63bf9f93-cf@if27: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:16:3e:33:8f:65 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 192.168.10.1/29 brd 192.168.10.7 scope global qr-63bf9f93-cf valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe33:8f65/64 scope link valid_lft forever preferred_lft forever 3: qr-4e347ef7-f8@if28: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:16:3e:bb:8b:11 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 192.168.20.1/29 brd 192.168.20.7 scope global qr-4e347ef7-f8 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:febb:8b11/64 scope link valid_lft forever preferred_lft forever [root@controller ~(keystone_admin_v3)]#
ip netns exec qrouter-f8f7ba67-ee99-4186-b51f-1f3974cf8282 ethtool -S qr-63bf9f93-cf
ip netns exec qrouter-f8f7ba67-ee99-4186-b51f-1f3974cf8282 ethtool -S qr-4e347ef7-f8
ip a
brctl show
[root@controller ~(keystone_admin_v3)]# nova get-vnc-console Five novnc +-------+---------------------------------------------------------------------------------+ | Type | Url | +-------+---------------------------------------------------------------------------------+ | novnc | http://controller:6080/vnc_auto.html?token=23d23505-1e41-4458-a0aa-877cf44c2b31 | +-------+---------------------------------------------------------------------------------+ [root@controller ~(keystone_admin_v3)]# nova get-vnc-console One novnc +-------+---------------------------------------------------------------------------------+ | Type | Url | +-------+---------------------------------------------------------------------------------+ | novnc | http://controller:6080/vnc_auto.html?token=a6d5d088-f9a4-4522-9095-2a3a42b87cb2 | +-------+---------------------------------------------------------------------------------+ [root@controller ~(keystone_admin_v3)]# 一个192.168.10.3 一个192.168.20.3 可以互相ping通
-------------------------------------如果是删除操作--------------
nova delete Five
ip netns
#两个,一个router一个dhcp
neutron subnet-list +--------------------------------------+-----------------+-----------------+--------------------------------------------------+ | id | name | cidr | allocation_pools | +--------------------------------------+-----------------+-----------------+--------------------------------------------------+ | 3468a50d-3287-4316-b050-e2cd026672c9 | private-subnet1 | 192.168.10.0/29 | {"start": "192.168.10.2", "end": "192.168.10.6"} | | f9e407e5-9a58-4668-a2a3-1966881b2c2c | private-subnet2 | 192.168.20.0/29 | {"start": "192.168.20.2", "end": "192.168.20.6"} | +--------------------------------------+-----------------+-----------------+--------------------------------------------------+ neutron router-list +--------------------------------------+----------+-----------------------+-------------+-------+ | id | name | external_gateway_info | distributed | ha | +--------------------------------------+----------+-----------------------+-------------+-------+ | f8f7ba67-ee99-4186-b51f-1f3974cf8282 | MyRouter | null | False | False | +--------------------------------------+----------+-----------------------+-------------+-------+
neutron router-port-list f8f7ba67-ee99-4186-b51f-1f3974cf8282
#这句没用
neutron router-interface-delete MyRouter 3468a50d-3287-4316-b050-e2cd026672c9
neutron router-interface-delete MyRouter private-subnet2
neutron router-delete MyRouter
ip netns
[root@controller ~(keystone_admin_v3)]# neutron subnet-list +--------------------------------------+-----------------+-----------------+--------------------------------------------------+ | id | name | cidr | allocation_pools | +--------------------------------------+-----------------+-----------------+--------------------------------------------------+ | 3468a50d-3287-4316-b050-e2cd026672c9 | private-subnet1 | 192.168.10.0/29 | {"start": "192.168.10.2", "end": "192.168.10.6"} | | f9e407e5-9a58-4668-a2a3-1966881b2c2c | private-subnet2 | 192.168.20.0/29 | {"start": "192.168.20.2", "end": "192.168.20.6"} | +--------------------------------------+-----------------+-----------------+--------------------------------------------------+
[root@controller ~(keystone_admin_v3)]# neutron subnet-delete private-subnet2
Deleted subnet: private-subnet2
[root@controller ~(keystone_admin_v3)]# neutron subnet-delete private-subnet1
Unable to complete operation on subnet 3468a50d-3287-4316-b050-e2cd026672c9. One or more ports have an IP allocation from this subnet.
[root@controller ~(keystone_admin_v3)]#
###有vm的网络是不能删除的,需要先删除vm
nova delete One
nova delete Two
nova delete Three
nova delete Four
neutron subnet-delete private-subnet1
neutron net-delete private
发表评论
-
建立tap设备的c的代码
2019-01-08 19:09 474tapper.c #include <stdio.h& ... -
br0和tap0的互相影响
2019-01-02 19:17 815转载 http://www.cnblogs.com/wlei/ ... -
M版openstack(ovs,dvr,动态迁移)
2017-06-09 10:30 1788主要内容 1.先搭建三个节点的环境,dvr模式 2.建一个vm ... -
M版本的openstack的例子(linuxbridge)
2017-05-23 15:05 558做两个节点控制节点和计算节点 mcontroller521 ... -
vxlan多台主机的vm之间不同网段互通
2016-09-19 21:06 4373组播: 试验: 在三台机器上 192.168.139.251 ... -
vxlan多台主机的vm之间相同网段互通
2016-09-19 16:30 2239三台机器 建立namespace ... -
qemu用tap方式启动vm的网络试验(ip route)
2016-09-14 11:29 2806ip route add 192.168.8.0/24 via ... -
openstack的topo图
2016-09-07 14:07 630http://haoningabc.iteye.com/blo ... -
openstack的M版本的neutron的实验
2016-09-01 20:00 3131试验步骤: 1.创建内部 ... -
openstack的M版本安装
2016-08-17 13:33 1058参考 http://docs.openstack.org/mi ... -
can't initialize iptables table错误
2016-04-26 10:05 789can't initialize iptables table ... -
linux下TUN/TAP虚拟网卡的使用
2016-03-31 18:46 4882tun在网络层 tap在二层 ls ... -
openstack L版本(openvswitch的安装和应用)
2016-03-24 15:04 3020参考L版本的linuxbridge的安装方式 和k版本的ov ... -
openstack试验(linux vxlan)
2016-03-22 22:27 2726yum install centos-release-open ... -
backup a libvirt xml
2016-03-18 21:23 569<domain type='kvm' id='2'> ... -
openstack L版本(使用linux bridge的vxlan)
2016-03-12 23:35 2378参考 http://docs.openstack.org/li ... -
openstack的L版本安装(flat网络)
2016-03-07 17:55 980参考http://docs.openstack.org ... -
openstack调试 数据库跟踪
2016-03-04 18:07 717查看openstack代码 openstack每个命令之后,数 ... -
neutron基础九(qemu nat网络)
2016-02-06 17:21 1622接上基础八,kvm透传nested忽略 1.在主机ce ... -
neutron基础八(qemu 桥接网络)
2016-02-06 13:13 1544qemu的桥接和nat的qemu启动命令是一样的,但是后续的脚 ...
相关推荐
在OpenStack Neutron服务中,Router是实现不同网络间通信的关键组件。本节将深入探讨Neutron Router的工作原理,特别是如何连接和管理不同VLAN(虚拟局域网)以及实例如何通过Router访问外部网络。 首先,当我们...
openstack neutron网络模块代码分析,代码调用执行流程分析、使用技术说明
- neutron router-gateway-set:设置路由器的外部网关。 通过上述命令,用户可以手动创建网络、子网、路由器等网络组件,并实现它们之间的关联。例如,一个租户(TENANT)需要创建网络时,可以使用neutron ...
云计算网络Neutron网络入门 云计算网络Neutron是OpenStack核心项目之一,提供云计算环境下的虚拟网络功能。Neutron的功能日益强大,并在Horizon面板中已经集成该模块。作为Neutron的核心开发者之一,个人觉得...
在三层路由方面,Neutron的router(虚拟路由器)允许实例跨越不同网络段进行通信。它通过IP forwarding和iptables规则实现路由和NAT,确保实例间的通信及与外部网络的连接。 Neutron还支持负载均衡(LBaaS)功能,...
openstack-Neutron深入理解.pdf
深入理解Neutron-- OpenStack 网络实现- PDF版本 深入理解Neutron 中文版资源
neutron-fwaas 是 OpenStack Neutron 的防火墙服务。这个包包括了 Neutron 防火墙服务(FWaaS)的源代码,例如第三方驱动。这个库需要 Neutron 运行。 标签:neutron
本书强调系统性和理论指导实践的前瞻性,很多网络原理会用简单有效的小试验来证明,而 Neutron背后的原理和它恰好是一模一样的,这便于读者的深入理解。本书适合 OpenStack爱好者和有一定基础的技术工程师以及想要...
【标题】"最小最好用的时间同步器Neutron1.07"揭示了这款软件的核心特点:小巧精简和高效实用。Neutron1.07是一款专注于时间同步功能的应用程序,其体积仅为10KB,这在当今动辄数百MB甚至更大的软件环境中显得尤为...
OpenStack Neutron 原理详解
"专业时间同步器Neutron"是一款专为解决此类问题设计的软件,尤其针对微软时间同步服务可能出现的问题提供了有效的解决方案。这款国内开发的时间同步器提供了多种服务器选择,以确保用户能够更稳定、更准确地与全球...
neutron router接收到这些请求后,并不会直接处理,而是通过iptables规则将它们转发到本地的9697端口。这个端口是neutron-ns-metadata-proxy服务在监听的端口。neutron-ns-metadata-proxy的作用是作为中间代理,接收...
Neutron具有自己的专业高清的32位音频渲染的核心,这有助于从你的Android设备提供最佳音质外接扬声器或耳机。 Neutron具有复杂的UI,提供了先进的控制音乐播放。这是不容易的,这不是简单的POP音乐播放器,它...
深入理解Neutron-- OpenStack 网络实现- PDF版本 深入理解Neutron 中文版资源,可以放心下载!
讲解Neutron概况。介绍了Linux的虚拟网络知识。讲述了Neutron的实现模型。讲述的Neutron的资源模型。讲述了Neutron的基本架构,以及架构中所涉及的Web机制、通信机制、并发机制等。
Title: Learning OpenStack Networking (Neutron) Author: James Denton Length: 300 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2014-10-13 ISBN-10: 1783983302 ISBN-13:...
OpenStack-Neutron原理详解.pdf
在IT行业中,时间同步是网络服务和分布式系统中不可或缺的一部分,特别是对于云计算平台如OpenStack而言,其中的网络服务组件Neutron(也被称为OpenStack Networking)尤为重要。Neutron时间校对涉及确保网络设备和...
深入理解OpenStack Neutron 本资料共包含以下附件: 深入理解 Neutron -- OpenStack 网络实现openstack_understand_neutron.rar