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

楼主 |
发表于 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地址
. l& V; w3 I G q4 ZCreated a new port:1 k5 J0 d g/ t) \ z# z, W
+-----------------------+---------------------------------------------------------------------------------------+
& T2 s# p7 `( ?+ h! ]" }| Field | Value |
B* W0 ~) Q% I( D8 K3 B1 H. P8 B' B+-----------------------+---------------------------------------------------------------------------------------+
7 H" A% W. l5 q$ Y* |$ T| admin_state_up | True |
4 F) V6 U9 }; [- D| allowed_address_pairs | |
. V# d8 E; g) W* M6 \" q6 b| binding:profile | |, U7 R5 ^3 e, V( |
| device_id | |
& f2 {% [0 f0 s| device_owner | |
9 ?4 m% u& T. e( D4 b( Q| fixed_ips | {"subnet_id": "bdd7b786-33e1-4b39-97d6-295fec5e80cf", "ip_address": "172.20.118.255"} |
& K/ q% W- H+ ?: M# C| id | 05f87729-79f8-4206-9e7c-869f9b0cbe5f |
' @( h. B M* K) I- K, ~4 P! d| mac_address | fa:16:3e:5b:6c:81 |
/ R6 [/ D4 F5 J" s" M" D% ]| name | |
3 ]- [1 g6 x! A0 A& }| network_id | 9f672bbf-38be-424c-9de6-45600aefc53d |
/ ^& o* a) M. [1 r: y k| security_groups | |
0 |' j2 r! A% @- `- U3 W" J| status | ACTIVE |
% B4 G6 q- D6 D1 V| tenant_id | 7f0d7445833b466aab5becbe9908f31b |
' j: B# G6 R7 d x+-----------------------+---------------------------------------------------------------------------------------+
# s+ L$ j1 k! r% P! Y. j! [1 ~$ t0 \2 @9 |
neutron subnet-show bdd7b786-33e1-4b39-97d6-295fec5e80cf8 L1 h: r( H8 G; z
+---------------------+------------------------------------------------------+7 B' I; {% m& U, [! r0 a& o% Z8 Z
| Field | Value |
' O. C8 \2 l0 ^$ Y: K# }+---------------------+------------------------------------------------------+0 g7 ^8 G. s8 F7 J
| allocation_pools | {"start": "172.20.118.255", "end": "172.20.119.254"} |. ]) ?( g- |+ J" `7 _ }
| | {"start": "172.20.118.1", "end": "172.20.118.253"} |4 T& S; D2 M6 Z0 X3 P, v+ Y
| available_ip_number | 507 |
, G, s( ?3 y% r5 X6 T| available_ips | {"start": "172.20.119.0", "end": "172.20.119.253"} |0 |2 c7 x2 f7 V! Q/ R: B+ F' _/ r
| | {"start": "172.20.118.1", "end": "172.20.118.253"} |3 u5 X$ L, g! m; i1 v3 L
| cidr | 172.20.118.0/23 |
7 ^3 W1 [3 e v. _3 K h: w7 I3 |" h! u+ j| dns_nameservers | 114.114.114.114 |
1 w1 V% [! X6 Q- R; l6 x| | 8.8.8.8 |! S. |. Q f( o Z5 ]. ?1 z- Z; z
| enable_dhcp | True |
# J( \# P" s# v7 @| gateway_ip | 172.20.118.254 |
* U) D/ T1 c. _" T9 ~. v9 \# t| host_routes | |
1 `# f7 _, J L' d% K9 z; R9 q' g| id | bdd7b786-33e1-4b39-97d6-295fec5e80cf |
* ~+ A. m2 ~5 q+ S| ip_version | 4 |
5 R4 P/ g/ \: n# s| ipv6_address_mode | |+ E6 G- ]- z& w y) j
| ipv6_ra_mode | |. F+ U' y/ H' X6 S
| name | lrtestsub12 |! V; D0 [ N3 \9 N: D
| network_id | 9f672bbf-38be-424c-9de6-45600aefc53d |* z2 s: a: K0 q. n' a, d
| path | |+ X' Q' g+ T a" a' [
| subnetpool_id | |
; m) @# W5 E) ]' C* R7 u- j| tenant_id | 7f0d7445833b466aab5becbe9908f31b |
3 v# r) J: k q+---------------------+------------------------------------------------------+ |
|