ASK_Lab11_AdamSalwowski.tex 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. % Created 2021-12-25 Sat 18:11
  2. % Intended LaTeX compiler: pdflatex
  3. \documentclass[11pt]{article}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage[T1]{fontenc}
  6. \usepackage{graphicx}
  7. \usepackage{grffile}
  8. \usepackage{longtable}
  9. \usepackage{wrapfig}
  10. \usepackage{rotating}
  11. \usepackage[normalem]{ulem}
  12. \usepackage{amsmath}
  13. \usepackage{textcomp}
  14. \usepackage{amssymb}
  15. \usepackage{capt-of}
  16. \usepackage{hyperref}
  17. \usepackage{tabularx}
  18. \usepackage{minted}
  19. \usepackage[top=70pt,bottom=70pt,left=50pt,right=50pt]{geometry}
  20. \usepackage{color}
  21. \definecolor{blue}{rgb}{0,0.5,1}
  22. \hypersetup{colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue}
  23. \usepackage{placeins}
  24. \author{Adam Salwowski}
  25. \date{\today}
  26. \title{Sprawozdanie z Administracji Systemów Komputerowych nr. 11}
  27. \hypersetup{
  28. pdfauthor={Adam Salwowski},
  29. pdftitle={Sprawozdanie z Administracji Systemów Komputerowych nr. 11},
  30. pdfkeywords={},
  31. pdfsubject={},
  32. pdfcreator={Emacs 27.1 (Org mode 9.3)},
  33. pdflang={English}}
  34. \begin{document}
  35. \maketitle
  36. \tableofcontents
  37. \newpage
  38. \section{Wstęp}
  39. \label{sec:orgef0acde}
  40. Zadania wykonałem na maszynie wirtualnej z systemem operacyjnym \texttt{Windows Embedded 8.1 Industry Pro Build 9600}. Wersja używanego oprogramowania: \texttt{Cisco Packet Tracer 8.0}. Do połączenia niektórych obrazów użyłem narzędzi z pakietu \texttt{imagemagick}.
  41. \section{Zadanie 1}
  42. \label{sec:org25764b1}
  43. \subsection{Zbudowany układ}
  44. \label{sec:orgc107e17}
  45. \begin{figure}[htbp]
  46. \centering
  47. \includegraphics[width=.9\linewidth]{./images/zad1_1.png}
  48. \caption{Zbudowany układ}
  49. \end{figure}
  50. \FloatBarrier
  51. Aby móc połączyć \emph{R1} z \emph{R0} kablem \emph{Serial DTE} jak na pożyższym zrzucie ekran należy dodać moduł z wejsciami serial o nazwie \emph{HWIC-2T}. Przed dodaniem, należy wyłączyć router przyciskiem po prawej stronie urządzenia.
  52. \begin{figure}[htbp]
  53. \centering
  54. \includegraphics[width=.9\linewidth]{./images/zad1_2.png}
  55. \caption{Router z dodanym modułem}
  56. \end{figure}
  57. \FloatBarrier
  58. \subsection{Wprowadzone komendy}
  59. \label{sec:org6045e9c}
  60. \begin{figure}[htbp]
  61. \centering
  62. \includegraphics[width=.9\linewidth]{./images/zad1_cli.png}
  63. \caption{CLI z wprowadzonymi komendami}
  64. \end{figure}
  65. \subsubsection{Do R1}
  66. \label{sec:org153d845}
  67. \begin{minted}[frame=lines,linenos=true,breaklines=true,breakanywhere=true]{text}
  68. enable
  69. configure terminal
  70. hostname R1
  71. interface fastethernet 0/0
  72. ip address 10.0.0.1 255.0.0.0
  73. no shutdown
  74. exit
  75. interface serial 0/1/0
  76. ip address 20.0.0.2 255.0.0.0
  77. no shutdown
  78. exit
  79. ip route 30.0.0.0 255.0.0.0 20.0.0.1
  80. ip nat inside source static 10.0.0.2 50.0.0.1
  81. interface fastEthernet 0/0
  82. ip nat inside
  83. exit
  84. interface serial 0/1/0
  85. ip nat outside
  86. exit
  87. \end{minted}
  88. \subsubsection{Do R0}
  89. \label{sec:org9dc5205}
  90. \begin{minted}[frame=lines,linenos=true,breaklines=true,breakanywhere=true]{text}
  91. enable
  92. configure terminal
  93. hostname R0
  94. interface fastEthernet 0/0
  95. ip address 30.0.0.1 255.0.0.0
  96. no shutdown
  97. exit
  98. interface serial 0/1/0
  99. ip address 20.0.0.1 255.0.0.0
  100. clock rate 64000
  101. bandwidth 64
  102. no shutdown
  103. exit
  104. ip route 50.0.0.0 255.0.0.0 20.0.0.2
  105. \end{minted}
  106. \subsection{Skonfigurowane interfejsy}
  107. \label{sec:orgc92e640}
  108. \begin{figure}[htbp]
  109. \centering
  110. \includegraphics[width=.9\linewidth]{./images/zad1_conf_pc.png}
  111. \caption{PC's oraz Server}
  112. \end{figure}
  113. \begin{figure}[htbp]
  114. \centering
  115. \includegraphics[width=.9\linewidth]{./images/zad1_conf_r.png}
  116. \caption{Routery}
  117. \end{figure}
  118. \FloatBarrier
  119. .\newpage
  120. \subsection{Ping}
  121. \label{sec:org00380d4}
  122. \begin{figure}[htbp]
  123. \centering
  124. \includegraphics[width=.9\linewidth]{./images/zad1_ping.png}
  125. \caption{Sygnał ICMP}
  126. \end{figure}
  127. \FloatBarrier
  128. Operacja przebiegła pomyślnie.
  129. \section{Zadanie 2}
  130. \label{sec:org852be59}
  131. \subsection{Zbudowany układ}
  132. \label{sec:org9c69f75}
  133. \begin{figure}[htbp]
  134. \centering
  135. \includegraphics[width=.9\linewidth]{./images/zad2_1.png}
  136. \caption{Zbudowany układ}
  137. \end{figure}
  138. \FloatBarrier
  139. \subsection{Wprowadzone komendy}
  140. \label{sec:org9f1fb53}
  141. \begin{figure}[htbp]
  142. \centering
  143. \includegraphics[width=.9\linewidth]{./images/zad2_cli.png}
  144. \caption{CLI routerów}
  145. \end{figure}
  146. \FloatBarrier
  147. \subsubsection{Do R1}
  148. \label{sec:orga0d49f1}
  149. \begin{minted}[frame=lines,linenos=true,breaklines=true,breakanywhere=true]{text}
  150. enable
  151. configure terminal
  152. hostname R1
  153. interface fastEthernet 0/0
  154. ip address 192.168.0.1 255.255.0.0
  155. no shutdown
  156. exit
  157. interface serial 0/1/0
  158. ip address 30.0.0.1 255.0.0.0
  159. clock rate 64000
  160. bandwidth 64
  161. no shutdown
  162. exit
  163. ip route 0.0.0.0 0.0.0.0 serial 0/1/0
  164. access-list 1 permit 192.168.0.0 0.0.0.255
  165. ip nat pool test 50.0.0.1 50.0.0.5 netmask 255.0.0.0
  166. ip nat inside source list 1 pool test
  167. interface fastEthernet 0/0
  168. ip nat inside
  169. exit
  170. interface serial 0/1/0
  171. ip nat outside
  172. exit
  173. \end{minted}
  174. \subsubsection{Do R2}
  175. \label{sec:org6fccca6}
  176. \begin{minted}[frame=lines,linenos=true,breaklines=true,breakanywhere=true]{text}
  177. enable
  178. configure terminal
  179. interface fastEthernet 0/0
  180. ip address 20.0.0.1 255.0.0.0
  181. no shutdown
  182. exit
  183. interface serial 0/1/0
  184. ip address 30.0.0.2 255.0.0.0
  185. no shutdown
  186. exit
  187. ip route 0.0.0.0 0.0.0.0 serial 0/1/0
  188. hostname R2
  189. \end{minted}
  190. \subsection{Skonfigurowane interfejsy}
  191. \label{sec:org1b03892}
  192. \begin{figure}[htbp]
  193. \centering
  194. \includegraphics[width=1\textwidth]{./images/zad2_conf_pc.png}
  195. \caption{PC's oraz Server}
  196. \end{figure}
  197. \begin{figure}[htbp]
  198. \centering
  199. \includegraphics[width=1\textwidth]{./images/zad2_conf_r.png}
  200. \caption{Routery}
  201. \end{figure}
  202. \FloatBarrier
  203. \subsection{Testowanie NAT}
  204. \label{sec:orgec83e95}
  205. Uruchamiam na R1 debugowanie NAT.
  206. \begin{figure}[htbp]
  207. \centering
  208. \includegraphics[height=0.5\textwidth]{./images/zad2_debug.png}
  209. \caption{Debug}
  210. \end{figure}
  211. \FloatBarrier
  212. \begin{figure}[htbp]
  213. \centering
  214. \includegraphics[height=0.5\textwidth]{./images/zad2_ping.png}
  215. \caption{Sygnał ICMP}
  216. \end{figure}
  217. \FloatBarrier
  218. Operacja echo request adresu 20.0.0.2 przebiegła pomyślnie z hosta o adresie 192.168.0.2 (PC0).
  219. \end{document}