[Openstack] "neutron port-create --fixed-ip" still assigns a DHCP address
Turbo Fredriksson
turbo at bayour.com
Sun Jun 26 12:32:40 UTC 2016
What am I missing?? I don't want the .2 address. This port is supposed
to be the gateway for that network.
----- s n i p -----
# neutron net-create --provider:network_type gre tenant-97
# neutron subnet-create --name subnet-97 --dns-nameserver 10.0.0.254 \
--enable-dhcp --ip-version 4 --gateway 10.97.0.1 tenant-97 10.97.0.0/24
# neutron router-create --distributed False --ha False providers-tenants
# neutron port-create --name port-tenant97 --vnic-type direct \
--security-group default --fixed-ip ip_address=10.97.0.1 \
tenant-97
# neutron router-interface-add providers-tenants port=port-tenant97
# neutron port-list -c device_owner -c name -c fixed_ips
+--------------------------+---------------+----------------------------------------------------------------------------------+
| device_owner | name | fixed_ips |
+--------------------------+---------------+----------------------------------------------------------------------------------+
| network:router_interface | port-tenant97 | {"subnet_id": "943acc0b-0db5-4d4c-97f4-0d1b714847df", "ip_address": "10.97.0.1"} |
| network:dhcp | | {"subnet_id": "943acc0b-0db5-4d4c-97f4-0d1b714847df", "ip_address": "10.97.0.2"} |
+--------------------------+---------------+----------------------------------------------------------------------------------+
----- s n i p -----
Later on, I set the gateway to be the physical gateway/firewall.
Which, would mean that it have one leg on each network..
--
Med ett schysst järnrör slår man hela världen med häpnad
- Sockerconny
More information about the Openstack
mailing list