From 28d6ac9f8e3721140a6d4d124d46f287ed0b96e8 Mon Sep 17 00:00:00 2001 From: Bin Hu Date: Tue, 19 Jan 2016 08:07:43 -0800 Subject: JIRA:IPVSIX-29 Change-Id: Iacfa0eb37bcd1ce2e08306d9a8da8fb0c22d74a3 Signed-off-by: Bin Hu (cherry picked from commit 4abf37b11ac5681aa293e1412c7c341b9da40e77) --- .../scenario-3-4-ipv6-configguide-servicevm.rst | 29 ++++++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'docs/setupservicevm/scenario-3-4-ipv6-configguide-servicevm.rst') diff --git a/docs/setupservicevm/scenario-3-4-ipv6-configguide-servicevm.rst b/docs/setupservicevm/scenario-3-4-ipv6-configguide-servicevm.rst index 076e1f6..d042687 100644 --- a/docs/setupservicevm/scenario-3-4-ipv6-configguide-servicevm.rst +++ b/docs/setupservicevm/scenario-3-4-ipv6-configguide-servicevm.rst @@ -195,9 +195,28 @@ to know the IPv6 addresses that would be assigned to the port). VM1 would have the following IPv6 address: 2001:db8:0:2:f816:3eff:fe33:3333/64 VM2 would have the following IPv6 address: 2001:db8:0:2:f816:3eff:fe44:4444/64 -**SCENARIO-3-SETUP-18**: To ``SSH`` to vRouter, you can execute the following command. - -.. code-block:: bash - - sudo ip netns exec qrouter-$(neutron router-list | grep -w ipv6-router | awk '{print $2}') ssh -i ~/vRouterKey fedora@2001:db8:0:1:f816:3eff:fe11:1111 +**SCENARIO-3-SETUP-18**: Now we can ``SSH`` to VMs. You can execute the following command. + +.. code-block:: bash + + # 1. Create a floatingip and associate it with VM1, VM2 and vRouter (to the port id that is passed). + neutron floatingip-create --port-id $(neutron port-list | grep -w eth0-VM1 | \ + awk '{print $2}') ext-net + neutron floatingip-create --port-id $(neutron port-list | grep -w eth0-VM2 | \ + awk '{print $2}') ext-net + neutron floatingip-create --port-id $(neutron port-list | grep -w eth1-vRouter | \ + awk '{print $2}') ext-net + + # 2. To know / display the floatingip associated with VM1, VM2 and vRouter. + neutron floatingip-list -F floating_ip_address -F port_id | grep $(neutron port-list | \ + grep -w eth0-VM1 | awk '{print $2}') | awk '{print $2}' + neutron floatingip-list -F floating_ip_address -F port_id | grep $(neutron port-list | \ + grep -w eth0-VM2 | awk '{print $2}') | awk '{print $2}' + neutron floatingip-list -F floating_ip_address -F port_id | grep $(neutron port-list | \ + grep -w eth1-vRouter | awk '{print $2}') | awk '{print $2}' + + # 3. To ssh to the vRouter, VM1 and VM2, user can execute the following command. + ssh -i ~/vRouterKey fedora@ + ssh -i ~/vRouterKey cirros@ + ssh -i ~/vRouterKey cirros@ -- cgit 1.2.3-korg