I followed the IPv4 instructions described in this problem but I cannot see the fixed_ip assigned:
# neutron net-create netto Created a new network: +---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | True | | id | b8f3095c-8b69-486a-8ec8-7559298440ef | | name | netto | | provider:network_type | local | | provider:physical_network | | | provider:segmentation_id | | | router:external | False | | shared | False | | status | ACTIVE | | subnets | | | tenant_id | 3a7fb324b20545458c2997ac7720b4b7 | +---------------------------+--------------------------------------+
# neutron port-create netto Created a new port: +-----------------------+--------------------------------------+ | Field | Value | +-----------------------+--------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:host_id | | | binding:profile | {} | | binding:vif_details | {} | | binding:vif_type | unbound | | binding:vnic_type | normal | | device_id | | | device_owner | | | fixed_ips | | | id | 29c1f561-cdb8-4cd9-b553-92426c8fcb6f | | mac_address | fa:16:3e:63:a6:90 | | name | | | network_id | b8f3095c-8b69-486a-8ec8-7559298440ef | | security_groups | a0b40447-ed81-4d48-9e63-6abf44ea1976 | | status | DOWN | | tenant_id | 3a7fb324b20545458c2997ac7720b4b7 | +-----------------------+--------------------------------------+
# neutron subnet-create --ip-version=4 netto "192.168.111.0/24" Created a new subnet: +-------------------+------------------------------------------------------+ | Field | Value | +-------------------+------------------------------------------------------+ | allocation_pools | {"start": "192.168.111.2", "end": "192.168.111.254"} | | cidr | 192.168.111.0/24 | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | 192.168.111.1 | | host_routes | | | id | d7de3914-c2b2-4272-8a2f-7997a940eaea | | ip_version | 4 | | ipv6_address_mode | | | ipv6_ra_mode | | | name | | | network_id | b8f3095c-8b69-486a-8ec8-7559298440ef | | tenant_id | 3a7fb324b20545458c2997ac7720b4b7 | +-------------------+------------------------------------------------------+
# neutron port-list +--------------------------------------+------+-------------------+-----------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+-----------+ | 29c1f561-cdb8-4cd9-b553-92426c8fcb6f | | fa:16:3e:63:a6:90 | |
I think it doesn't make sense to automatically assign IP to a port when subnet is created after port.
I followed the IPv4 instructions described in this problem but I cannot see the fixed_ip assigned:
# neutron net-create netto ------- ------- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- +------ ------- ------- ------- ------- ----+ 8b69-486a- 8ec8-7559298440 ef | network_ type | local | physical_ network | | segmentation_ id | | 58c2997ac7720b4 b7 | ------- ------- ------- +------ ------- ------- ------- ------- ----+
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| id | b8f3095c-
| name | netto |
| provider:
| provider:
| provider:
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 3a7fb324b205454
+------
# neutron port-create netto ------- ------- ---+--- ------- ------- ------- ------- ------- + ------- ------- ---+--- ------- ------- ------- ------- ------- + address_ pairs | | cdb8-4cd9- b553-92426c8fcb 6f | 8b69-486a- 8ec8-7559298440 ef | ed81-4d48- 9e63-6abf44ea19 76 | 58c2997ac7720b4 b7 | ------- ------- ---+--- ------- ------- ------- ------- ------- +
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | |
| id | 29c1f561-
| mac_address | fa:16:3e:63:a6:90 |
| name | |
| network_id | b8f3095c-
| security_groups | a0b40447-
| status | DOWN |
| tenant_id | 3a7fb324b205454
+------
# neutron subnet-create --ip-version=4 netto "192.168.111.0/24" ------- ------+ ------- ------- ------- ------- ------- ------- ------- -----+ ------- ------+ ------- ------- ------- ------- ------- ------- ------- -----+ c2b2-4272- 8a2f-7997a940ea ea | 8b69-486a- 8ec8-7559298440 ef | 58c2997ac7720b4 b7 | ------- ------+ ------- ------- ------- ------- ------- ------- ------- -----+
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "192.168.111.2", "end": "192.168.111.254"} |
| cidr | 192.168.111.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 192.168.111.1 |
| host_routes | |
| id | d7de3914-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | |
| network_id | b8f3095c-
| tenant_id | 3a7fb324b205454
+------
# neutron port-list ------- ------- ------- ------- ----+-- ----+-- ------- ------- ---+--- ------- -+ ------- ------- ------- ------- ----+-- ----+-- ------- ------- ---+--- ------- -+ cdb8-4cd9- b553-92426c8fcb 6f | | fa:16:3e:63:a6:90 | |
+------
| id | name | mac_address | fixed_ips |
+------
| 29c1f561-
I think it doesn't make sense to automatically assign IP to a port when subnet is created after port.