From f662e38474608a8a708108d4bf115acbbf361d51 Mon Sep 17 00:00:00 2001 From: Bin Hu Date: Mon, 18 Jan 2016 22:32:30 -0800 Subject: JIRA:IPVSIX-29 Change-Id: I20b224fe0f0b952c2be9446ed6c7c77987d6abea Signed-off-by: Bin Hu (cherry picked from commit 1a6f6801b148da017d4c2bd247981f10125268e3) --- docs/reldoc/index.rst | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/reldoc/index.rst b/docs/reldoc/index.rst index ef40d42..00caa43 100644 --- a/docs/reldoc/index.rst +++ b/docs/reldoc/index.rst @@ -282,7 +282,26 @@ 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 + # 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@ **************************************************************** Setup Manual in OpenStack with Open Daylight L2-Only Environment -- cgit 1.2.3-korg