1. ========================================================
  2. NETWORKS
  3. ========================================================
  4. root@control-01:~# quantum net-list
  5. +--------------------------------------+------------------+--------------------------------------+
  6. | id | name | subnets |
  7. +--------------------------------------+------------------+--------------------------------------+
  8. | 3567c4e1-152e-40de-ae94-3724092283e3 | provider-local | 8d78b2d5-dc2f-4944-8858-5ec98a03310a |
  9. | 5d88cc7f-a74c-46fc-a01c-67b1265f7362 | provider-local-2 | b117b099-5613-44fd-b9e2-e4d2f4ebdd92 |
  10. +--------------------------------------+------------------+--------------------------------------+
  11. root@control-01:~# quantum net-show provider-local
  12. +---------------------------+--------------------------------------+
  13. | Field | Value |
  14. +---------------------------+--------------------------------------+
  15. | admin_state_up | True |
  16. | id | 3567c4e1-152e-40de-ae94-3724092283e3 |
  17. | name | provider-local |
  18. | provider:network_type | local |
  19. | provider:physical_network | |
  20. | provider:segmentation_id | |
  21. | router:external | True |
  22. | shared | False |
  23. | status | ACTIVE |
  24. | subnets | 8d78b2d5-dc2f-4944-8858-5ec98a03310a |
  25. | tenant_id | fae09e346d584a179e4b176f31cc2f8a |
  26. +---------------------------+--------------------------------------+
  27. root@control-01:~# quantum net-show provider-local-2
  28. +---------------------------+--------------------------------------+
  29. | Field | Value |
  30. +---------------------------+--------------------------------------+
  31. | admin_state_up | True |
  32. | id | 5d88cc7f-a74c-46fc-a01c-67b1265f7362 |
  33. | name | provider-local-2 |
  34. | provider:network_type | local |
  35. | provider:physical_network | |
  36. | provider:segmentation_id | |
  37. | router:external | True |
  38. | shared | False |
  39. | status | ACTIVE |
  40. | subnets | b117b099-5613-44fd-b9e2-e4d2f4ebdd92 |
  41. | tenant_id | fae09e346d584a179e4b176f31cc2f8a |
  42. +---------------------------+--------------------------------------+
  43. ========================================================
  44. SUBNETS
  45. ========================================================
  46. root@control-01:~# quantum subnet-list
  47. +--------------------------------------+------+------------------+------------------------------------------------------+
  48. | id | name | cidr | allocation_pools |
  49. +--------------------------------------+------+------------------+------------------------------------------------------+
  50. | 8d78b2d5-dc2f-4944-8858-5ec98a03310a | | 192.168.100.0/24 | {"start": "192.168.100.2", "end": "192.168.100.254"} |
  51. | b117b099-5613-44fd-b9e2-e4d2f4ebdd92 | | 192.168.99.0/24 | {"start": "192.168.99.2", "end": "192.168.99.254"} |
  52. +--------------------------------------+------+------------------+------------------------------------------------------+
  53. root@control-01:~# quantum subnet-show 8d78b2d5-dc2f-4944-8858-5ec98a03310a
  54. +------------------+------------------------------------------------------+
  55. | Field | Value |
  56. +------------------+------------------------------------------------------+
  57. | allocation_pools | {"start": "192.168.100.2", "end": "192.168.100.254"} |
  58. | cidr | 192.168.100.0/24 |
  59. | dns_nameservers | |
  60. | enable_dhcp | False |
  61. | gateway_ip | 192.168.100.1 |
  62. | host_routes | |
  63. | id | 8d78b2d5-dc2f-4944-8858-5ec98a03310a |
  64. | ip_version | 4 |
  65. | name | |
  66. | network_id | 3567c4e1-152e-40de-ae94-3724092283e3 |
  67. | tenant_id | fae09e346d584a179e4b176f31cc2f8a |
  68. +------------------+------------------------------------------------------+
  69. root@control-01:~# quantum subnet-show b117b099-5613-44fd-b9e2-e4d2f4ebdd92
  70. +------------------+----------------------------------------------------+
  71. | Field | Value |
  72. +------------------+----------------------------------------------------+
  73. | allocation_pools | {"start": "192.168.99.2", "end": "192.168.99.254"} |
  74. | cidr | 192.168.99.0/24 |
  75. | dns_nameservers | |
  76. | enable_dhcp | False |
  77. | gateway_ip | 192.168.99.1 |
  78. | host_routes | |
  79. | id | b117b099-5613-44fd-b9e2-e4d2f4ebdd92 |
  80. | ip_version | 4 |
  81. | name | |
  82. | network_id | 5d88cc7f-a74c-46fc-a01c-67b1265f7362 |
  83. | tenant_id | fae09e346d584a179e4b176f31cc2f8a |
  84. +------------------+----------------------------------------------------+
  85. ========================================================
  86. ROUTERS
  87. ========================================================
  88. root@control-01:~# quantum router-list
  89. +--------------------------------------+----------------+--------------------------------------------------------+
  90. | id | name | external_gateway_info |
  91. +--------------------------------------+----------------+--------------------------------------------------------+
  92. | 4e1aac6b-a342-4d69-a196-341122945c47 | router-local | {"network_id": "3567c4e1-152e-40de-ae94-3724092283e3"} |
  93. | 8e1c3798-d236-4a36-875b-9a50837c055d | router-local-2 | {"network_id": "5d88cc7f-a74c-46fc-a01c-67b1265f7362"} |
  94. +--------------------------------------+----------------+--------------------------------------------------------+
  95. root@control-01:~# quantum router-show router-local
  96. +-----------------------+--------------------------------------------------------+
  97. | Field | Value |
  98. +-----------------------+--------------------------------------------------------+
  99. | admin_state_up | True |
  100. | external_gateway_info | {"network_id": "3567c4e1-152e-40de-ae94-3724092283e3"} |
  101. | id | 4e1aac6b-a342-4d69-a196-341122945c47 |
  102. | name | router-local |
  103. | status | ACTIVE |
  104. | tenant_id | fae09e346d584a179e4b176f31cc2f8a |
  105. +-----------------------+--------------------------------------------------------+
  106. root@control-01:~# quantum router-show router-local-2
  107. +-----------------------+--------------------------------------------------------+
  108. | Field | Value |
  109. +-----------------------+--------------------------------------------------------+
  110. | admin_state_up | True |
  111. | external_gateway_info | {"network_id": "5d88cc7f-a74c-46fc-a01c-67b1265f7362"} |
  112. | id | 8e1c3798-d236-4a36-875b-9a50837c055d |
  113. | name | router-local-2 |
  114. | status | ACTIVE |
  115. | tenant_id | fae09e346d584a179e4b176f31cc2f8a |
  116. +-----------------------+--------------------------------------------------------+
  117. ========================================================
  118. l3_agent configs
  119. ========================================================
  120. l3_agent 1 for network 'provider-local'
  121. --------------------------------------------------------
  122. gateway_external_network_id = 3567c4e1-152e-40de-ae94-3724092283e3
  123. handle_internal_only_routers = True
  124. external_network_bridge = br-ex
  125. l3_agent 2 for network 'provider-local-2'
  126. --------------------------------------------------------
  127. gateway_external_network_id = 5d88cc7f-a74c-46fc-a01c-67b1265f7362
  128. handle_internal_only_routers = False
  129. external_network_bridge = br-ex
  130. ========================================================
  131. ip netns output when l3_agent 2 for network '5d88cc7f-a74c-46fc-a01c-67b1265f7362' is running
  132. ========================================================
  133. root@network-01:/etc/quantum# ip netns
  134. qrouter-8e1c3798-d236-4a36-875b-9a50837c055d
  135. qrouter-4e1aac6b-a342-4d69-a196-341122945c47
  136. root@network-01:/etc/quantum# ip netns exec qrouter-8e1c3798-d236-4a36-875b-9a50837
  137. c055d ifconfig
  138. lo Link encap:Local Loopback
  139. inet addr:127.0.0.1 Mask:255.0.0.0
  140. inet6 addr: ::1/128 Scope:Host
  141. UP LOOPBACK RUNNING MTU:16436 Metric:1
  142. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  143. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  144. collisions:0 txqueuelen:0
  145. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  146. qg-a2654a5f-93 Link encap:Ethernet HWaddr fa:16:3e:30:ce:ad
  147. inet addr:192.168.99.3 Bcast:192.168.99.255 Mask:255.255.255.0
  148. inet6 addr: fe80::f816:3eff:fe30:cead/64 Scope:Link
  149. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  150. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  151. TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
  152. collisions:0 txqueuelen:0
  153. RX bytes:0 (0.0 B) TX bytes:468 (468.0 B)
  154. root@network-01:/etc/quantum# ip netns exec qrouter-4e1aac6b-a342-4d69-a196-3411229
  155. 45c47 ifconfig
  156. lo Link encap:Local Loopback
  157. inet addr:127.0.0.1 Mask:255.0.0.0
  158. inet6 addr: ::1/128 Scope:Host
  159. UP LOOPBACK RUNNING MTU:16436 Metric:1
  160. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  161. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  162. collisions:0 txqueuelen:0
  163. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  164. ========================================================
  165. ip netns output when both l3 agents are running
  166. ========================================================
  167. root@network-01:/etc/quantum# ip netns exec qrouter-8e1c3798-d236-4a36-875b-9a50837c055d ifconfig
  168. lo Link encap:Local Loopback
  169. inet addr:127.0.0.1 Mask:255.0.0.0
  170. inet6 addr: ::1/128 Scope:Host
  171. UP LOOPBACK RUNNING MTU:16436 Metric:1
  172. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  173. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  174. collisions:0 txqueuelen:0
  175. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  176. root@network-01:/etc/quantum# ip netns exec qrouter-4e1aac6b-a342-4d69-a196-341122945c47 ifconfig
  177. lo Link encap:Local Loopback
  178. inet addr:127.0.0.1 Mask:255.0.0.0
  179. inet6 addr: ::1/128 Scope:Host
  180. UP LOOPBACK RUNNING MTU:16436 Metric:1
  181. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  182. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  183. collisions:0 txqueuelen:0
  184. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

quantum l3 agent debug output