Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.75 KB | None | 0 0
  1. root@study-controller ~]# neutron net-list
  2. +--------------------------------------+----------+------------------------------------------------------+
  3. | id | name | subnets |
  4. +--------------------------------------+----------+------------------------------------------------------+
  5. | 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763 | ext-net | ff69d52d-7b03-45da-b433-33271f2575c6 10.2.57.0/24 |
  6. | 5ab9bd17-8ee5-4c48-a190-682b4a46e615 | demo-net | 04f62cc4-ce25-4e2b-84c0-10788ad5d808 192.168.16.0/24 |
  7. +--------------------------------------+----------+------------------------------------------------------+
  8. [root@study-controller ~]# neutron net-show 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763
  9. +---------------------------+--------------------------------------+
  10. | Field | Value |
  11. +---------------------------+--------------------------------------+
  12. | admin_state_up | True |
  13. | id | 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763 |
  14. | name | ext-net |
  15. | provider:network_type | flat |
  16. | provider:physical_network | external |
  17. | provider:segmentation_id | |
  18. | router:external | True |
  19. | shared | False |
  20. | status | ACTIVE |
  21. | subnets | ff69d52d-7b03-45da-b433-33271f2575c6 |
  22. | tenant_id | d7555ade73fb43f2a51754d647a5697f |
  23. +---------------------------+--------------------------------------+
  24. [root@study-controller ~]# neutron subnet-show 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763
  25. Unable to find subnet with name '6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763'
  26. [root@study-controller ~]# neutron subnet-show ff69d52d-7b03-45da-b433-33271f2575c6
  27. +-------------------+----------------------------------------------+
  28. | Field | Value |
  29. +-------------------+----------------------------------------------+
  30. | allocation_pools | {"start": "10.2.57.60", "end": "10.2.57.80"} |
  31. | cidr | 10.2.57.0/24 |
  32. | dns_nameservers | |
  33. | enable_dhcp | False |
  34. | gateway_ip | 10.2.57.1 |
  35. | host_routes | |
  36. | id | ff69d52d-7b03-45da-b433-33271f2575c6 |
  37. | ip_version | 4 |
  38. | ipv6_address_mode | |
  39. | ipv6_ra_mode | |
  40. | name | ext-subnet |
  41. | network_id | 6f9e2b97-eb81-4faf-bcaa-d96f7f5ce763 |
  42. | tenant_id | d7555ade73fb43f2a51754d647a5697f |
  43. +-------------------+----------------------------------------------+
  44. [root@study-controller ~]#
  45.  
  46. ========================= ml2_conf.ini controller ===
  47.  
  48.  
  49. [ml2]
  50. # (ListOpt) List of network type driver entrypoints to be loaded from
  51. # the neutron.ml2.type_drivers namespace.
  52. #
  53. # type_drivers = local,flat,vlan,gre,vxlan
  54. # Example: type_drivers = flat,vlan,gre,vxlan
  55.  
  56. # (ListOpt) Ordered list of network_types to allocate as tenant
  57. # networks. The default value 'local' is useful for single-box testing
  58. # but provides no connectivity between hosts.
  59. #
  60. # tenant_network_types = local
  61. # Example: tenant_network_types = vlan,gre,vxlan
  62.  
  63. # (ListOpt) Ordered list of networking mechanism driver entrypoints
  64. # to be loaded from the neutron.ml2.mechanism_drivers namespace.
  65. # mechanism_drivers =
  66. # Example: mechanism_drivers = openvswitch,mlnx
  67. # Example: mechanism_drivers = arista
  68. # Example: mechanism_drivers = cisco,logger
  69. # Example: mechanism_drivers = openvswitch,brocade
  70. # Example: mechanism_drivers = linuxbridge,brocade
  71.  
  72. # (ListOpt) Ordered list of extension driver entrypoints
  73. # to be loaded from the neutron.ml2.extension_drivers namespace.
  74. # extension_drivers =
  75. # Example: extension_drivers = anewextensiondriver
  76.  
  77. type_drivers = flat,vlan,gre
  78. tenant_network_types = vlan
  79. mechanism_drivers = openvswitch,l2population
  80.  
  81.  
  82.  
  83.  
  84. [ml2_type_flat]
  85. # (ListOpt) List of physical_network names with which flat networks
  86. # can be created. Use * to allow flat networks with arbitrary
  87. # physical_network names.
  88. #
  89. # flat_networks =
  90. # Example:flat_networks = physnet1,physnet2
  91. # Example:flat_networks = *
  92.  
  93. flat_networks = external
  94.  
  95.  
  96. [ml2_type_vlan]
  97. # (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
  98. # specifying physical_network names usable for VLAN provider and
  99. # tenant networks, as well as ranges of VLAN tags on each
  100. # physical_network available for allocation as tenant networks.
  101. #
  102. # network_vlan_ranges =
  103. # Example: network_vlan_ranges = physnet1:1000:2999,physnet2
  104.  
  105. network_vlan_ranges = vlan:2001:2001
  106.  
  107. [ml2_type_gre]
  108. # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
  109. # tunnel_id_ranges =
  110. #tunnel_id_ranges = 1:1000
  111.  
  112.  
  113. [ml2_type_vxlan]
  114. # (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
  115. # ranges of VXLAN VNI IDs that are available for tenant network allocation.
  116. #
  117. # vni_ranges =
  118.  
  119. # (StrOpt) Multicast group for the VXLAN interface. When configured, will
  120. # enable sending all broadcast traffic to this multicast group. When left
  121. # unconfigured, will disable multicast VXLAN mode.
  122. #
  123. # vxlan_group =
  124. # Example: vxlan_group = 239.1.1.1
  125.  
  126. [securitygroup]
  127. # Controls if neutron security group is enabled or not.
  128. # It should be false when you use nova security group.
  129. # enable_security_group = True
  130.  
  131. enable_security_group = True
  132. enable_ipset = True
  133. firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
  134.  
  135.  
  136.  
  137. # Use ipset to speed-up the iptables security groups. Enabling ipset support
  138. # requires that ipset is installed on L2 agent node.
  139. # enable_ipset = True
  140. #
  141.  
  142. [ovs]
  143.  
  144. local_ip = <%= ins_tun_iface %>
  145. enable_tunneling = True
  146. bridge_mappings = external:br-ex
  147.  
  148. [agent]
  149. tunnel_types = gre
  150.  
  151. ==============ml2_conf.ini nethost ====
  152.  
  153. [ml2]
  154. # (ListOpt) List of network type driver entrypoints to be loaded from
  155. # the neutron.ml2.type_drivers namespace.
  156. #
  157. # type_drivers = local,flat,vlan,gre,vxlan
  158. # Example: type_drivers = flat,vlan,gre,vxlan
  159.  
  160. # (ListOpt) Ordered list of network_types to allocate as tenant
  161. # networks. The default value 'local' is useful for single-box testing
  162. # but provides no connectivity between hosts.
  163. #
  164. # tenant_network_types = local
  165. # Example: tenant_network_types = vlan,gre,vxlan
  166.  
  167. # (ListOpt) Ordered list of networking mechanism driver entrypoints
  168. # to be loaded from the neutron.ml2.mechanism_drivers namespace.
  169. # mechanism_drivers =
  170. # Example: mechanism_drivers = openvswitch,mlnx
  171. # Example: mechanism_drivers = arista
  172. # Example: mechanism_drivers = cisco,logger
  173. # Example: mechanism_drivers = openvswitch,brocade
  174. # Example: mechanism_drivers = linuxbridge,brocade
  175.  
  176. # (ListOpt) Ordered list of extension driver entrypoints
  177. # to be loaded from the neutron.ml2.extension_drivers namespace.
  178. # extension_drivers =
  179. # Example: extension_drivers = anewextensiondriver
  180.  
  181. type_drivers = flat,vlan,gre
  182. tenant_network_types = vlan
  183. mechanism_drivers = openvswitch,l2population
  184.  
  185.  
  186.  
  187.  
  188.  
  189. [ml2_type_flat]
  190. # (ListOpt) List of physical_network names with which flat networks
  191. # can be created. Use * to allow flat networks with arbitrary
  192. # physical_network names.
  193. #
  194. # flat_networks =
  195. # Example:flat_networks = physnet1,physnet2
  196. # Example:flat_networks = *
  197.  
  198. flat_networks = external
  199.  
  200.  
  201. [ml2_type_vlan]
  202. # (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
  203. # specifying physical_network names usable for VLAN provider and
  204. # tenant networks, as well as ranges of VLAN tags on each
  205. # physical_network available for allocation as tenant networks.
  206. #
  207. # network_vlan_ranges =
  208. # Example: network_vlan_ranges = physnet1:1000:2999,physnet2
  209. network_vlan_ranges = vlan:2001:2001
  210.  
  211.  
  212. [ml2_type_gre]
  213. # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
  214. # tunnel_id_ranges =
  215. tunnel_id_ranges = 1:1000
  216.  
  217.  
  218. [ml2_type_vxlan]
  219. # (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
  220. # ranges of VXLAN VNI IDs that are available for tenant network allocation.
  221. #
  222. # vni_ranges =
  223.  
  224. # (StrOpt) Multicast group for the VXLAN interface. When configured, will
  225. # enable sending all broadcast traffic to this multicast group. When left
  226. # unconfigured, will disable multicast VXLAN mode.
  227. #
  228. # vxlan_group =
  229. # Example: vxlan_group = 239.1.1.1
  230.  
  231. [securitygroup]
  232. # Controls if neutron security group is enabled or not.
  233. # It should be false when you use nova security group.
  234. # enable_security_group = True
  235.  
  236. enable_security_group = True
  237. enable_ipset = True
  238. firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
  239.  
  240.  
  241.  
  242. # Use ipset to speed-up the iptables security groups. Enabling ipset support
  243. # requires that ipset is installed on L2 agent node.
  244. # enable_ipset = True
  245. #
  246.  
  247. [ovs]
  248.  
  249. local_ip = <%= iniface %>
  250. enable_tunneling = True
  251. bridge_mappings = vlan:br-int,external:br-ex
  252.  
  253.  
  254. [agent]
  255. l2population = True
  256. tunnel_types = gre
  257.  
  258.  
  259. ============================ ml2_conf.ini compute node ===
  260.  
  261. [ml2]
  262. # (ListOpt) List of network type driver entrypoints to be loaded from
  263. # the neutron.ml2.type_drivers namespace.
  264. #
  265. # type_drivers = local,flat,vlan,gre,vxlan
  266. # Example: type_drivers = flat,vlan,gre,vxlan
  267.  
  268. # (ListOpt) Ordered list of network_types to allocate as tenant
  269. # networks. The default value 'local' is useful for single-box testing
  270. # but provides no connectivity between hosts.
  271. #
  272. # tenant_network_types = local
  273. # Example: tenant_network_types = vlan,gre,vxlan
  274.  
  275. # (ListOpt) Ordered list of networking mechanism driver entrypoints
  276. # to be loaded from the neutron.ml2.mechanism_drivers namespace.
  277. # mechanism_drivers =
  278. # Example: mechanism_drivers = openvswitch,mlnx
  279. # Example: mechanism_drivers = arista
  280. # Example: mechanism_drivers = cisco,logger
  281. # Example: mechanism_drivers = openvswitch,brocade
  282. # Example: mechanism_drivers = linuxbridge,brocade
  283.  
  284. # (ListOpt) Ordered list of extension driver entrypoints
  285. # to be loaded from the neutron.ml2.extension_drivers namespace.
  286. # extension_drivers =
  287. # Example: extension_drivers = anewextensiondriver
  288.  
  289. type_drivers = flat,vlan
  290. tenant_network_types = vlan
  291. mechanism_drivers = openvswitch,l2population
  292.  
  293.  
  294. [ml2_type_flat]
  295. # (ListOpt) List of physical_network names with which flat networks
  296. # can be created. Use * to allow flat networks with arbitrary
  297. # physical_network names.
  298. #
  299. # flat_networks =
  300. # Example:flat_networks = physnet1,physnet2
  301. # Example:flat_networks = *
  302. flat_networks = external
  303.  
  304.  
  305. [ml2_type_vlan]
  306. # (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
  307. # specifying physical_network names usable for VLAN provider and
  308. # tenant networks, as well as ranges of VLAN tags on each
  309. # physical_network available for allocation as tenant networks.
  310. #
  311. # network_vlan_ranges =
  312. # Example: network_vlan_ranges = physnet1:1000:2999,physnet2
  313. network_vlan_ranges = vlan:2001:2001
  314.  
  315.  
  316. [ml2_type_gre]
  317. # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
  318. # tunnel_id_ranges =
  319. tunnel_id_ranges = 1:1000
  320.  
  321. [ml2_type_vxlan]
  322. # (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
  323. # ranges of VXLAN VNI IDs that are available for tenant network allocation.
  324. #
  325. # vni_ranges =
  326.  
  327. # (StrOpt) Multicast group for the VXLAN interface. When configured, will
  328. # enable sending all broadcast traffic to this multicast group. When left
  329. # unconfigured, will disable multicast VXLAN mode.
  330. #
  331. # vxlan_group =
  332. # Example: vxlan_group = 239.1.1.1
  333.  
  334. [securitygroup]
  335. enable_security_group = True
  336. enable_ipset = True
  337. firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
  338. # Controls if neutron security group is enabled or not.
  339. # It should be false when you use nova security group.
  340. # enable_security_group = True
  341.  
  342.  
  343. [ovs]
  344. local_ip = 10.0.0.31
  345. enable_tunneling = True
  346. bridge_mappings = vlan:br-int,external:br-ex
  347.  
  348.  
  349.  
  350. [agent]
  351. l2population = True
  352. tunnel_types = gre
  353.  
  354. # Use ipset to speed-up the iptables security groups. Enabling ipset support
  355. # requires that ipset is installed on L2 agent node.
  356. # enable_ipset = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement