999
社区成员
发帖
与我相关
我的任务
分享
neutron router-create demo-router
neutron router-interface-add demo-router demo-subnet
neutron router-gateway-set demo-router ext-net
[root@controller ~]# neutron port-list
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| 02496e68-e371-499a-bf87-4cd36cb9386d | | fa:16:3e:f7:da:fb | {"subnet_id": "1a53f882-8644-4538-be01-331c4c90ecf1", "ip_address": "192.168.3.100"} |
| 29e5b0e6-51eb-4fc0-ada1-e6c7544c9e1b | | fa:16:3e:2f:85:a5 | {"subnet_id": "9482028b-73ae-49f6-927d-22c49452d8fe", "ip_address": "192.168.128.2"} |
| 2e2efad0-1ba0-454e-9ad6-6e768585e9da | | fa:16:3e:5d:67:1d | {"subnet_id": "1a53f882-8644-4538-be01-331c4c90ecf1", "ip_address": "192.168.3.101"} |
| 6a3c84c4-59f2-43da-9c00-4caec905699d | | fa:16:3e:6b:f0:d3 | {"subnet_id": "9482028b-73ae-49f6-927d-22c49452d8fe", "ip_address": "192.168.128.1"} |
| 89d354ad-55cc-4a7b-9504-64aef95911de | | fa:16:3e:a2:86:28 | {"subnet_id": "9482028b-73ae-49f6-927d-22c49452d8fe", "ip_address": "192.168.128.3"} |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
[root@controller ~]# neutron port-show 02496e68-e371-499a-bf87-4cd36cb9386d
+-----------------------+--------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | network |
| binding:profile | {} |
| binding:vif_details | {"port_filter": true, "ovs_hybrid_plug": true} |
| binding:vif_type | ovs |
| binding:vnic_type | normal |
| device_id | 1e0f7d5a-1e67-4d15-b7ab-713c4ffa4d23 |
| device_owner | network:router_gateway |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "1a53f882-8644-4538-be01-331c4c90ecf1", "ip_address": "192.168.3.100"} |
| id | 02496e68-e371-499a-bf87-4cd36cb9386d |
| mac_address | fa:16:3e:f7:da:fb |
| name | |
| network_id | d3079c73-f118-4f68-9c27-9d0db107d746 |
| security_groups | |
| status | DOWN |
| tenant_id | |
+-----------------------+--------------------------------------------------------------------------------------+