Do TP2 etherchannel
16
architectures-infrastructures-entreprise/tp2/Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
filename=$(shell basename $(shell pwd))
|
||||
timestamp=$(shell date +%Y-%m-%d_%H:%M)
|
||||
|
||||
all: snapshot
|
||||
|
||||
snapshot: main.tex
|
||||
@latexmk -pdf main.tex
|
||||
@if ! cmp --silent build/main.pdf ${filename}_*.pdf; then \
|
||||
touch ${filename}_tmp.pdf; \
|
||||
rm ${filename}*.pdf; \
|
||||
cp build/main.pdf ${filename}_${timestamp}.pdf; \
|
||||
echo "Updated"; \
|
||||
fi
|
||||
|
||||
clean:
|
||||
@rm -rf build 2>/dev/null
|
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 72 KiB |
BIN
architectures-infrastructures-entreprise/tp2/img/dns.png
Normal file
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 91 KiB |
BIN
architectures-infrastructures-entreprise/tp2/img/ex1.png
Normal file
After Width: | Height: | Size: 54 KiB |
After Width: | Height: | Size: 53 KiB |
BIN
architectures-infrastructures-entreprise/tp2/img/ex2.png
Normal file
After Width: | Height: | Size: 56 KiB |
BIN
architectures-infrastructures-entreprise/tp2/img/no-http.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
architectures-infrastructures-entreprise/tp2/img/web.png
Normal file
After Width: | Height: | Size: 52 KiB |
155
architectures-infrastructures-entreprise/tp2/main.tex
Normal file
|
@ -0,0 +1,155 @@
|
|||
\documentclass[a4paper,french,12pt]{article}
|
||||
|
||||
\title{Architectures et infrastructures sécurisées \\ TP2 \\ Redondance dans les réseaux LAN}
|
||||
\author{Zakaria Bencheikh, Alexandre Chen, Tunui Franken, Thomas Jubault}
|
||||
\date{Dernière compilation~: \today{} à \currenttime}
|
||||
|
||||
\usepackage{styles}
|
||||
\usepackage{enumitem}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
\clearpage
|
||||
\tableofcontents
|
||||
|
||||
\clearpage
|
||||
|
||||
\section{STP}
|
||||
|
||||
\begin{enumerate}
|
||||
|
||||
\item \textbf{Reproduire cette topologie en utilisant packet tracer.}
|
||||
|
||||
\includegraphics[width=\linewidth]{./img/ex1.png}
|
||||
|
||||
\item \textbf{Désactiver les indicateurs lumineux des interfaces (Options > Preferences > Show Link Lights).}
|
||||
|
||||
\item \textbf{Quelle commande permet d’obtenir les adresses MAC des switches~?}
|
||||
\textbf{Utilisez cette commande pour remplir les adresses MAC des switches.}
|
||||
|
||||
\begin{lstlisting}[gobble=12]
|
||||
Switch#show version
|
||||
\end{lstlisting}
|
||||
|
||||
\item \textbf{Quelle commande pouvons-nous utiliser pour obtenir les priorités de chaque switch~?}
|
||||
\textbf{Utilisez cette commande pour remplir les priorités des switches.}
|
||||
|
||||
\begin{lstlisting}[gobble=12]
|
||||
Switch#show spanning-tree | include priority
|
||||
\end{lstlisting}
|
||||
|
||||
\item \textbf{Identifier le pont racine, et le rôle de chaque interface sur chaque commutateur du réseau (racine/désigné/non-désigné).}
|
||||
\textbf{Annotez le schéma sur packet tracer.}
|
||||
|
||||
\includegraphics[width=\linewidth]{./img/ex1-stp-state.png}
|
||||
|
||||
\item \textbf{Comment pouvez-vous confirmer l’exactitude des vos réponses~?}
|
||||
\textbf{Expliquez et rajouter des screenshots pour illustrer votre démarche.}
|
||||
|
||||
La priorité des switches est la même, donc le root bridge est le switch ayant l'adresse MAC la plus petite.
|
||||
De plus, tous les liens étant fastethernet, les priorités des liens sont définies en fonction du numéro du lien.
|
||||
|
||||
\item \textbf{Existent-ils d’autres états pour les interfaces dans le protocole STP~?}
|
||||
\textbf{Expliquer brièvement.}
|
||||
|
||||
Lors de l'initialisation, deux autres états existent~: \texttt{listening} et \texttt{learning}.
|
||||
Dans le mode \texttt{listening}, l'interface écoute les BPDU (Bridge Protocol Data Unit) pour s'assurer qu'il n'y a pas de boucles avant de passer à l'état \texttt{learning}.
|
||||
Dans le mode \texttt{learning}, l'interface apprend les adresses MAC de ses voisins et construit sa table de liaison, mais ne transmet pas encore de paquets.
|
||||
|
||||
\end{enumerate}
|
||||
|
||||
\section{EtherChannel}
|
||||
|
||||
\begin{enumerate}
|
||||
|
||||
\item \textbf{Reproduire la topologie sur packet tracer.}
|
||||
|
||||
\includegraphics[width=\linewidth]{./img/ex2.png}
|
||||
|
||||
\item \textbf{Pourquoi l’interface Fa0/4 du switch 1 est colorée en orange~?}
|
||||
|
||||
La présence de deux liens produit une boucle, donc avant la mise en place d'un EtherChannel, la boucle doit être évitée grâce à Spanning Tree.
|
||||
|
||||
\item \textbf{Configurer les 4 PCs pour qu’il soient dans le même réseau.}
|
||||
|
||||
\item \textbf{Testez la connectivité entre les PCs.}
|
||||
|
||||
\begin{lstlisting}[gobble=12]
|
||||
C:>ping 192.168.1.4
|
||||
|
||||
Pinging 192.168.1.4 with 32 bytes of data:
|
||||
|
||||
Reply from 192.168.1.4: bytes=32 time<1ms TTL=128
|
||||
Reply from 192.168.1.4: bytes=32 time<1ms TTL=128
|
||||
Reply from 192.168.1.4: bytes=32 time<1ms TTL=128
|
||||
Reply from 192.168.1.4: bytes=32 time<1ms TTL=128
|
||||
|
||||
Ping statistics for 192.168.1.4:
|
||||
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
|
||||
Approximate round trip times in milli-seconds:
|
||||
Minimum = 0ms, Maximum = 0ms, Average = 0ms
|
||||
\end{lstlisting}
|
||||
|
||||
\item \textbf{Quelle est la vitesse de transmission de chaque interface des deux switches.}
|
||||
|
||||
S'agissant d'interfaces FastEthernet, le débit maximal pour une interface est de 100Mbits/s.
|
||||
|
||||
\item \textbf{Quel serait la vitesse de transmission entre les deux switches si l’Etherchannel est activée~?}
|
||||
|
||||
En regroupant les deux liens, on doublerait le débit théorique, et on passerait ainsi à 200Mbits/s.
|
||||
|
||||
\item \textbf{En se basant sur les slides du cours, configurer l’Etherchannel entre les deux switchs.}
|
||||
|
||||
\begin{lstlisting}[gobble=12]
|
||||
Switch(conf)#interface range FastEthernet 0/1-2
|
||||
Switch(conf-if-range)# channel-group 1 mode on
|
||||
\end{lstlisting}
|
||||
|
||||
\item \textbf{Testez votre configuration.}
|
||||
|
||||
Les LEDs sont bien allumées~:
|
||||
|
||||
\includegraphics[width=\linewidth]{./img/ex2-etherchannel.png}
|
||||
|
||||
\begin{lstlisting}[gobble=12]
|
||||
Switch#show ip interface brief | include channel
|
||||
Port-channel1 unassigned YES manual up up
|
||||
Switch#show interfaces etherchannel
|
||||
FastEthernet0/1:
|
||||
Port state = 1
|
||||
Channel group = 1 Mode = On Gcchange = -
|
||||
Port-channel = Po1 GC = - Pseudo port-channel = Po1
|
||||
Port index = 0 Load = 0x0 Protocol = -
|
||||
|
||||
Age of the port in the current state: 00d:00h:11m:53s
|
||||
|
||||
FastEthernet0/2:
|
||||
Port state = 1
|
||||
Channel group = 1 Mode = On Gcchange = -
|
||||
Port-channel = Po1 GC = - Pseudo port-channel = Po1
|
||||
Port index = 0 Load = 0x0 Protocol = -
|
||||
|
||||
Age of the port in the current state: 00d:00h:11m:53s
|
||||
|
||||
----
|
||||
Port-channel1:Port-channel1
|
||||
Age of the Port-channel = 00d:00h:11m:53s
|
||||
Logical slot/port = 2/1 Number of ports = 2
|
||||
GC = 0x00000000 HotStandBy port = null
|
||||
Port state =
|
||||
Protocol = 3
|
||||
Port Security = Disabled
|
||||
|
||||
Ports in the Port-channel:
|
||||
|
||||
Index Load Port EC state No of bits
|
||||
------+------+------+------------------+-----------
|
||||
0 00 Fa0/1 On 0
|
||||
0 00 Fa0/2 On 0
|
||||
Time since last port bundled: 00d:00h:11m:53s Fa0/2
|
||||
\end{lstlisting}
|
||||
|
||||
\end{enumerate}
|
||||
|
||||
\end{document}
|
102
architectures-infrastructures-entreprise/tp2/styles.sty
Normal file
|
@ -0,0 +1,102 @@
|
|||
\ProvidesPackage{styles}
|
||||
|
||||
\usepackage[
|
||||
%showframe,
|
||||
a4paper,includeheadfoot,margin=2cm,top=1cm,bottom=1cm
|
||||
]{geometry}
|
||||
|
||||
\setcounter{tocdepth}{2}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{babel}
|
||||
|
||||
\usepackage{datetime}
|
||||
|
||||
\usepackage{color}
|
||||
\usepackage{xcolor,colortbl}
|
||||
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amsfonts}
|
||||
\everymath{\displaystyle}
|
||||
\newcommand*\dif{\mathop{}\!\mathrm{d}}
|
||||
\usepackage{xfrac}
|
||||
|
||||
\usepackage{booktabs}
|
||||
\usepackage{tabularx}
|
||||
\newcolumntype{Y}{>{\centering\arraybackslash}X}
|
||||
\definecolor{Red}{rgb}{1,0.2,0.2}
|
||||
\newcolumntype{r}{>{\columncolor{Red}}Y}
|
||||
\usepackage{multicol}
|
||||
\usepackage{multirow}
|
||||
\usepackage{makecell}
|
||||
\usepackage{parskip}
|
||||
\usepackage{microtype}
|
||||
\usepackage{enumitem}
|
||||
|
||||
\usepackage{listingsutf8}
|
||||
\lstset{%
|
||||
inputencoding=utf8/latin1,
|
||||
basicstyle=\small\ttfamily,
|
||||
columns=flexible,
|
||||
breaklines=true,
|
||||
extendedchars=true,
|
||||
literate=
|
||||
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'\i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
|
||||
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
|
||||
{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`\i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
|
||||
{À}{{\`A}}1 {È}{{\`E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
|
||||
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"\i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
|
||||
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
|
||||
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^\i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
|
||||
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
|
||||
{Ã}{{\~A}}1 {ã}{{\~a}}1 {Õ}{{\~O}}1 {õ}{{\~o}}1 {œ}{{\oe}}1
|
||||
{Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1 {ű}{{\H{u}}}1
|
||||
{Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1 {ç}{{\c c}}1
|
||||
{Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
|
||||
{€}{{\euro}}1 {£}{{\pounds}}1 {«}{{\guillemotleft}}1
|
||||
{»}{{\guillemotright}}1 {ñ}{{\~n}}1 {Ñ}{{\~N}}1 {¿}{{?`}}1
|
||||
}
|
||||
\let\oldlstinputlisting\lstinputlisting
|
||||
% make \lstinputlisting always have frame
|
||||
\renewcommand{\lstinputlisting}[2][]{\oldlstinputlisting[frame=single,#1]{#2}}
|
||||
|
||||
\lstnewenvironment{console}[1][]{%
|
||||
\lstset{%
|
||||
inputencoding=utf8/latin1,
|
||||
basicstyle=\small\ttfamily\color{white},
|
||||
columns=flexible,
|
||||
breaklines=true,
|
||||
extendedchars=true,
|
||||
literate=
|
||||
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'\i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
|
||||
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
|
||||
{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`\i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
|
||||
{À}{{\`A}}1 {È}{{\`E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
|
||||
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"\i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
|
||||
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
|
||||
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^\i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
|
||||
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
|
||||
{Ã}{{\~A}}1 {ã}{{\~a}}1 {Õ}{{\~O}}1 {õ}{{\~o}}1 {œ}{{\oe}}1
|
||||
{Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1 {ű}{{\H{u}}}1
|
||||
{Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1 {ç}{{\c c}}1
|
||||
{Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
|
||||
{€}{{\euro}}1 {£}{{\pounds}}1 {«}{{\guillemotleft}}1
|
||||
{»}{{\guillemotright}}1 {ñ}{{\~n}}1 {Ñ}{{\~N}}1 {¿}{{?`}}1,
|
||||
backgroundcolor=\color{black}, #1
|
||||
}%
|
||||
}{}
|
||||
|
||||
\usepackage{graphicx}
|
||||
|
||||
\usepackage[hyphens]{url}
|
||||
\usepackage[colorlinks,hidelinks]{hyperref}
|
||||
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{shapes}
|
||||
|
||||
\usepackage{letltxmacro}
|
||||
\LetLtxMacro{\normalparagraph}{\paragraph}
|
||||
\renewcommand{\paragraph}[1]{\normalparagraph{#1}\mbox{}}
|
||||
|
||||
\sloppy
|