|
|
openstack network list
$ k6 t' i7 p B" \( P" V+--------------------------------------+---------+--------------------------------------+1 ]8 j7 s: G/ U: Y E
| ID | Name | Subnets |
; |$ ~0 p! ?1 u- e/ T; a/ C/ ^+--------------------------------------+---------+--------------------------------------+
; d: J3 r& V. X% {* h7 p| 20cd5e9e-efae-4f71-90a6-2b337aac6583 | VLAN 20 | ed54b768-58e3-4fe3-9f63-6f049f27ee44 |
* I3 B) P( n+ S8 F2 `( t" P| c8c23472-dd02-41d5-9c75-1da8130d9315 | VLAN 10 | fc77a0cb-0422-4da4-85a2-787e467357c6 |4 N6 q" x5 x9 R% n
+--------------------------------------+---------+--------------------------------------+1 S4 j( r( O8 t1 O
neutron net-external-list
3 J6 [. L" o* r" ]" [; tneutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.5 Z$ J. Y( Y) v! T3 W* I
+--------------------------------------+---------+----------------------------------+----------------------------------------------------+
/ z3 p# K- X. D A| id | name | tenant_id | subnets |# u" Z( f3 L8 M! ~/ f# I3 e2 @+ K; m
+--------------------------------------+---------+----------------------------------+----------------------------------------------------+6 m; `* A2 O M. N
| 20cd5e9e-efae-4f71-90a6-2b337aac6583 | VLAN 20 | f563fd1031a246d7aa182ccb79abc996 | ed54b768-58e3-4fe3-9f63-6f049f27ee44 10.10.20.0/24 |0 [" M( K6 @8 |7 J/ w: t
| c8c23472-dd02-41d5-9c75-1da8130d9315 | VLAN 10 | f563fd1031a246d7aa182ccb79abc996 | fc77a0cb-0422-4da4-85a2-787e467357c6 10.10.19.0/24 |; E" Y, {* s; }* x4 M0 ?
+--------------------------------------+---------+----------------------------------+----------------------------------------------------+
; U) q( P1 p3 }0 x1 V. L4 R2 S, W4 O
neutron net-list! v+ a8 |% X2 e& q+ X/ W
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
0 z! v! j$ r. s. R9 @) W8 _/ g3 F+--------------------------------------+---------+----------------------------------+----------------------------------------------------+. \9 {+ ]$ i. G* P1 o( J' g
| id | name | tenant_id | subnets |, r& c+ b f/ B( u
+--------------------------------------+---------+----------------------------------+----------------------------------------------------+
" U) K( @/ m* D0 q N' |; J4 M| 20cd5e9e-efae-4f71-90a6-2b337aac6583 | VLAN 20 | f563fd1031a246d7aa182ccb79abc996 | ed54b768-58e3-4fe3-9f63-6f049f27ee44 10.10.20.0/24 |
% ?2 w: j' S% Y| c8c23472-dd02-41d5-9c75-1da8130d9315 | VLAN 10 | f563fd1031a246d7aa182ccb79abc996 | fc77a0cb-0422-4da4-85a2-787e467357c6 10.10.19.0/24 |: g1 T" t" R6 k
+--------------------------------------+---------+----------------------------------+----------------------------------------------------++ ?3 h# Z% I- d8 G; Y
/ r* _$ o8 q D- F* R
" W0 x( A. f% P6 r1 \
以上都是列出相关的网络$ u& r* S* J! B8 y( K l
. y2 V" n+ a# h
openstack network rbac list. s! K' R0 W6 _% |+ @7 ^
+--------------------------------------+-------------+--------------------------------------+
" Y5 x2 P/ p* n- N3 V| ID | Object Type | Object ID |
" j( [- k- | n( ?+--------------------------------------+-------------+--------------------------------------+
0 ~ X/ M' X. E5 k- f- v. P# B& d+ l| 25bc89f1-3cd7-45bc-83b9-092bb6931ea6 | network | 20cd5e9e-efae-4f71-90a6-2b337aac6583 |. F* m* a `% p' u) Y" G
| 67aff144-2bc7-4dc1-9276-48a0e81fbea6 | network | c8c23472-dd02-41d5-9c75-1da8130d9315 |
7 ?: ~/ c3 f$ H& A| cf580d69-7ebf-4a34-9a6e-b534e0f95ef9 | network | c8c23472-dd02-41d5-9c75-1da8130d9315 |; d$ t a! N; [# ~* C! _7 O
| d1c52a7f-3ee6-4a0d-96c2-3cfd863bd033 | network | 20cd5e9e-efae-4f71-90a6-2b337aac6583 |
* \& r8 {: _' f+ C3 L( g5 A+--------------------------------------+-------------+--------------------------------------+; Z u* a$ r; P
* D- O6 { _; j1 Q5 C openstack network rbac show 25bc89f1-3cd7-45bc-83b9-092bb6931ea66 F' ~/ }3 `% D% X8 b: } E
+-------------------+--------------------------------------+0 Z' [9 {5 \* ]2 V3 l( M
| Field | Value |
9 T3 h/ x2 S$ W8 [" G# N( n# l+-------------------+--------------------------------------+
. ]) [& W h. G. m| action | access_as_shared |" l0 V* x8 n! k0 F' _
| id | 25bc89f1-3cd7-45bc-83b9-092bb6931ea6 |# v, V% @2 t3 o+ z- l
| name | None |2 H4 H# P' U: f
| object_id | 20cd5e9e-efae-4f71-90a6-2b337aac6583 |
) s8 Z S+ x( g! Q| object_type | network |
- H) J& E( k# V" I: ^3 g" C* Q" b| project_id | f563fd1031a246d7aa182ccb79abc996 |
! ~" H! T& f' v8 r. d! ?| target_project_id | * |; s. m7 k7 E3 J( W$ o
+-------------------+--------------------------------------+
1 k" h+ o% I; Q y" D* b' u5 J; i! `2 N/ ?
" Z# W' b. _/ W# D
[root@controller ~]# neutron port-list. |# s' U+ j2 d/ l
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead., h1 y( G7 ?3 e H* X {, [
+--------------------------------------+------+----------------------------------+-------------------+-----------------------------------------------------------------------------------+
9 g# X0 m" D' n$ h3 c' i) l| id | name | tenant_id | mac_address | fixed_ips |
: G+ p% q R8 v C% d% d+--------------------------------------+------+----------------------------------+-------------------+-----------------------------------------------------------------------------------+
% |9 E6 h& O: @4 f* Y2 f( W| 4b75fbf6-d89f-4566-8e3a-63ffdfe96e4d | | f563fd1031a246d7aa182ccb79abc996 | fa:16:3e:c1:0e:3b | {"subnet_id": "fc77a0cb-0422-4da4-85a2-787e467357c6", "ip_address": "10.10.19.2"} |+ p: V( s+ q+ \
| 717b4e46-c2df-47c0-86fa-b57cb54de14b | | f563fd1031a246d7aa182ccb79abc996 | fa:16:3e:50:c6:4f | {"subnet_id": "ed54b768-58e3-4fe3-9f63-6f049f27ee44", "ip_address": "10.10.20.2"} | n# u# }8 \! j! C
+--------------------------------------+------+----------------------------------+-------------------+-----------------------------------------------------------------------------------+- b! m- K# p5 _
. u0 m0 ?! N" q% S6 [# e0 I2 Z- u3 T7 j( J. x" h
#openstack subnet list % b& i# N# M+ E$ @, m5 Y
+--------------------------------------+---------+--------------------------------------+---------------+4 D9 o/ @. M- x& |0 Q) c3 {( J
| ID | Name | Network | Subnet |
6 S6 d7 M' e2 F5 _+--------------------------------------+---------+--------------------------------------+---------------+
" s9 _* O3 N* [, z% }, d: M| ed54b768-58e3-4fe3-9f63-6f049f27ee44 | VLAN_20 | 20cd5e9e-efae-4f71-90a6-2b337aac6583 | 10.10.20.0/24 |
" e% D6 G! n( U. k }" R% R| fc77a0cb-0422-4da4-85a2-787e467357c6 | VLAN_10 | c8c23472-dd02-41d5-9c75-1da8130d9315 | 10.10.19.0/24 |
' j* P8 k1 m! n u, K. d, \. R- L }+--------------------------------------+---------+--------------------------------------+---------------+
& E9 U. B$ D: _8 U% w& Z[root@controller ~]# 4 r/ t1 y9 E" g7 p$ |
5 _0 m5 w8 g4 c# P- M; I) d# F2 r- e6 w[root@controller ~]# neutron subnet-list
( s9 E/ B7 w+ _- Eneutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.7 Y) R! M/ t2 ~
+--------------------------------------+---------+----------------------------------+---------------+------------------------------------------------+
3 Q# D; l( e2 \6 H& a: \6 y| id | name | tenant_id | cidr | allocation_pools |( {# s8 K& h/ l
+--------------------------------------+---------+----------------------------------+---------------+------------------------------------------------+" v- \" t# W& w7 Y' E
| ed54b768-58e3-4fe3-9f63-6f049f27ee44 | VLAN_20 | f563fd1031a246d7aa182ccb79abc996 | 10.10.20.0/24 | {"start": "10.10.20.2", "end": "10.10.20.254"} |8 z* K: ?! }7 U' C8 [
| fc77a0cb-0422-4da4-85a2-787e467357c6 | VLAN_10 | f563fd1031a246d7aa182ccb79abc996 | 10.10.19.0/24 | {"start": "10.10.19.2", "end": "10.10.19.254"} | p; i1 z) ]0 _1 t+ N
+--------------------------------------+---------+----------------------------------+---------------+------------------------------------------------+
# K% U% `5 j. p1 q
, `8 H @; C4 x7 a" B) ]; c \0 L5 l: U( g! T" _( } m
2 \5 ^# K4 d* b4 ?$ ~+ `
/ L# h7 ~. m. W: V" i; D
3 p3 B2 Z0 R* {9 Y9 q$ a+ U5 ^8 q8 \3 X8 S j
& _) S4 _( [! {( V0 k; {/ x# u
/ }( Y. u5 m8 a% l0 t |
|