%Schriftgröße, Layout, Papierformat, Art des Dokumentes
\documentclass[10pt,oneside,a4paper]{scrartcl}

%Einstellungen der Seitenränder
\usepackage[left=2cm,right=2cm,top=1.5cm,bottom=1.5cm,includeheadfoot]{geometry}

%neue Rechtschreibung
\usepackage[ngerman]{babel}

%Umlaute ermöglichen
\usepackage[utf8]{inputenc}

%Gesamtseitenzahl
\usepackage{lastpage}

% Kopf- und Fußzeile
% \usepackage[automark]{scrpage2} deprecated
\usepackage[automark]{scrlayer-scrpage}

%Quellcode-Listings
\usepackage{listings}

%Hyperlinks
\usepackage{hyperref}

% \text{}
\usepackage{amsmath}

%multi-row
\usepackage{multirow}

\usepackage{array}

%Kopfzeile
\ihead{CCNA v7.02: SRW (Switching, Routing, and Wireless Essentials)}
\chead{}
\ohead{kohnlehome.de/cisco/CCNA-2-03.pdf}
\setheadsepline{0.5pt}

%Fußzeile
\setfootsepline{0.5pt}
\ifoot{Franz Kohnle}
\cfoot{Seite \thepage\ von  \pageref{LastPage}}
\ofoot{\today}

\pagestyle{scrheadings}

\begin{document}

% Überschrift 
\begin{center}
    \LARGE % Schriftgröße
    \bfseries % Fettdruck
    \sffamily % Serifenlose Schrift
    3 VLANs
\end{center}

\section*{3.1 Overview of VLANs}
\begin{itemize}
    \item benefits
    \begin{itemize}
        \item Smaller broadcast domains
        \item Improved security
        \item Improved IT efficiency
        \item Reduced cost
        \item Better performance
        \item Simpler project and application management        
    \end{itemize}
    \item Types of VLANs
    \begin{itemize}
        \item Default VLAN
        \item Data VLAN
        \item Native VLAN
        \item Management VLAN
        \item Voice VLAN
    \end{itemize}
\end{itemize}

\section*{3.2 VLANs in a Multi-Switched Environment}
\begin{itemize}
    \item VLAN tag
    \begin{itemize}
        \item Type: 0x8100
        \item User Priority: 3 bit
        \item Canonical Format Identifier (CFI): 1 bit (Token Ring)
        \item VLAN ID: 12 bit (0-4095)
    \end{itemize}
    \item Native VLAN, 802.1Q tagging $\rightarrow$ VLAN 1
    \item Voice VLAN tagging for QoS
\end{itemize}

\section*{3.3 VLAN Configuration}
\begin{itemize}
    \item VLAN Ranges
    \begin{itemize}
        \item Normal Range VLANs 1-1001, vlan.dat, VTP
        \item legacy (Token ring, FDDI): 1002-1005
        \item Extende Range 1006-4094, running-config, VTP nur transparent mode
    \end{itemize}
\end{itemize}

\subsection*{VLAN Creation}
\begin{verbatim}
S(config)# vlan 20
S(config-vlan)# name beispiel
\end{verbatim}

\subsection*{VLAN Port Assignment}
\begin{verbatim}
S(config)# int fa0/1
S(config-if)# switchport mode access
S(config-if)# switchport access vlan 20
\end{verbatim}

\subsection*{Data and Voice}
\begin{verbatim}
S(config)# vlan 20
S(config-vlan)# name student
S(config-vlan)# vlan 50
S(config-vlan)# name Voice

S(config-if)# switchport mode access
S(config-if)# switchport access vlan 20
S(config-if)# mls qos trust cos
S(config-if)# sswitchport voice vlan 150
\end{verbatim}

\subsection*{Verify VLAN Information}
\begin{verbatim}
S# show vlan brief
S# show vlan id 20
S# show vlan name student
S# show vlan summary
S# show interfaces fa0/18 switchport
\end{verbatim}

\subsection*{Delete vlan}
\begin{verbatim}
S(config)# no vlan 20
\end{verbatim}

\section*{3.4 VLAN Trunks}
\subsection*{Data and Voice}
\begin{verbatim}
S(config-if)# switchport mode trunk
S(config-if)# switchport trunk native vlan 99
S(config-if)# switchport trunk allowed vlan 10,20,30,99
\end{verbatim}

\section*{3.5 Dynamic Trunking Protocol}
siehe \href{https://kohnlehome.de/cisco/dtp.pdf}{kohnlehome.de/cisco/dtp.pdf}
\end{document}
