Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # neutron net-list
- +--------------------------------------+------------+----------------------------------------------------+
- | id | name | subnets |
- +--------------------------------------+------------+----------------------------------------------------+
- | 5303dcd3-080d-42ec-87fd-5c49e7288079 | sharednet2 | 77a0059d-fab5-4654-88b5-337791db4885 10.150.0.0/16 |
- | 6501c158-5434-4fa2-93c9-3855131aa283 | sharednet1 | de164a0d-a938-4a87-8a90-e334d3d43fef 172.22.0.0/16 |
- +--------------------------------------+------------+----------------------------------------------------+
- # neutron subnet-list
- +--------------------------------------+------+---------------+--------------------------------------------------+
- | id | name | cidr | allocation_pools |
- +--------------------------------------+------+---------------+--------------------------------------------------+
- | 77a0059d-fab5-4654-88b5-337791db4885 | | 10.150.0.0/16 | {"start": "10.150.10.10", "end": "10.150.50.50"} |
- | de164a0d-a938-4a87-8a90-e334d3d43fef | | 172.22.0.0/16 | {"start": "172.22.10.10", "end": "172.22.50.50"} |
- +--------------------------------------+------+---------------+--------------------------------------------------+
- # neutron subnet-show 77a0059d-fab5-4654-88b5-337791db4885
- +------------------+--------------------------------------------------+
- | Field | Value |
- +------------------+--------------------------------------------------+
- | allocation_pools | {"start": "10.150.10.10", "end": "10.150.50.50"} |
- | cidr | 10.150.0.0/16 |
- | dns_nameservers | 10.150.5.1 |
- | enable_dhcp | True |
- | gateway_ip | 10.150.5.1 |
- | host_routes | |
- | id | 77a0059d-fab5-4654-88b5-337791db4885 |
- | ip_version | 4 |
- | name | |
- | network_id | 5303dcd3-080d-42ec-87fd-5c49e7288079 |
- | tenant_id | admin |
- +------------------+--------------------------------------------------+
- # neutron subnet-show de164a0d-a938-4a87-8a90-e334d3d43fef
- +------------------+--------------------------------------------------+
- | Field | Value |
- +------------------+--------------------------------------------------+
- | allocation_pools | {"start": "172.22.10.10", "end": "172.22.50.50"} |
- | cidr | 172.22.0.0/16 |
- | dns_nameservers | 172.22.0.1 |
- | enable_dhcp | True |
- | gateway_ip | 172.22.0.1 |
- | host_routes | |
- | id | de164a0d-a938-4a87-8a90-e334d3d43fef |
- | ip_version | 4 |
- | name | |
- | network_id | 6501c158-5434-4fa2-93c9-3855131aa283 |
- | tenant_id | admin |
- +------------------+--------------------------------------------------+
- # ip netns list
- qdhcp-6501c158-5434-4fa2-93c9-3855131aa283
- qdhcp-5303dcd3-080d-42ec-87fd-5c49e7288079
- # ip netns exec qdhcp-6501c158-5434-4fa2-93c9-3855131aa283 ip add
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
- 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
- 29: tap7cd1bb45-94: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
- link/ether fa:16:3e:82:5b:03 brd ff:ff:ff:ff:ff:ff
- inet 172.22.10.11/16 brd 172.22.255.255 scope global tap7cd1bb45-94
- valid_lft forever preferred_lft forever
- inet 169.254.169.254/16 brd 169.254.255.255 scope global tap7cd1bb45-94
- valid_lft forever preferred_lft forever
- inet6 fe80::f816:3eff:fe82:5b03/64 scope link
- valid_lft forever preferred_lft forever
- # ip netns exec qdhcp-6501c158-5434-4fa2-93c9-3855131aa283 route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 0.0.0.0 172.22.0.1 0.0.0.0 UG 0 0 0 tap7cd1bb45-94
- 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap7cd1bb45-94
- 172.22.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap7cd1bb45-94
- # ip netns exec qdhcp-6501c158-5434-4fa2-93c9-3855131aa283 arp -a
- ? (172.22.0.1) at 02:1f:a0:00:00:21 [ether] on tap7cd1bb45-94
- ? (172.22.0.2) at 00:1f:a0:11:41:d3 [ether] on tap7cd1bb45-94
- ? (172.22.10.22) at fa:16:3e:73:08:77 [ether] on tap7cd1bb45-94
- ? (172.22.10.23) at fa:16:3e:d8:6f:2a [ether] on tap7cd1bb45-94
- ? (172.22.10.25) at fa:16:3e:9c:99:a5 [ether] on tap7cd1bb45-94
- # ip netns exec qdhcp-5303dcd3-080d-42ec-87fd-5c49e7288079 ip add
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
- 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
- 28: tap1d90186b-4b: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
- link/ether fa:16:3e:7c:ec:b5 brd ff:ff:ff:ff:ff:ff
- inet 10.150.10.11/16 brd 10.150.255.255 scope global tap1d90186b-4b
- valid_lft forever preferred_lft forever
- inet 169.254.169.254/16 brd 169.254.255.255 scope global tap1d90186b-4b
- valid_lft forever preferred_lft forever
- inet6 fe80::f816:3eff:fe7c:ecb5/64 scope link
- valid_lft forever preferred_lft forever
- # ip netns exec qdhcp-5303dcd3-080d-42ec-87fd-5c49e7288079 route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 0.0.0.0 10.150.5.1 0.0.0.0 UG 0 0 0 tap1d90186b-4b
- 10.150.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap1d90186b-4b
- 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap1d90186b-4b
- # ip netns exec qdhcp-5303dcd3-080d-42ec-87fd-5c49e7288079 arp -a
- ? (10.150.10.16) at fa:16:3e:64:9f:0c [ether] on tap1d90186b-4b
- ? (10.150.10.14) at fa:16:3e:82:09:14 [ether] on tap1d90186b-4b
- ? (10.150.10.15) at 0c:c4:7a:1d:e9:80 [ether] on tap1d90186b-4b
- ? (10.150.5.1) at 00:18:0a:85:92:84 [ether] on tap1d90186b-4b
- ovs-vsctl show (on controller)
- # ovs-vsctl show
- 3d2c0525-73d7-48c1-94ea-b03a8305722b
- Bridge "br-osbond0.1150"
- Port "phy-br-osc9d591"
- Interface "phy-br-osc9d591"
- Port "osbond0.1150"
- Interface "osbond0.1150"
- Port "br-osbond0.1150"
- Interface "br-osbond0.1150"
- type: internal
- Bridge br-tun
- Port br-tun
- Interface br-tun
- type: internal
- Port patch-int
- Interface patch-int
- type: patch
- options: {peer=patch-tun}
- Port "gre-0a0b0a0e"
- Interface "gre-0a0b0a0e"
- type: gre
- options: {in_key=flow, local_ip="10.11.4.11", out_key=flow, remote_ip="10.11.10.14"}
- Port "gre-0a0b0a0f"
- Interface "gre-0a0b0a0f"
- type: gre
- options: {in_key=flow, local_ip="10.11.4.11", out_key=flow, remote_ip="10.11.10.15"}
- Bridge br-int
- fail_mode: secure
- Port "tap7cd1bb45-94"
- tag: 2
- Interface "tap7cd1bb45-94"
- type: internal
- Port "int-br-os917825"
- Interface "int-br-os917825"
- Port "tap1d90186b-4b"
- tag: 1
- Interface "tap1d90186b-4b"
- type: internal
- Port patch-tun
- Interface patch-tun
- type: patch
- options: {peer=patch-int}
- Port "int-br-osc9d591"
- Interface "int-br-osc9d591"
- Port br-int
- Interface br-int
- type: internal
- Bridge "br-osbond0.2200"
- Port "osbond0.2200"
- Interface "osbond0.2200"
- Port "phy-br-os917825"
- Interface "phy-br-os917825"
- Port "br-osbond0.2200"
- Interface "br-osbond0.2200"
- type: internal
- ovs_version: "2.0.2"
- Compute1
- ========
- # virsh list --all
- Id Name State
- ----------------------------------------------------
- 20 instance-00000020 running
- 21 instance-00000022 running
- 22 instance-00000024 running
- 23 instance-00000026 running
- # ovs-vsctl show
- 8e672f2d-e76d-4bc6-bc70-dc93ddd3a8e4
- Bridge "br-osbond0.1150"
- Port "br-osbond0.1150"
- Interface "br-osbond0.1150"
- type: internal
- Port "osbond0.1150"
- Interface "osbond0.1150"
- Port "phy-br-osc9d591"
- Interface "phy-br-osc9d591"
- Bridge br-tun
- Port "gre-0a0b040b"
- Interface "gre-0a0b040b"
- type: gre
- options: {in_key=flow, local_ip="10.11.10.14", out_key=flow, remote_ip="10.11.4.11"}
- Port "gre-0a0b0a0f"
- Interface "gre-0a0b0a0f"
- type: gre
- options: {in_key=flow, local_ip="10.11.10.14", out_key=flow, remote_ip="10.11.10.15"}
- Port br-tun
- Interface br-tun
- type: internal
- Port patch-int
- Interface patch-int
- type: patch
- options: {peer=patch-tun}
- Bridge br-int
- fail_mode: secure
- Port "qvo2a20082b-5a"
- tag: 1
- Interface "qvo2a20082b-5a"
- Port "qvo32f0e30d-c7"
- tag: 2
- Interface "qvo32f0e30d-c7"
- Port patch-tun
- Interface patch-tun
- type: patch
- options: {peer=patch-int}
- Port br-int
- Interface br-int
- type: internal
- Port "int-br-os917825"
- Interface "int-br-os917825"
- Port "int-br-osc9d591"
- Interface "int-br-osc9d591"
- Port "qvo038076d6-58"
- tag: 2
- Interface "qvo038076d6-58"
- Port "qvoc23af27f-a4"
- tag: 1
- Interface "qvoc23af27f-a4"
- Bridge "br-osbond0.2200"
- Port "phy-br-os917825"
- Interface "phy-br-os917825"
- Port "br-osbond0.2200"
- Interface "br-osbond0.2200"
- type: internal
- Port "osbond0.2200"
- Interface "osbond0.2200"
- ovs_version: "2.0.2"
- Compute-2
- =========
- # virsh list --all
- Id Name State
- ----------------------------------------------------
- 13 instance-0000001f running
- 14 instance-00000021 running
- - instance-00000023 shut off
- # ovs-vsctl show
- 0b959a09-0c8d-4699-9475-57ca115bf63b
- Bridge "br-osbond0.1150"
- Port "phy-br-osc9d591"
- Interface "phy-br-osc9d591"
- Port "br-osbond0.1150"
- Interface "br-osbond0.1150"
- type: internal
- Port "osbond0.1150"
- Interface "osbond0.1150"
- Bridge "br-osbond0.2200"
- Port "phy-br-os917825"
- Interface "phy-br-os917825"
- Port "br-osbond0.2200"
- Interface "br-osbond0.2200"
- type: internal
- Port "osbond0.2200"
- Interface "osbond0.2200"
- Bridge br-int
- fail_mode: secure
- Port "qvo68af3758-60"
- tag: 2
- Interface "qvo68af3758-60"
- Port "qvo23c24045-42"
- tag: 1
- Interface "qvo23c24045-42"
- Port "int-br-os917825"
- Interface "int-br-os917825"
- Port "int-br-osc9d591"
- Interface "int-br-osc9d591"
- Port "qvo69e7cd17-03"
- tag: 2
- Interface "qvo69e7cd17-03"
- Port patch-tun
- Interface patch-tun
- type: patch
- options: {peer=patch-int}
- Port br-int
- Interface br-int
- type: internal
- Bridge br-tun
- Port br-tun
- Interface br-tun
- type: internal
- Port "gre-0a0b040b"
- Interface "gre-0a0b040b"
- type: gre
- options: {in_key=flow, local_ip="10.11.10.15", out_key=flow, remote_ip="10.11.4.11"}
- Port "gre-0a0b0a0e"
- Interface "gre-0a0b0a0e"
- type: gre
- options: {in_key=flow, local_ip="10.11.10.15", out_key=flow, remote_ip="10.11.10.14"}
- Port patch-int
- Interface patch-int
- type: patch
- options: {peer=patch-tun}
- ovs_version: "2.0.2"
- Controller Configuration:
- /etc/neutron# cat neutron.conf |grep -v '^#' |grep -v '^$'
- [DEFAULT]
- verbose = True
- debug = True
- state_path = /var/lib/neutron
- lock_path = $state_path/lock
- use_syslog = False
- log_dir =/var/log/neutron
- bind_host = 0.0.0.0
- bind_port = 9696
- core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
- service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
- auth_strategy = keystone
- base_mac = fa:16:3e:00:00:00
- mac_generation_retries = 16
- dhcp_lease_duration = 86400
- dhcp_agent_notification = True
- allow_bulk = True
- allow_pagination = False
- allow_sorting = False
- allow_overlapping_ips = True
- rpc_backend = neutron.openstack.common.rpc.impl_kombu
- control_exchange = neutron
- rabbit_host = 10.13.4.11
- rabbit_password = xxxxx
- rabbit_port = 5672
- rabbit_hosts = 10.13.4.11:5672
- rabbit_userid = openstack
- rabbit_virtual_host = /
- rabbit_ha_queues = False
- notification_driver = neutron.openstack.common.notifier.rpc_notifier
- agent_down_time = 75
- router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler
- dhcp_agents_per_network = 1
- api_workers = 0
- rpc_workers = 0
- use_ssl = False
- notify_nova_on_port_status_changes = True
- notify_nova_on_port_data_changes = True
- nova_url = http://10.13.4.11:8774/v2/
- nova_region_name =US1-NextGen
- nova_admin_username =nova
- nova_admin_tenant_id =085d3bc49b704349a6b4980f4cd9f663
- nova_admin_password =xxxx
- nova_admin_auth_url =http://10.13.4.11:35357/v2.0/
- send_events_interval = 2
- rabbit_use_ssl=False
- [quotas]
- [agent]
- root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
- # cat plugin.ini |grep -v '^#' |grep -v '^$'
- [ml2]
- type_drivers = flat,vlan,gre,vxlan
- tenant_network_types = vxlan
- mechanism_drivers =openvswitch,linuxbridge
- [ml2_type_flat]
- flat_networks = *
- [ml2_type_vlan]
- network_vlan_ranges =physnet1:100:199,physnet2:200:299
- [ml2_type_gre]
- tunnel_id_ranges =1:1000
- [ml2_type_vxlan]
- vni_ranges =10:100
- vxlan_group =224.0.0.1
- [securitygroup]
- enable_security_group = True
- firewall_driver=neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
- [agent]
- l2_population=False
- polling_interval=2
- arp_responder=False
- tunnel_types=gre
- [ovs]
- enable_tunneling=True
- integration_bridge=br-int
- bridge_mappings=physnet1:br-osbond0.2200,physnet2:br-osbond0.1150
- local_ip=10.11.4.11
- tunnel_bridge=br-tun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement