settingsLogin | Registersettings

[Openstack] "neutron port-create --fixed-ip" still assigns a DHCP address

0 votes

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 deviceowner -c name -c fixedips

+--------------------------+---------------+----------------------------------------------------------------------------------+
| deviceowner | name | fixedips |
+--------------------------+---------------+----------------------------------------------------------------------------------+
| network:routerinterface | port-tenant97 | {"subnetid": "943acc0b-0db5-4d4c-97f4-0d1b714847df", "ipaddress": "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


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
asked Jun 26, 2016 in openstack by Turbo_Fredriksson (8,980 points)   7 13 19

2 Responses

0 votes

The .2 address you're seeing is the DHCP server itself (as noted by the device owner set to "network:dhcp"), which needs a port on the network in order to function. To get rid of this port, disable DHCP for the subnet.

--
Scott

Sent from my mobile device

On Jun 26, 2016, at 8:32 AM, Turbo Fredriksson turbo@bayour.com wrote:

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 deviceowner -c name -c fixedips

+--------------------------+---------------+----------------------------------------------------------------------------------+
| deviceowner | name | fixedips |
+--------------------------+---------------+----------------------------------------------------------------------------------+
| network:routerinterface | port-tenant97 | {"subnetid": "943acc0b-0db5-4d4c-97f4-0d1b714847df", "ipaddress": "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


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
responded Jun 26, 2016 by Scott_Lowe (760 points)   1 2
0 votes

On Jun 26, 2016, at 2:12 PM, Scott Lowe wrote:

The .2 address you're seeing is the DHCP server itself (as noted by the device owner set to "network:dhcp"), which needs a port on the network in order to function.

Ahh!! Doh, that makes sense! Well, I do want dhcp on the network.

I thought the "network:dhcp" indicated that it was DHCP assigned.
--
Imagine you're an idiot and then imagine you're in
the government. Oh, sorry. Now I'm repeating myself
- Mark Twain

responded Jun 26, 2016 by Turbo_Fredriksson (8,980 points)   7 13 19
...