%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-01.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
    1 Basic Device Configuration
\end{center}

\section*{1.1 Configure a Switch with Initial Settings}
\begin{itemize}
    \item Switch Boot Sequence
    \begin{enumerate}
        \item POST from ROM: check CPU, DRAM, flash
        \item boot loader from ROM
        \item CPU initialization
        \item flash initialization
        \item load IOS
    \end{enumerate}
    \item \texttt{S(config)\# boot system flash:/c2960-lanbasek9-mz.150-2.SE/c2960-lanbasek9-mz.150-2.SE.bin}
    \item Switch LED Indicators
    \begin{itemize}
        \item SYST: System (Power)
        \item RPS: Redundant Power System
        \item STAT: Port Status (green = link, amber = blocked)
        \item DUPLX (green = full duplex)
        \item SPEED (green = 100 Mbps, green blinking = 1000 Mbps)
        \item PoE
    \end{itemize}
    \item Recovering from a System Crash: Mode-Button drücken
    \item Switch Management Access (SVI)
    \begin{itemize}
        \item \texttt{sdm prefer dual-ipv4-and-ipv6 default}
        \item \texttt{no ip domain-lookup}
        \item \texttt{hostname}
        \item \texttt{service password-encryption}
        \item \texttt{enable secret}
        \item \texttt{banner motd}
        \item vlan 99: \texttt{ip address, ipv6 address, ip default-gateway}
        \item line con 0 \texttt{logging synchronous}
        \item line vty 0 15 \texttt{password, login}
        \item \texttt{copy running-config startup-config}
        \item \texttt{show ip interface ...}
        \item \texttt{show ip interface brief}
        \item \texttt{show ipv6 interface brief}
        \item \texttt{show mac address-table}
        \item \texttt{show mac-address-table}
        \item \texttt{clear mac address-table dynamic}
        \item \texttt{mac address-table static ...}
        \item \texttt{show sdm prefer}
        \item \texttt{show interface f0/6}
        \item \texttt{show interface vlan 99}
        \item \texttt{show flash:}
        \item \texttt{dir flash:}
        \item \texttt{show vlan brief}
        \item \texttt{show run}
        \item \texttt{delete vlan.dat}
        \item \texttt{erase startup-config}
        \item \texttt{reload}
    \end{itemize}
\end{itemize}

\section*{1.2 Configure Switch Ports}
\begin{itemize}
    \item \texttt{duplex full}
    \item \texttt{speed 100}
    \item \texttt{show controllers ethernet-controller ...}
    \item \texttt{show history}
    \item \texttt{show controllers ethernet-controller ...}
    \item \texttt{show interfaces}
    \item Interface Input Errors
    \begin{itemize}
        \item Runt Frames (kleiner 64 Byte)
        \item Giants
        \item CRC errors        
    \end{itemize}
    \item Interface Output Errors
    \begin{itemize}
        \item Collisions
        \item Late collisions (größer als 64 Byte = 512 bit) (lange Kabel, Duplex-Fehler)
    \end{itemize}
\end{itemize}

\section*{1.3 Secure Remote Access}
\begin{verbatim}
SWITCH(config)# ip domain-name cisco.com
SWITCH(config)# crypto key generate rsa
SWITCH(config)# username admin secret ccna
SWITCH(config)# line vty 0 15
SWITCH(config-line)# transport input ssh
SWITCH(config-line)# login local
SWITCH(config)# ip ssh version 2

SWITCH# show ip ssh
\end{verbatim}

\section*{1.4 Basic Router Configuration}
\subsection*{Configure Basic Router Settings}
\begin{verbatim}
Router(config)# hostname R1
R1(config)# enable secret class
R1(config)# line console 0
R1(config-line)# password cisco
R1(config-line)# login
R1(config-line)# exit
R1(config)# line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login
R1(config-line)# exit
R1(config)# service password-encryption
R1(config)# banner motd #Authorized Access Only!#
R1# copy running-config startup-config
\end{verbatim}

\subsection*{Dual Stack Topology}
\subsection*{Configure Router Interfaces}
\begin{verbatim}
R1(config)# interface gigabitethernet 0/0/0
R1(config-if)# ip address 192.168.10.1 255.255.255.0 
R1(config-if)# ipv6 address 2001:db8:acad:1::1/64 
R1(config-if)# description Link to LAN 1
R1(config-if)# no shutdown
\end{verbatim}

\subsection*{IPv4 Loopback Interfaces}
\begin{verbatim}
R(config)# interface loopback 0 
R(config-if)# ip address 10.0.0.1 255.255.255.0
\end{verbatim}

\section*{1.5 Verify Directly Connected Networks}
\begin{verbatim}
R# show ip interface brief
R# show ipv6 interface brief
R# show ipv6 interface gigabitethernet 0/0/0
R# show running-config interface gigabitethernet 0/0/0
R# show ip route
R# show ipv6 route
R# ping 2001:db8:acad:1::10
\end{verbatim}

\subsection*{Filter Show Command Output}
\begin{verbatim}
R# show running-config | section line vty
R# show ip interface brief | include up
R# show ip interface brief | exclude unassigned
R# show ip route | begin Gateway
\end{verbatim}

\subsection*{Command History }
\begin{verbatim}
R# terminal history size 200
R# show history
\end{verbatim}


\end{document}
