- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2019-11-27 17:31:58
|
显示全部楼层
5 ^7 L, M* s# J6 d- L
neutron port-create 9f672bbf-38be-424c-9de6-45600aefc53d --fixed-ip subnet_id=bdd7b786-33e1-4b39-97d6-295fec5e80cf 创建port指定子网,不指定ip地址0 E& `5 B8 l, X+ s/ O
Created a new port:
2 q/ R7 f) N7 w# X, l4 T+-----------------------+---------------------------------------------------------------------------------------+
0 |- H# w7 I6 {) _| Field | Value |8 X6 Q5 C3 ?4 k" p2 M+ z6 P
+-----------------------+---------------------------------------------------------------------------------------+
7 a) Q& Q, U p* G| admin_state_up | True |
1 ?& q& r0 t( A4 s| allowed_address_pairs | |' t) K& G# x3 ~# P
| binding:profile | |
+ F* O& B8 `% S! n) u0 ]| device_id | |
9 y9 J) l, Z7 p1 p B& A% ]| device_owner | |
% _6 e6 Z0 X0 ^9 E. ?3 g- e) J: A; k: M| fixed_ips | {"subnet_id": "bdd7b786-33e1-4b39-97d6-295fec5e80cf", "ip_address": "172.20.118.255"} | P' [! J2 r) ]# z( O
| id | 05f87729-79f8-4206-9e7c-869f9b0cbe5f |
6 j" \3 n9 I& K& \- U8 {# q- |4 X| mac_address | fa:16:3e:5b:6c:81 |
: V, Y# G% H$ ^1 t| name | |( o) M! K1 o" {* t
| network_id | 9f672bbf-38be-424c-9de6-45600aefc53d |
( _$ G( w, u0 I7 o/ ^- s6 l| security_groups | |. ~3 T8 _" B/ ?& _; {
| status | ACTIVE |
+ R( M" ? ]3 M% W| tenant_id | 7f0d7445833b466aab5becbe9908f31b | a# T* b% p1 m+ I0 E5 w
+-----------------------+---------------------------------------------------------------------------------------+3 W% m: A1 _) [* \" W3 R1 g
0 E+ U4 j2 J1 y+ J7 s- mneutron subnet-show bdd7b786-33e1-4b39-97d6-295fec5e80cf+ `1 z5 x8 R. k
+---------------------+------------------------------------------------------+
# p! H! }% ~" s( D+ q3 c| Field | Value |
1 g6 L1 R1 M* k# y: E4 W% `+---------------------+------------------------------------------------------+
$ s. Z1 w" B- D| allocation_pools | {"start": "172.20.118.255", "end": "172.20.119.254"} |
1 ^# A/ n% H2 x/ o| | {"start": "172.20.118.1", "end": "172.20.118.253"} |" [0 Q4 p& S. m; l( S% U- |
| available_ip_number | 507 |
& k6 e5 }; T8 A9 {2 {! J# h5 k| available_ips | {"start": "172.20.119.0", "end": "172.20.119.253"} |
! Y" r3 S0 ~' O# x| | {"start": "172.20.118.1", "end": "172.20.118.253"} |7 q* I7 i/ {; n$ z' h
| cidr | 172.20.118.0/23 |# _: V$ I ]% `! ]9 T/ P8 F( c
| dns_nameservers | 114.114.114.114 |4 K# S. E/ C! d1 P( L" r
| | 8.8.8.8 |: r" `6 f( e1 K
| enable_dhcp | True |
8 F$ l& j6 ?! O9 `0 T1 o| gateway_ip | 172.20.118.254 |
3 h1 e8 w2 D& Q7 q. s8 r% r| host_routes | |
, S5 c. @. \6 V- w; @) B- E1 f| id | bdd7b786-33e1-4b39-97d6-295fec5e80cf |
# F2 O2 u l/ t" Y5 U# [| ip_version | 4 |" l0 W' E+ Q/ o$ W9 Z' X
| ipv6_address_mode | |/ k2 U9 a# n5 E" E, D- v$ }+ N3 M
| ipv6_ra_mode | |
5 o, S5 g+ H4 t9 ?6 | ~| name | lrtestsub12 |6 {9 r1 i9 U+ G! q& @3 d2 t- A" l' V: a) D
| network_id | 9f672bbf-38be-424c-9de6-45600aefc53d |
8 ]: D( n4 h3 e# z( q| path | |" u! m! V6 M7 }( F9 V
| subnetpool_id | |: D$ w/ a( ]5 w7 q: Y- r
| tenant_id | 7f0d7445833b466aab5becbe9908f31b |
% c& B" T; V* h( D. k7 R) Q( v+---------------------+------------------------------------------------------+ |
|