Neutron – Connecting Everyone

  • Yum

Neutron is an OpenStack project to provide “network connectivity as a service” between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., nova). 

Lets create an Openstack External Network. We have installed OpenStack using DevStack, so it would have already created an External Network for us. VM’s created in OpenStack use this Network to connect to external world / Internet and to get floating IP. The provider physical network can be found in “/etc/neutron/plugins/ml2/ml2_conf.ini” this file.

stack@openstackcoa:~$ openstack network create –external –provider-network-type vlan –provider-physical-network public –provider-segment 96 public-ext-network
+—————————+————————————–+
| Field | Value |
+—————————+————————————–+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2018-12-16T08:58:47Z |
| description | |
| dns_domain | None |
| id | 77a37c1f-d356-435d-aace-6d14a68edb6d |
| ipv4_address_scope | None |
| ipv6_address_scope | None |
| is_default | False |
| is_vlan_transparent | None |
| location | None |
| mtu | 1500 |
| name | public-ext-network |
| port_security_enabled | True |
| project_id | 30350bed1ae7438a9fb9bbf0bbcb51cb |
| provider:network_type | vlan |
| provider:physical_network | public |
| provider:segmentation_id | 96 |
| qos_policy_id | None |
| revision_number | 1 |
| router:external | External |
| segments | None |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| updated_at | 2018-12-16T08:58:47Z |
+—————————+————————————–+

stack@openstackcoa:~$ openstack subnet create –subnet-range 172.20.4.0/24 –network public-ext-network public-extnet-sub
+——————-+————————————–+
| Field | Value |
+——————-+————————————–+
| allocation_pools | 172.20.4.2-172.20.4.254 |
| cidr | 172.20.4.0/24 |
| created_at | 2018-12-16T09:58:08Z |
| description | |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 172.20.4.1 |
| host_routes | |
| id | 12ceb49c-b290-4a1a-9958-6071dbc78834 |
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| location | None |
| name | public-extnet-sub |
| network_id | 77a37c1f-d356-435d-aace-6d14a68edb6d |
| project_id | 30350bed1ae7438a9fb9bbf0bbcb51cb |
| revision_number | 0 |
| segment_id | None |
| service_types | |
| subnetpool_id | None |
| tags | |
| updated_at | 2018-12-16T09:58:08Z |
+——————-+————————————–+

Share & Expand the Cloud :-)

Leave a Reply