|
|
楼主 |
发表于 2019-11-27 17:31:26
|
显示全部楼层
neutron port-create 9f672bbf-38be-424c-9de6-45600aefc53d --fixed-ip subnet_id=bdd7b786-33e1-4b39-97d6-295fec5e80cf 创建port指定子网,不指定ip地址
: F, B, M |9 _Created a new port:
" S, l4 R$ Q' ]2 @3 G+-----------------------+---------------------------------------------------------------------------------------+4 h, Q, |6 q4 o |$ w& Y3 P/ a
| Field | Value |
7 i+ l f* e, T. _; D6 n+-----------------------+---------------------------------------------------------------------------------------+7 E2 j9 c- S% K ^! m
| admin_state_up | True |
: ]( `1 Z }8 @/ w8 N1 a* k| allowed_address_pairs | |) @* ]7 z( ?! q( l% O' w4 Z
| binding:profile | |
0 `0 u& V5 q% X4 I7 \* B| device_id | |
3 U4 {7 K) \+ G* |" I0 _. _| device_owner | |, d9 E; Q3 ]7 V
| fixed_ips | {"subnet_id": "bdd7b786-33e1-4b39-97d6-295fec5e80cf", "ip_address": "172.20.118.255"} |' y) n9 l. V# U2 Y8 i( ?; U
| id | 05f87729-79f8-4206-9e7c-869f9b0cbe5f |/ [3 b5 \( j3 d
| mac_address | fa:16:3e:5b:6c:81 |
8 `$ V# H$ Q6 L1 w0 O8 ?| name | |3 u; A+ x! M0 j @: C3 a, z" a4 F
| network_id | 9f672bbf-38be-424c-9de6-45600aefc53d |
- E2 {1 m8 Z7 j/ g" m6 n/ Y D| security_groups | |
" _/ m8 l! M6 |' ~4 j| status | ACTIVE |
7 d2 j5 d0 {, E4 v| tenant_id | 7f0d7445833b466aab5becbe9908f31b |
" W0 D. h' u# t% m/ m+-----------------------+---------------------------------------------------------------------------------------+( h+ |# y; |% x: e
! d( ^+ ?! ?. e0 Zneutron subnet-show bdd7b786-33e1-4b39-97d6-295fec5e80cf* k$ _" ~( w, @
+---------------------+------------------------------------------------------+
# }5 a2 [4 v0 F7 q) \" c| Field | Value |' }% }5 e! V3 ?
+---------------------+------------------------------------------------------+: u" ~! g; x/ `- O1 Y
| allocation_pools | {"start": "172.20.118.255", "end": "172.20.119.254"} |
3 H: P2 ^: }% _- ]$ p4 g7 v# h| | {"start": "172.20.118.1", "end": "172.20.118.253"} |
1 f$ t$ J2 @; [! |( E| available_ip_number | 507 |) _- S4 D0 W+ h) E, Y
| available_ips | {"start": "172.20.119.0", "end": "172.20.119.253"} |" h2 ~ [- i( S! V; g4 b
| | {"start": "172.20.118.1", "end": "172.20.118.253"} |$ X0 F2 _5 J# o3 P* h! {, v
| cidr | 172.20.118.0/23 |, Z! \6 f8 W, T' F- Z
| dns_nameservers | 114.114.114.114 |! z, E; X) y: i3 t: S
| | 8.8.8.8 |2 F3 Z! P" a8 i
| enable_dhcp | True |
: {- y V# `- p) f% z) L! y| gateway_ip | 172.20.118.254 |
' _. i- Z! O) O- f| host_routes | |
7 |" N$ A+ P" g1 y| id | bdd7b786-33e1-4b39-97d6-295fec5e80cf |
, d6 k1 N% G( K ]| ip_version | 4 |8 k# }5 j- c& A/ t5 K" P( V
| ipv6_address_mode | |
( ~3 e5 _ \! j; X+ ]+ P; }| ipv6_ra_mode | |$ E- H l1 y* W Y; v7 n$ P
| name | lrtestsub12 |
- {7 E" S$ x- p& _0 w5 t| network_id | 9f672bbf-38be-424c-9de6-45600aefc53d |
- { u/ V" C% g0 f| path | |
% E( U* a( M- P( w/ {| subnetpool_id | |
7 k l$ r) i, F4 u6 _3 N4 M| tenant_id | 7f0d7445833b466aab5becbe9908f31b |
! X3 L% z. p0 z6 W; \3 q8 M- x+---------------------+------------------------------------------------------+ |
|