HOS North-South DVR Fixed IP Traffic Flow Verification (2 of 4)

Neutron North-South DVR Fixed IP (SNAT) Traffic Flow

North-South_fixed-IP

List the current neutron networks

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  |

| 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 |

+--------------------------------------+-------------+-------------------------------------------------------+

Identify the external networks available

neutron net-external-list

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron net-external-list

+--------------------------------------+---------+-----------------------------------------------------+

| id                                    | name      | subnets                                           |

+--------------------------------------+---------+-----------------------------------------------------+

| 35510045-decf-491e-9990-87a3f77f0284 | ext-net | bfaacf82-7a4f-4e0c-aab9-94f705dc2c11 10.254.27.0/24 |

+--------------------------------------+---------+-----------------------------------------------------+

Create a test router called HProuter

neutron router-create HProuter

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron router-create HProuter

Created a new router:

+-----------------------+--------------------------------------+

| Field                 | Value                                 |

+-----------------------+--------------------------------------+

| admin_state_up        | True                                  |

| distributed           | True                                  |

| external_gateway_info |                                       |

| ha                    | False                                 |

| id                    | 8c8a0159-2b37-4fae-93e9-b302a9d59573 |

| name                  | HProuter                              |

| routes                |                                       |

| status                | ACTIVE                                |

| tenant_id             | 3935f5d20d2848b69324bb8bd75a0389 |

+-----------------------+--------------------------------------+

Create the private network

neutron net-create HPinternal

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron net-create HPinternal

Created a new network:

+---------------------------+--------------------------------------+

| Field                     | Value                                 |

+---------------------------+--------------------------------------+

| admin_state_up            | True |

| id                        | d2ad4daa-d004-40bd-afa8-b7e19b8dde67 |

| name                      | HPinternal   |

| provider:network_type     | vxlan|

| provider:physical_network |  |

| provider:segmentation_id  | 1006 |

| router:external           | False|

| shared                    | False|

| status                    | ACTIVE   |

| subnets                   |  |

| tenant_id                 | 3935f5d20d2848b69324bb8bd75a0389 |

+---------------------------+--------------------------------------+

Create the subnet for this network

neutron subnet-create –name subnet-HPinternal HPinternal 10.0.0.0/24

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron subnet-create --name subnet-HPinternal HPinternal 10.0.0.0/24

Created a new subnet:

+-------------------+--------------------------------------------+

| Field             | Value  |

+-------------------+--------------------------------------------+

| allocation_pools  | {"start": "10.0.0.2", "end": "10.0.0.254"} |

| cidr              | 10.0.0.0/24|

| dns_nameservers   ||

| enable_dhcp       | True   |

| gateway_ip        | 10.0.0.1   |

| host_routes       |       |

| id                | 28d80588-9bf1-415e-a1f3-b08d95d5bf14   |

| ip_version        | 4  |

| ipv6_address_mode ||

| ipv6_ra_mode      ||

| name              | subnet-HPinternal  |

| network_id        | d2ad4daa-d004-40bd-afa8-b7e19b8dde67   |

| tenant_id         | 3935f5d20d2848b69324bb8bd75a0389   |

+-------------------+--------------------------------------------+

Connect the subnet to the router

neutron router-interface-add HProuter subnet-HPinternal

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron router-interface-add HProuter subnet-HPinternal
Added interface 2202c460-bb31-4a65-9d0d-cbcc64729843 to router HProuter.

Set the gateway on the router

neutron router-gateway-set 8c8a0159-2b37-4fae-93e9-b302a9d59573 35510045-decf-491e-9990-87a3f77f0284

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# neutron router-gateway-set 8c8a0159-2b37-4fae-93e9-b302a9d59573 35510045-decf-491e-9990-87a3f77f0284

Set gateway for router 8c8a0159-2b37-4fae-93e9-b302a9d59573

Booting an instance on the new network

nova keypair-list

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova keypair-list

+-----------+-------------------------------------------------+

| Name      | Fingerprint                                       |

+-----------+-------------------------------------------------+

| default   | 01:5f:f1:62:4d:2a:c8:cd:c1:4e:d1:a1:9c:78:66:42 |

| pilot-key | 95:ed:68:93:f6:9e:bb:45:f4:e7:95:53:f9:25:35:db |

+-----------+-------------------------------------------------+

nova flavor-list

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova flavor-list

+--------------------------------------+-------------------+-----------+------+-----------+------+-------+-------------+-----------+

| ID                                    | Name              | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |

+--------------------------------------+-------------------+-----------+------+-----------+------+-------+-------------+-----------+

| 0939b77d-6f64-4bf0-b8cf-20db61a16af6 | windows.web.small  | 2048      | 40   | 20| 4096 | 2 | 1.0 | True  |

| 1                                     | m1.tiny           | 512       | 2     | 0 |  | 1 | 1.0 | True  |

| 2                                     | m1.small          | 2048      | 20   | 0 |  | 1 | 1.0 | True  |

| 200                                   | linux.web.small   | 2048      | 10   | 20| 4096 | 2 | 1.0 | True  |

| 201                                   | linux.ora.small   | 8192      | 50   | 0 |  | 4 | 1.0 | True  |

| 3                                     | m1.medium         | 4096      | 40   | 0 |  | 2 | 1.0 | True  |

| 4                                     | m1.large          | 8192      | 80   | 0 |  | 4 | 1.0 | True  |

| 5                                     | m1.xlarge         | 16384     | 160  | 0 |  | 8 | 1.0 | True  |

+--------------------------------------+-------------------+-----------+------+-----------+------+-------+-------------+-----------+

nova image-list

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova image-list

+--------------------------------------+-----------------------------------+--------+--------+

| ID                                    | Name                              | Status | Server |

+--------------------------------------+-----------------------------------+--------+--------+

| 29101bd4-0198-47e8-8dd6-da568a2514a2 | CentOS 6.7 v1                      | ACTIVE ||

| 93400dd8-2708-4ed8-961a-ed751b224a95 | RedHat6.7                          | ACTIVE ||

| 7bc76bd2-f575-49ea-9add-7d84b411262f | Ubuntu 14.04.03 64 bit             | ACTIVE ||

| a785ed8c-72aa-400c-a1a9-d7575a801209 | Ubuntu Server 14.04 v1             | ACTIVE ||

| 3a43eb71-3d64-4e45-922e-680b26661d54 | Windows Server 2012 R2 64 Bits v2  | ACTIVE ||

| 831ecd7a-e26e-4388-b2f4-03d88d067cc7 | Windows Server 2012 R2 v1          | ACTIVE ||

| 1cb50c3f-4606-4e94-b85f-1d323f6a70fd | debian-wheezy-amd64-20140929-disk  | ACTIVE ||

| debdde40-8055-484c-8fa8-f7fc1a7750d0 | snap-slpilotbd01                   | ACTIVE ||

+--------------------------------------+-----------------------------------+--------+--------+

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  |

| 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 secgroup-list

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova secgroup-list

+--------------------------------------+---------+-------------+

| Id                                    | Name| Description |

+--------------------------------------+---------+-------------+

| 70ad0845-b9a0-4675-88ea-2edd12dea786 | default | default |

+--------------------------------------+---------+-------------+

nova boot –flavor m1.tiny –image debian-wheezy-amd64-20140929-disk –nic net-id=d2ad4daa-d004-40bd-afa8-b7e19b8dde67 –security-group default –key-name pilot-key HPdemo-instance1

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova boot --flavor m1.tiny --image debian-wheezy-amd64-20140929-disk --nic net-id=d2ad4daa-d004-40bd-afa8-b7e19b8dde67 --security-group default --key-name pilot-key HPdemo-instance1

+--------------------------------------+--------------------------------------------------------------------------+

| 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-00000084|

| 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                             | ad9HfYFHsnR2 |

| config_drive                          |  |

| created                               | 2015-11-23T10:05:35Z |

| flavor                                | m1.tiny (1)  |

| hostId                                |  |

| id                                    | 374b3e1c-0e89-4481-b9dd-a9a420a498e1 |

| image                                 | debian-wheezy-amd64-20140929-disk (1cb50c3f-4606-4e94-b85f-1d323f6a70fd) |

| key_name                              | pilot-key|

| metadata                              | {}   |

| name                                  | HPdemo-instance1 |

| os-extended-volumes:volumes_attached  | []   |

| progress                              | 0|

| security_groups                       | default  |

| status                                | BUILD|

| tenant_id                             | 3935f5d20d2848b69324bb8bd75a0389 |

| updated                               | 2015-11-23T10:05:36Z |

| user_id                               | 86fe8295656d495db6b06c57274adbf2 |

+--------------------------------------+--------------------------------------------------------------------------+

nova list

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova list

+--------------------------------------+------------------+--------+------------+-------------+---------------------+

| ID                                    | Name              | Status | Task State | Power State | Networks|

+--------------------------------------+------------------+--------+------------+-------------+---------------------+

| 374b3e1c-0e89-4481-b9dd-a9a420a498e1 | HPdemo-instance1   | ACTIVE | -            | Running | HPinternal=10.0.0.5 |

+--------------------------------------+------------------+--------+------------+-------------+---------------------+

Verify Network Namespaces

Controller0

ip netns

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# ip netns

qrouter-6903d563-80f4-40b0-ba77-8774a915a323

qdhcp-e99f2cdd-eb42-4466-9b17-7cb85636c013

qdhcp-73ff3b91-77ad-4ef4-aa67-a99a5ef57650

snat-8497d1cb-c2fa-46a5-9e42-1bfceb810204

qrouter-8497d1cb-c2fa-46a5-9e42-1bfceb810204

qdhcp-e70da3b0-ad8d-4ec0-9dd7-40ba563d2416

qdhcp-4259ab26-a1c4-427e-a7e0-b941368c4e23

snat-64b856f2-00a7-4e2f-8abd-aa34ab454c34

qrouter-64b856f2-00a7-4e2f-8abd-aa34ab454c34

ip netns exec <snat-namespace from above> ip a | grep “inet “

ip netns exec snat-8497d1cb-c2fa-46a5-9e42-1bfceb810204 ip a | grep “inet “

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# ip netns exec snat-8497d1cb-c2fa-46a5-9e42-1bfceb810204 ip a | grep &quot;inet &quot;

   inet 127.0.0.1/8 scope host lo

   inet 10.254.27.21/24 brd 10.254.27.255 scope global qg-5b6914d7-f7

   inet 192.168.111.2/24 brd 192.168.111.255 scope global sg-8b3ee21d-13

   inet 172.0.100.106/24 brd 172.0.100.255 scope global sg-00f5256d-4f

**ip netns exec snat-64b856f2-00a7-4e2f-8abd-aa34ab454c34 ip a | grep “inet “
**

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# ip netns exec snat-64b856f2-00a7-4e2f-8abd-aa34ab454c34 ip a | grep &quot;inet &quot;

   inet 127.0.0.1/8 scope host lo

   inet 172.0.100.2/24 brd 172.0.100.255 scope global sg-161f8764-8f

   inet 10.254.27.10/24 brd 10.254.27.255 scope global qg-1d075498-b3

   inet 192.168.113.51/24 brd 192.168.113.255 scope global sg-f4b08ba6-10

ip netns exec <snat-namespace from above> iptables-save | grep SNAT

ip netns exec snat-8497d1cb-c2fa-46a5-9e42-1bfceb810204 iptables-save | grep SNAT

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# ip netns exec snat-8497d1cb-c2fa-46a5-9e42-1bfceb810204 iptables-save | grep SNAT

-A neutron-l3-agent-snat -s 192.168.111.0/24 -j SNAT --to-source 10.254.27.21

-A neutron-l3-agent-snat -s 172.0.100.0/24 -j SNAT --to-source 10.254.27.21

ip netns exec snat-64b856f2-00a7-4e2f-8abd-aa34ab454c34 iptables-save | grep SNAT

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# ip netns exec snat-64b856f2-00a7-4e2f-8abd-aa34ab454c34 iptables-save | grep SNAT

-A neutron-l3-agent-snat -s 172.0.100.0/24 -j SNAT --to-source 10.254.27.10

Controller1

ip netns

root@overcloud-ce-controller-controller1-7g6rbkrawrmb:~# ip netns

qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573

qdhcp-d2ad4daa-d004-40bd-afa8-b7e19b8dde67

qrouter-ba804d5f-03c2-430f-ad1e-666dcabffd5e

qdhcp-a493f23f-3646-49c5-a342-82c0ac7601f6

qdhcp-e70da3b0-ad8d-4ec0-9dd7-40ba563d2416

The SNAT namespace for the new router is not on controller0 or controller1 therefore it must be on controller2…

Controller2

ip netns

root@overcloud-ce-controller-controller2-wjg7a27togvj:~# ip netns

qdhcp-d2ad4daa-d004-40bd-afa8-b7e19b8dde67

snat-8c8a0159-2b37-4fae-93e9-b302a9d59573

qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573

snat-ba804d5f-03c2-430f-ad1e-666dcabffd5e

qrouter-ba804d5f-03c2-430f-ad1e-666dcabffd5e

snat-6903d563-80f4-40b0-ba77-8774a915a323

qrouter-6903d563-80f4-40b0-ba77-8774a915a323

qdhcp-e99f2cdd-eb42-4466-9b17-7cb85636c013

qrouter-8497d1cb-c2fa-46a5-9e42-1bfceb810204

qdhcp-73ff3b91-77ad-4ef4-aa67-a99a5ef57650

qrouter-64b856f2-00a7-4e2f-8abd-aa34ab454c34

qdhcp-4259ab26-a1c4-427e-a7e0-b941368c4e23

ip netns exec <snat-namespace from above> ip a | grep “inet “

ip netns exec snat-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip a | grep “inet “

root@overcloud-ce-controller-controller2-wjg7a27togvj:~# ip netns exec snat-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip a | grep &quot;inet &quot;

   inet 127.0.0.1/8 scope host lo

   inet 10.0.0.4/24 brd 10.0.0.255 scope global sg-d3ad81b5-9f

   inet 10.254.27.47/24 brd 10.254.27.255 scope global qg-8ae77792-b7

ip netns exec <snat-namespace from above> iptables-save | grep SNAT

ip netns exec snat-8c8a0159-2b37-4fae-93e9-b302a9d59573 iptables-save | grep SNAT

root@overcloud-ce-controller-controller2-wjg7a27togvj:~# ip netns exec snat-8c8a0159-2b37-4fae-93e9-b302a9d59573 iptables-save | grep SNAT

-A neutron-l3-agent-snat -s 10.0.0.0/24 -j SNAT --to-source 10.254.27.47

Now let’s look at the compute node

Use the following command to find out which compute node the vm is running on

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 | overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw |

+--------------------------------------+------------------+--------+---------------------+-----------------------------------------------------+

Compute1

nova show 374b3e1c-0e89-4481-b9dd-a9a420a498e1

root@overcloud-ce-controller-controller0-dlmy4f5tbc5d:~# nova show 374b3e1c-0e89-4481-b9dd-a9a420a498e1

+--------------------------------------+--------------------------------------------------------------------------+

| Property                              | Value|

+--------------------------------------+--------------------------------------------------------------------------+

| HPinternal network                    | 10.0.0.5 |

| OS-EXT-AZ:availability_zone           | nova |

| OS-EXT-SRV-ATTR:host                  | overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw  |

| OS-EXT-SRV-ATTR:hypervisor_hostname   | overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw.novalocal|

| OS-EXT-SRV-ATTR:instance_name         | instance-00000084|

| OS-EXT-STS:power_state                | 1|

| OS-EXT-STS:task_state                 | -|

| OS-EXT-STS:vm_state                   | active   |

| OS-SRV-USG:launched_at                | 2015-11-23T10:06:14.000000   |

| OS-SRV-USG:terminated_at              | -|

| accessIPv4                            |  |

| accessIPv6                            |  |

| config_drive                          |  |

| created                               | 2015-11-23T10:05:35Z |

| flavor                                | m1.tiny (1)  |

| hostId                                | 528ae3e885715e8a63ee541508e197b78e24fd194b4f0da6af44edb6 |

| id                                    | 374b3e1c-0e89-4481-b9dd-a9a420a498e1 |

| image                                 | debian-wheezy-amd64-20140929-disk (1cb50c3f-4606-4e94-b85f-1d323f6a70fd) |

| key_name                              | pilot-key|

| metadata                              | {}   |

| name                                  | HPdemo-instance1 |

| os-extended-volumes:volumes_attached  | []   |

| progress                              | 0|

| security_groups                       | default  |

| status                                | ACTIVE   |

| tenant_id                             | 3935f5d20d2848b69324bb8bd75a0389 |

| updated                               | 2015-11-23T10:06:14Z |

| user_id                               | 86fe8295656d495db6b06c57274adbf2 |

+--------------------------------------+--------------------------------------------------------------------------+

ip netns

root@overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw:~# ip netns

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 <qrouter-namespace from above> 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 &quot;inet &quot;

   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

ip netns exec qrouter-6903d563-80f4-40b0-ba77-8774a915a323 ip a | grep “inet “

root@overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw:~# ip netns exec qrouter-6903d563-80f4-40b0-ba77-8774a915a323 ip a | grep &quot;inet &quot;

   inet 127.0.0.1/8 scope host lo

   inet 192.168.113.1/24 brd 192.168.113.255 scope global qr-0b36af9c-8c

ip netns exec qrouter-8497d1cb-c2fa-46a5-9e42-1bfceb810204 ip a | grep “inet “

root@overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw:~# ip netns exec qrouter-8497d1cb-c2fa-46a5-9e42-1bfceb810204 ip a | grep &quot;inet &quot;

   inet 127.0.0.1/8 scope host lo

   inet 172.0.100.254/24 brd 172.0.100.255 scope global qr-0703300d-84

   inet 192.168.111.1/24 brd 192.168.111.255 scope global qr-c73759bd-9d

ip netns exec qrouter-64b856f2-00a7-4e2f-8abd-aa34ab454c34 ip a | grep “inet “

root@overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw:~# ip netns exec qrouter-64b856f2-00a7-4e2f-8abd-aa34ab454c34 ip a | grep &quot;inet &quot;

   inet 127.0.0.1/8 scope host lo

   inet 172.0.100.1/24 brd 172.0.100.255 scope global qr-accfb1df-cc

ip netns exec <qrouter-namespace from above> ip rule ls

ip netns exec qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip rule ls

root@overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw:~# ip netns exec qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip rule ls

0:  from all lookup local

32766:  from all lookup main

32767:  from all lookup default

167772161:  from 10.0.0.1/24 lookup 167772161

167772161:  from 10.0.0.1/24 lookup 167772161

ip netns exec <qrouter-namespace from above> ip route show table all

ip netns exec qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip route show table all

root@overcloud-ce-novacompute1-novacompute1-tpodwp2ljbhw:~# ip netns exec qrouter-8c8a0159-2b37-4fae-93e9-b302a9d59573 ip route show table all

default via 10.0.0.4 dev qr-2202c460-bb  table 167772161

10.0.0.0/24 dev qr-2202c460-bb  proto kernel  scope link  src 10.0.0.1

broadcast 10.0.0.0 dev qr-2202c460-bb  table local  proto kernel  scope link  src 10.0.0.1

local 10.0.0.1 dev qr-2202c460-bb  table local  proto kernel  scope host  src 10.0.0.1

broadcast 10.0.0.255 dev qr-2202c460-bb  table local  proto kernel  scope link  src 10.0.0.1

broadcast 127.0.0.0 dev lo  table local  proto kernel  scope link  src 127.0.0.1

local 127.0.0.0/8 dev lo  table local  proto kernel  scope host  src 127.0.0.1

local 127.0.0.1 dev lo  table local  proto kernel  scope host  src 127.0.0.1

broadcast 127.255.255.255 dev lo  table local  proto kernel  scope link  src 127.0.0.1

fe80::/64 dev qr-2202c460-bb  proto kernel  metric 256

unreachable default dev lo  table unspec  proto kernel  metric 4294967295  error -101

local ::1 dev lo  table local  proto none  metric 0

local fe80:: dev lo  table local  proto none  metric 0

local fe80::f816:3eff:fefc:cddc dev lo  table local  proto none  metric 0

ff00::/8 dev qr-2202c460-bb  table local  metric 256

unreachable default dev lo  table unspec  proto kernel  metric 4294967295  error -101

<Previous><Next>

2 thoughts on “HOS North-South DVR Fixed IP Traffic Flow Verification (2 of 4)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s