The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
This chapter provides general information about using the OpenStack dashboard to create several different types of virtual networks. For specific information about implementing virtual network components to deploy the VXLAN Gateway, see the VXLAN Configuration Guide or the Cisco Nexus 1000V for KVM Installation Guide.
The OpenStack dashboard has the following guidelines and limitations when you use it to create virtual networks for Cisco Nexus 1000V for KVM:
Network profile creation by an administrator is not supported in Cisco Nexus 1000V for KVM Release 5.2(1)SK3(2.2) software and highter. Network profiles are automatically created for each network type.
To create a network profile and associate it with a tenant, you must log in to the OpenStack dashboard as a user with admin privileges. Any user can use a network profile that is associated with a tenant.
You cannot create policy profiles or assign them to a tenant in OpenStack dashboard. You must first create them as part of the port profiles in the VSM. The OpenStack dashboard retrieves them from the VSM and displays them on the Router dashboard.
When there are multiple VSMs, the port profile must be configured on all the VSMs.
This workflow describes how to create a virtual network.
Steps | Notes | |||
---|---|---|---|---|
1. Create tenants. |
||||
2. Create policy and port profiles. |
See the Cisco Nexus 1000V for KVM Port Profile Configuration Guide . |
|||
3.Create the network using the OpenStack Dashboard or OpenStack CLI: |
||||
|
||||
1. Create a network profile
|
See Creating a Network Profile Using the OpenStack Dashboard. Network profile creation by an administrator is not supported in Cisco Nexus 1000V for KVM Release 5.2(1)SK3(2.2) software and highter. Network profiles are automatically created for each network type. |
|||
2. Create a network |
||||
3. Create a network subnet |
See Creating a Subnet for a Network Using the OpenStack Dashboard. |
|||
4. Create and launch a VM instance |
See Creating and Launching a VM Instance Using the OpenStack Dashboard. |
|||
See Creating VLAN and VXLAN Networks Using the OpenStack CLI. |
In the OpenStack dashboard, tenants are also known as projects.
Create the desired network profiles.
Creating a Network Using the OpenStack Dashboard
Note | This procedure is not required for Cisco Nexus 1000V for KVM Release 5.2(1)SK3(2.2). Network profiles are created automatically for each network type. |
Create one or more networks.
Create one or more port profiles in the VSM. These port profiles are displayed as policy profiles in OpenStack dashboard. For more information, see Cisco Nexus 1000V for KVM Port Profile Configuration Guide .
Step 1 | In the Navigation pane, click . |
Step 2 | In the Networks panel, click the network to which you want to add a subnet. |
Step 3 | In the
Create
Subnet dialog box, click the
Subnet tab an do the following:
|
Step 4 | Optionally, click the Subnet Detail tab and do the following: |
Step 5 | Click Create to create the subnet. |
Step 1 | From the Current Project drop-down list, choose the project in which you created the network. |
Step 2 | In the Navigation pane, click the Project dashboard. |
Step 3 | In the Instances panel, click Launch Instance. |
Step 4 | On the
Details tab of the
Launch
Instance dialog box, do the following:
|
Step 5 | On the
Networking tab of the
Launch
Instance dialog box, do the following:
|
Step 6 | Click
Launch.
The OpenStack dashboard creates the instance and launches it. |
You can create a virtual network for VLAN and VXLAN traffic using the using the OpenStack CLI.
Note | This procedure is not required for Cisco Nexus 1000V for KVM Release 5.2(1)SK3(2.2). Network profiles are created automatically for each network type. |
Step | Command | Description |
---|---|---|
1. Create one of the following types of networks: |
||
neutron cisco-network-profile-create name vlan --segment_rangesegment-range --physical_network network |
Creates a VLAN type network profile. For more information about this command, see the cisco-network-profile-create command reference page. |
|
neutron cisco-network-profile-create name trunk --sub_type vlan |
Creates a trunk type of network profile with a sub type of VLAN. For more information about this command, see the cisco-network-profile-create command reference page. |
|
neutron cisco-network-profile-create name overlay --subtype native_vxlan --segment_range segment-range --multicast_ip_range ip-range |
Creates a multicast VXLAN type network profile. For more information about this command, see the cisco-network-profile-create command reference page. |
|
neutron cisco-network-profile-create name overlay --subtype enhanced --segment_range segment-range |
Creates a unicast VXLAN type network profile. For more information about this command, see the cisco-network-profile-create command reference page. |
|
neutron net-create
name
--n1kv:profile_id
networkProfileId
For Release 5.2(1)SK3(2.2) or higher use the following command: neutron net-create name --n1kv:profile networkProfileID |
Creates a network and associates it with a Cisco Nexus 1000V switch network profile. |
|
3. Create the subnet. |
neutron subnet-create network-name IP-address-range --name subnet-name |
For more information about this command, see the OpenStack documentation |
4. Create a port profile. |
neutron port-create network-name --n1kv:profile_id policyProfileID For Release 5.2(1)SK3(2.2) or higher use the following command: neutron net-create name --n1kv:profile PolicyProfileID or PolicyProfileName |
Creates ports and associates them with either the policy profile UUID or policy profile name. |
5. Bring up the virtual machine with the network. |
nova boot --image image-id --flavor flavor-id --nic port-id =port-id vm-name |
For more information about this command, see the OpenStack documentation. |
Note | The profile_id in the neutron net-create command refers to the network profile ID. The profile_id in the neutron port-create command refers to the policy profile ID. |
The following example shows how to create a VLAN network:
$ $ neutron cisco-network-profile-create netprof vlan --segment_range 100-200 --physical_network physnet1 $ neutron net-create NetworkOne --n1kv:profile_id a9355268-5aed-8030-f3ab-e367ef4c9acc $ neutron subnet-create NetworkOne 172.23.181.0/24 --name subnet1 $ neutron port-create NetworkOne --n1kv:profile_id b9b8d5fa-41a3-4e59-bb1e-6a5e296908e1 $ nova boot --image image-name --flavor m1.medium --nic port-id=d341926c-21ca-48cd-ae18-c51f899f6d3f VM-1
The following example shows how to create a VLAN trunk network:
$ neutron cisco-policy-profile-update polprofId --add-tenant 1234-1234-1234-1234 $ neutron cisco-network-profile-create trunkprof trunk --sub_type vlan $ neutron net-create NetworkOne --n1kv:profile_id b9b8d5fa-41a3-4e59-bb1e-6a5e296908e1 $ neutron port-create NetworkOne --n1kv:profile_id a9355268-5aed-8030-f3ab-e367ef4c9acc $ nova boot --image image-name --flavor m1.medium --nic port-id=d341926c-21ca-48cd-ae18-c51f899f6d3f --nic port-id=7acf56b5-2d0d-e35d-def7-bdbe3960ea30 VM-1
The following example shows how to create a multicast VXLAN type network:
$ neutron cisco-policy-profile-update polprofId --add-tenant 1234-1234-1234-1234 $ neutron cisco-network-profile-create netprof overlay --subtype native_vxlan --segment_range 5000-5300 --multicast_ip_range 224.99.0.0-224.99.0.1 $ neutron net-create NetworkOne --n1kv:profile_id b9b8d5fa-41a3-4e59-bb1e-6a5e296908e1 $ neutron port-create NetworkOne --n1kv:profile_id a9355268-5aed-8030-f3ab-e367ef4c9acc $ nova boot --image image-name --flavor flavor-id --nic port-id=d341926c-21ca-48cd-ae18-c51f899f6d3f VM-1
Note | To obtain a list of all images and their UUIDs, type nova image-list. |
The following example shows how to create a unicast VXLAN type network:
$ neutron cisco-policy-profile-update polprofId --add-tenant 1234-1234-1234-1234 $ neutron cisco-network-profile-create netprof overlay --subtype enhanced --segment_range 5000-5300 $ neutron net-create NetworkOne --n1kv:profile_id b9b8d5fa-41a3-4e59-bb1e-6a5e296908e1 $ neutron port-create NetworkOne --n1kv:profile_id a9355268-5aed-8030-f3ab-e367ef4c9acc $ nova boot --image imageid --flavor flavor-id --nic port-id=d341926c-21ca-48cd-ae18-c51f899f6d3f VM-1