Create a Single Segment Virtio VM Network

You can create a single segment Virtio VM network on a default physnet and extend the network to DC Edge.
Note

Note

VLAN provisioning depends on the following:
  • Neutron Virtio ports are bound to a host during VM launch.
  • DHCP ports are bound during subnet creation.
  • DC Edge extension is achieved using explicit port-create.

The following figure shows an overview of a single segment Virtio VM Network with DC Edge.

Click to expand in new window
Overview of single segment Virtio VM network
Table 1. Commands and impacts
Command EFA Impact
openstack network create --provider-network-type vlan --provider-physical-network default --provider-segment 3320 ss1network1

EPG Created for ss1network

Name = 74cbf489-f3d9-41c7-bbb2-6cb7df33da6d

CTAG = 3320

Note - 74cbf489-f3d9-41c7-bbb2-6cb7df33da6d

is the neutron UUID allocated for the EPG.
openstack subnet create ss1subnet1 --network ss1network1 --subnet-range 10.1.1.0/24

openstack subnet create ss1subnet1ipv6 --network ss1network1 --ip-version 6 --ipv6-address-mode=dhcpv6-stateful --subnet-range fd00:10:0:57::1000/64

DHCP EndPoints Created on EPG corresponding to ss1network1. VLAN Provisioned.

EPG Updated

Name = 74cbf489-f3d9-41c7-bbb2-6cb7df33da6d

Port = lag_1 (added)

openstack port create ss1VirtIoTrunkPort1 --network ss1network1

openstack network trunk create --parent-port ss1VirtIoTrunkPort1 ss1VirtIoTrunk1

openstack port create ss1VirtIoSubport1 --network ss1network1
openstack network create --provider-network-type vlan --provider-physical-network default --provider-segment 3321 ss1network2

EPG Created for ss1network2

Name = 84cbf489-f3d9-41c7-bbb2-6cb7df33da6d

CTAG = 3321

openstack subnet create ss1subnet2 --network ss1network2 --subnet-range 11.1.1.0/24

openstack subnet create ss1subnet2ipv6 --network ss1network2 --ip-version 6 --ipv6-address-mode=dhcpv6-stateful --subnet-range fd00:11:0:57::1000/64

DHCP EndPoints Created on EPG corresponding to ss1network2. VLAN Provisioned

EPG Updated

Name = 84cbf489-f3d9-41c7-bbb2-6cb7df33da6d

Port = lag_1 (added)

openstack port create ss1VirtIoTrunkPort2 --network ss1network2

openstack network trunk create --parent-port ss1VirtIoTrunkPort2 ss1VirtIoTrunk2

openstack network trunk set --subport port=ss1VirtIoSubport1,segmentation-type=vlan,segmentation-id=3801 ss1VirtIoTrunk2
openstack server create --flavor m1.large --image ubuntu --port $(neutron port-list | grep -w 'ss1VirtIoTrunkPort1' | awk '{print $2}') ss1VirtIoVM1 --availability-zone nova:Openstack116

Endpoint corresponding to 'ss1VirtIoTrunkPort1' added to EPG(ss1nework1) VLAN Provisioned

EPG Updated

Name = 74cbf489-f3d9-41c7-bbb2-6cb7df33da6d

Port = lag_1 (added) - no impact already added

openstack server create --flavor m1.large --image ubuntu --port $(neutron port-list | grep -w 'ss1VirtIoTrunkPort2' | awk '{print $2}') ss1VirtIoVM2 --availability-zone nova:Openstack117

Endpoint corresponding to 'ss1VirtIoTrunkPort2' added to EPG(ss1nework2) VLAN Provisioned

EPG Updated

Name = 84cbf489-f3d9-41c7-bbb2-6cb7df33da6d

Port = lag_1 (added) - no impact already added

Endpoint corresponding to ss1VirtIoSubport1 added to EPG(ss1nework1) VLAN Provisioned

EPG Updated

Name = 74cbf489-f3d9-41c7-bbb2-6cb7df33da6d

Port = lag_1 (added) - no impact already added

openstack port create ss2DcGwPort1 --device-owner network:dc_edge --host DCGW-1 --network ss1network1

EndPoint corresponding to ‘host DCGW-1‘ added to EPG (ss1network1) VLAN Provisioned

EPG Updated

Name = 74cbf489-f3d9-41c7-bbb2-6cb7df33da6d

Port = lag_1, lag_4 (added)
openstack port create ss2DcGwPort1 --device-owner network:dc_edge --host DCGW-1 --network ss1network2

EndPoint corresponding to ‘host DCGW-1‘ added to EPG (ss1network2) VLAN Provisioned

EPG Updated

Name = 84cbf489-f3d9-41c7-bbb2-6cb7df33da6d

Port = lag_1, lag_4 (added)