diff options
author | John DeNisco <jdenisco@cisco.com> | 2018-08-03 11:02:24 -0400 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-08-03 17:38:40 +0000 |
commit | c8e7f419fed65f2a9d055a5c9850e5fb213d9152 (patch) | |
tree | e7ef53d1113bbea129de6a1b4b709fa35ca2f2a7 /docs/guides/progressivevpp/routing.rst | |
parent | b199e98fef4256795db7fb055b180a07ce84de5c (diff) |
Added missing file
docs: Incorporate Javier's progressive VPP tutorial
Change-Id: Iecee041039c7ed81713bc0530fc536e989c71497
Signed-off-by: John DeNisco <jdenisco@cisco.com>
Diffstat (limited to 'docs/guides/progressivevpp/routing.rst')
-rw-r--r-- | docs/guides/progressivevpp/routing.rst | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/docs/guides/progressivevpp/routing.rst b/docs/guides/progressivevpp/routing.rst new file mode 100644 index 00000000000..b5766c03865 --- /dev/null +++ b/docs/guides/progressivevpp/routing.rst @@ -0,0 +1,71 @@ +.. _routing: + +.. toctree:: + +Routing +======= + +Skills to be Learned +^^^^^^^^^^^^^^^^^^^^ + +In this exercise you will learn these new skills: + +#. Add route to Linux Host routing table +#. Add route to FD.io VPP routing table + +And revisit the old ones: + +#. Examine FD.io VPP routing table +#. Enable trace on vpp1 and vpp2 +#. ping from host to FD.io VPP +#. Examine and clear trace on vpp1 and vpp2 +#. ping from FD.io VPP to host +#. Examine and clear trace on vpp1 and vpp2 + +FD.io VPP command learned in this exercise +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +#. `ip route + add <https://docs.fd.io/vpp/17.04/clicmd_src_vnet_ip.html#clicmd_ip_route>`__ + +Topology +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. figure:: /_images/Connecting_two_vpp_instances_with_memif.png + :alt: Connect two FD.io VPP topology + + Connect two FD.io VPP topology + +Initial State +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The initial state here is presumed to be the final state from the +exercise `Connecting two FD.io VPP +instances <VPP/Progressive_VPP_Tutorial#Connecting_two_vpp_instances>`__ + +Setup host route +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. code-block:: console + + $ sudo ip route add 10.10.2.0/24 via 10.10.1.2 + $ ip route + default via 10.0.2.2 dev enp0s3 + 10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.15 + 10.10.1.0/24 dev vpp1host proto kernel scope link src 10.10.1.1 + 10.10.2.0/24 via 10.10.1.2 dev vpp1host + +Setup return route on vpp2 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. code-block:: console + + vpp# ip route add 10.10.1.0/24 via 10.10.2.1 + +Ping from host through vpp1 to vpp2 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +#. Setup a trace on vpp1 and vpp2 +#. Ping 10.10.2.2 from the host +#. Examine the trace on vpp1 and vpp2 +#. Clear the trace on vpp1 and vpp2 |