You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/ipv6.rst
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -532,7 +532,7 @@ The syntax of IPMininet_ is relatively simple and can be learned by looking at a
532
532
Let us start our exploration of IPv6 routing with a simple network topology that contains two hosts and three routers and uses static routes.
533
533
534
534
.. tikz:: Simple network
535
-
:libs: positioning,matrix,arrow
535
+
:libs: positioning,matrix,arrows
536
536
537
537
\tikzstyle{arrow} = [thick,->,>=stealth]
538
538
\tikzset{router/.style = {rectangle, draw, text centered, minimum height=2em}, }
@@ -747,9 +747,14 @@ The ``nodes`` command lists the routers and hosts that have been created in the
747
747
r1-eth1<->r3-eth0 (OK OK)
748
748
r2-eth1<->r3-eth1 (OK OK)
749
749
r3-eth2<->b-eth0 (OK OK)
750
-
mininet>
750
+
mininet>
751
+
752
+
.. spelling::
753
+
754
+
inet
755
+
inet6
751
756
752
-
It is possible to execute any of the standard Linux commands to configure the network stack on any of the hosts by prefixing the command with the corresponding host. Remember to always specify inet6 as the address family to retrieve the IPv6 information.
757
+
It is possible to execute any of the standard Linux commands to configure the network stack on any of the hosts by prefixing the command with the corresponding host. Remember to always specify ``inet6`` as the address family to retrieve the IPv6 information.
753
758
754
759
.. code-block:: console
755
760
@@ -785,7 +790,7 @@ On its ``a-eth0`` interface, host ``a`` uses IPv6 address ``2001:db8:1341:1::a/6
785
790
786
791
There are three routes in this table. The first two correspond to the two prefixes that are used over the ``a-eth0`` interface. These routes are automatically created when an IPv6 address is configured on an interface. The last route is the default route (``::/0``) which points towards ``2001:db8:1341:1::1``, i.e. router ``r1``.
787
792
788
-
Another useful command is ``xterm`` 'node' that allows to launch a terminal on the specified node. This gives you a interactive shell on any node. You can use it to capture packets with tcpdump_. As an example, let us use :manpage:`traceroute6(8)` to trace the path followed by packets from host ``a`` towards the IPv6 address of host ``b`` i.e. `2001:db8:1341:3::b``. The output of this command shows that the path passes through routers ``r1``, ``r2`` and ``r3``.
793
+
Another useful command is ``xterm`` 'node' that allows to launch a terminal on the specified node. This gives you a interactive shell on any node. You can use it to capture packets with tcpdump_. As an example, let us use :manpage:`traceroute6(8)` to trace the path followed by packets from host ``a`` towards the IPv6 address of host ``b`` i.e. ``2001:db8:1341:3::b``. The output of this command shows that the path passes through routers ``r1``, ``r2`` and ``r3``.
789
794
790
795
.. code-block:: console
791
796
@@ -807,7 +812,7 @@ Another interesting mininet_ command is ``pingall`` it allows to check that any
807
812
b --IPv6--> a
808
813
*** Results: 0% dropped (2/2 received)
809
814
810
-
815
+
811
816
When debugging a network, it can be interesting to capture packets using tcpdump_ on specific links to check that they follow the expect. If you use tcpdump_ without any filter, you will capture the packets generated by xterm. To capture packets, you need to specify precise filters that will match the packets of interest. For traceroute6, you need to match the IPv6 packets that contain UDP segments and some ICMPv6 packets. The script below provides a simple filter that you can reuse. It takes one argument: the name of the interface on which tcpdump_ needs to run.
0 commit comments