Neutron DVR East-West Traffic Flow
Create a second private network
neutron net-create HPinternal2
root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron net-create HPinternal2 Created a new network: +---------------------------+--------------------------------------+ | Field | Value| +---------------------------+--------------------------------------+ | admin_state_up | True | | id | d9d745ba-2d78-4a5b-9fe1-be45f916c286 | | name | HPinternal2 | | provider:network_type | vxlan| | provider:physical_network | | | provider:segmentation_id | 1007 | | router:external | False| | shared | False| | status | ACTIVE | | subnets | | | tenant_id | 3935f5d20d2848b69324bb8bd75a0389 | +---------------------------+--------------------------------------+
Create the subnet for this second network
neutron subnet-create –name subnet-HPinternal2 HPinternal2 12.0.0.0/24
root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron subnet-create --name subnet-HPinternal2 HPinternal2 12.0.0.0/24 Created a new subnet: +-------------------+--------------------------------------------+ | Field | Value | +-------------------+--------------------------------------------+ | allocation_pools | {"start": "12.0.0.2", "end": "12.0.0.254"} | | cidr | 12.0.0.0/24| | dns_nameservers || | enable_dhcp | True | | gateway_ip | 12.0.0.1 | | host_routes || | id | 704f6916-e27a-49a6-8655-3b01f0de1f92 | | ip_version | 4 | | ipv6_address_mode || | ipv6_ra_mode || | name | subnet-HPinternal2 | | network_id | d9d745ba-2d78-4a5b-9fe1-be45f916c286 | | tenant_id | 3935f5d20d2848b69324bb8bd75a0389 | +-------------------+--------------------------------------------+
Connect the subnet to the new router
neutron router-interface-add HProuter subnet-HPinternal2
root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron router-interface-add HProuter subnet-HPinternal2 Added interface 249aca1f-c62d-4ca8-bf07-2926d376f145 to router HProuter.
Booting a new instance on this 2nd tenant network
neutron net-list
root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron net-list +--------------------------------------+-------------+-------------------------------------------------------+ | id | name | subnets | +--------------------------------------+-------------+-------------------------------------------------------+ | 35510045-decf-491e-9990-87a3f77f0284 | ext-net | bfaacf82-7a4f-4e0c-aab9-94f705dc2c11 10.254.27.0/24 | | 4259ab26-a1c4-427e-a7e0-b941368c4e23 | default-net | d20f33e0-82f1-4ce1-80cf-17a27c86d11c 172.0.100.0/24 | | 73ff3b91-77ad-4ef4-aa67-a99a5ef57650 | demo_net1 | 4a20b788-da40-48a0-b459-5034d2831adf 192.168.111.0/24 | | a493f23f-3646-49c5-a342-82c0ac7601f6 | lab2-net| 75542425-b437-4433-a9d8-3009527e1435 192.168.1.0/24 | | d2ad4daa-d004-40bd-afa8-b7e19b8dde67 | HPinternal | 28d80588-9bf1-415e-a1f3-b08d95d5bf14 10.0.0.0/24 | | d9d745ba-2d78-4a5b-9fe1-be45f916c286 | HPinternal2 | 704f6916-e27a-49a6-8655-3b01f0de1f92 12.0.0.0/24 | | e70da3b0-ad8d-4ec0-9dd7-40ba563d2416 | SVC | 57929850-9c6a-4917-a8a4-61c033d72705 10.254.26.0/24 | | e99f2cdd-eb42-4466-9b17-7cb85636c013 | lab1-net1 | 60b9efc0-081f-45fd-b06c-0ce88fc04d50 192.168.113.0/24 | +--------------------------------------+-------------+-------------------------------------------------------+
nova boot –flavor m1.tiny –image debian-wheezy-amd64-20140929-disk –nic net-id=d9d745ba-2d78-4a5b-9fe1-be45f916c286 –security-group default –key-name pilot-key HPdemo-instance2
root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova boot --flavor m1.tiny --image debian-wheezy-amd64-20140929-disk --nic net-id=d9d745ba-2d78-4a5b-9fe1-be45f916c286 --security-group default --key-name pilot-key HPdemo-instance2 +--------------------------------------+--------------------------------------------------------------------------+ | Property | Value| +--------------------------------------+--------------------------------------------------------------------------+ | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | -| | OS-EXT-SRV-ATTR:hypervisor_hostname | -| | OS-EXT-SRV-ATTR:instance_name | instance-00000087| | OS-EXT-STS:power_state | 0| | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | -| | OS-SRV-USG:terminated_at | -| | accessIPv4 | | | accessIPv6 | | | adminPass | zq6gg3n6T6cH | | config_drive | | | created | 2015-11-23T10:53:21Z | | flavor | m1.tiny (1) | | hostId | | | id | 2bf420ee-e8ec-4a3c-8efc-0a8101f71b09 | | image | debian-wheezy-amd64-20140929-disk (1cb50c3f-4606-4e94-b85f-1d323f6a70fd) | | key_name | pilot-key| | metadata | {} | | name | HPdemo-instance2 | | os-extended-volumes:volumes_attached | [] | | progress | 0| | security_groups | default | | status | BUILD| | tenant_id | 3935f5d20d2848b69324bb8bd75a0389 | | updated | 2015-11-23T10:53:22Z | | user_id | 86fe8295656d495db6b06c57274adbf2 | +--------------------------------------+--------------------------------------------------------------------------+
nova list –fields name,status,Networks,OS-EXT-SRV-ATTR:host
root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova list --fields name,status,Networks,OS-EXT-SRV-ATTR:host +--------------------------------------+------------------+--------+-----------------------------------+-----------------------------------------------------+ | ID | Name | Status | Networks | OS-EXT-SRV-ATTR: Host | +--------------------------------------+------------------+--------+-----------------------------------+-----------------------------------------------------+ | 374b3e1c-0e89-4481-b9dd-a9a420a498e1 | HPdemo-instance1 | ACTIVE | HPinternal=10.0.0.5, 10.254.27.48 | overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw | | 2bf420ee-e8ec-4a3c-8efc-0a8101f71b09 | HPdemo-instance2 | BUILD | HPinternal2=12.0.0.3 | overcloud-ce-novacompute0-novacompute0-cnfiwerfvbht | +--------------------------------------+------------------+--------+-----------------------------------+-----------------------------------------------------+
Pinging network 10.0.0.0/24 to 12.0.0.0/24
debian@hpdemo-instance1:~$ ping 12.0.0.3 PING 12.0.0.3 (12.0.0.3) 56(84) bytes of data. 64 bytes from 12.0.0.3: icmp_req=1 ttl=63 time=1.98 ms 64 bytes from 12.0.0.3: icmp_req=2 ttl=63 time=0.984 ms 64 bytes from 12.0.0.3: icmp_req=3 ttl=63 time=0.938 ms ^C --- 12.0.0.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.938/1.301/1.981/0.481 ms
Compute0
ip netns
root@overcloud-ce-novacompute0-novacompute0-cnfiwerfvbht:~# ip netns qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 qrouter-6903d563-80f4-40b0-ba77-8774a915a323 qrouter-8497d1cb-c2fa-46a5-9e42-1bfceb810204 fip-35510045-decf-491e-9990-87a3f77f0284 qrouter-64b856f2-00a7-4e2f-8abd-aa34ab454c34
ip netns exec ip a | grep “inet “
ip netns exec qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip a | grep “inet “
root@overcloud-ce-novacompute0-novacompute0-cnfiwerfvbht:~# ip netns exec qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip a | grep "inet " inet 127.0.0.1/8 scope host lo inet 10.0.0.1/24 brd 10.0.0.255 scope global qr-2202c460-bb inet 12.0.0.1/24 brd 12.0.0.255 scope global qr-249aca1f-c6
Compute1
ip netns
root@overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw:~# ip netns fip-35510045-decf-491e-9990-87a3f77f0284 qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 qrouter-6903d563-80f4-40b0-ba77-8774a915a323 qrouter-8497d1cb-c2fa-46a5-9e42-1bfceb810204 qrouter-64b856f2-00a7-4e2f-8abd-aa34ab454c34
ip netns exec ip a | grep “inet “
ip netns exec qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip a | grep “inet “
root@overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw:~# ip netns exec qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip a | grep "net " inet 127.0.0.1/8 scope host lo inet 169.254.31.28/31 scope global rfp-8c8a0159-2 inet 10.254.27.48/32 brd 10.254.27.48 scope global rfp-8c8a0159-2 inet 10.0.0.1/24 brd 10.0.0.255 scope global qr-2202c460-bb inet 12.0.0.1/24 brd 12.0.0.255 scope global qr-249aca1f-c6
One thought on “HOS East-West DVR Traffic Flow Verification (4 of 4)”