diff --git a/chapter/ip.tex b/chapter/ip.tex index c38794a..7a524fe 100644 --- a/chapter/ip.tex +++ b/chapter/ip.tex @@ -135,4 +135,12 @@ The winning one was \rfc{3596} with the idea of doing \textit{quad}-A records an The idea is fx. \texttt{2001:db8:ef::2} is noted in ip6.arpa as \texttt{2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.f.e.0.0.8.b.d.0.1.0.0.2.ip6.arpa}. {\small Note the used of '.' between \textit{each} \textit{hexadecimal} character used, and that \textit{all zeroes} has been included. ip6.arpa does not allow any characters to be omitted from the original full-length \gls{ip6} address.}\footnote{Found description \href{https://stackoverflow.com/q/6619682}{here} on stackoverflow.com/q/6619682.} -\section[IPv4]{Internet Protocol v4} \ No newline at end of file +\subsection{Addresses} + +\plaintextinput{ipaddressblocks6} + +\section[IPv4]{Internet Protocol v4} + +\subsection{Addresses} + +\plaintextinput{ipaddressblocks} \ No newline at end of file diff --git a/code/ipaddressblocks.txt b/code/ipaddressblocks.txt index 12e5fed..0b9dab9 100644 --- a/code/ipaddressblocks.txt +++ b/code/ipaddressblocks.txt @@ -20,16 +20,3 @@ Address Block Present Use Reference 240.0.0.0/4 Reserved for Future Use RFC 1112, Section 4 255.255.255.255/32 Limited Broadcast RFC 0919, Section 7 RFC 0922, Section 7 -::1/128 Loopback Address RFC 4291 -::/128 Unspecified Address RFC 4291 -64:ff9b::/96 IPv4-IPv6 Translat. RFC 6052 -::ffff:0:0/96 IPv4-mapped Address RFC 4291 -100::/64 Discard-Only Address Block RFC 6666 -2001::/23 IETF Protocol Assignments RFC 2928 -2001::/32 TEREDO RFC 4380 -2001:2::/48 Benchmarking RFC 5180 -2001:db8::/32 Documentation RFC 3849 -2001:10::/28 ORCHID RFC 4843 -2002::/16 [2] 6to4 RFC 3056 -fc00::/7 Unique-Local RFC 4193 -fe80::/10 Linked-Scoped Unicast RFC 4291 diff --git a/code/ipaddressblocks6.txt b/code/ipaddressblocks6.txt new file mode 100644 index 0000000..9dd301e --- /dev/null +++ b/code/ipaddressblocks6.txt @@ -0,0 +1,15 @@ +Address Block Present Use Reference +-------------------------------------------------------------------- +::1/128 Loopback Address RFC 4291 +::/128 Unspecified Address RFC 4291 +64:ff9b::/96 IPv4-IPv6 Translat. RFC 6052 +::ffff:0:0/96 IPv4-mapped Address RFC 4291 +100::/64 Discard-Only Address Block RFC 6666 +2001::/23 IETF Protocol Assignments RFC 2928 +2001::/32 TEREDO RFC 4380 +2001:2::/48 Benchmarking RFC 5180 +2001:db8::/32 Documentation RFC 3849 +2001:10::/28 ORCHID RFC 4843 +2002::/16 [2] 6to4 RFC 3056 +fc00::/7 Unique-Local RFC 4193 +fe80::/10 Linked-Scoped Unicast RFC 4291 diff --git a/commands.tex b/commands.tex index 0857e3b..bc88bf2 100644 --- a/commands.tex +++ b/commands.tex @@ -95,6 +95,7 @@ License: \texttt{\href{https://creativecommons.org/licenses/by-sa/3.0/}{CC BY-SA \lstnewenvironment{txt}{\lstset{style=plaintxt}}{} + % Usage: % Enviroment @var cisco \lstnewenvironment{cisco}{\lstset{language=cisco}}{} @@ -129,3 +130,8 @@ License: \texttt{\href{https://creativecommons.org/licenses/by-sa/3.0/}{CC BY-SA % Usage: \newcommand{\rfc}[1]{RFC #1\footnote{\href{https://tools.ietf.org/html/rfc#1}{tools.ietf.org/html/rfc#1}}} + + +% Usage: +% https://tex.stackexchange.com/a/75349 +\newcommand{\plaintextinput}[1]{\lstinputlisting[language={},style=plaintxt]{code/#1.txt}}