%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}

%Quellcode-Listings
\usepackage{listings}

%Hyperlinks
\usepackage{hyperref}

% \text{}
\usepackage{amsmath}

%multi-row
\usepackage{multirow}

\usepackage{array}

%Kopfzeile
\ihead{CCNA v7.2: ITN (Introduction to Networks)}
\chead{}
\ohead{kohnlehome.de/cisco/CCNA-1-10.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
    10 Basic Router Configuration
\end{center}

\section*{10.1 Configure Initial Router Settings}
\subsection*{Device name}
\begin{verbatim}
Router(config)# hostname HOSTNAME
\end{verbatim}

\subsection*{Secure privileged EXEC mode}
\begin{verbatim}
Router(config)# enable secret PASSWORD
\end{verbatim}

\subsection*{ Secure user EXEC mode}
\begin{verbatim}
Router(config)# line console 0
Router(config-line)# password PASSWORD
Router(config-line)# login
\end{verbatim}

\subsection*{Secure remote Telnet / SSH access}
\subsubsection*{Telnet}
\begin{verbatim}
Router(config)# line vty 0 15
Router(config-line)# password PASSWORD
Router(config-line)# login
Router(config-line)# transport input telnet
\end{verbatim}

\subsubsection*{SSH}
\begin{verbatim}
Router(config)# hostname R

R(config)# ip domain-name kohnlehome.de

R(config)# crypto key generate rsa
How many bits in the modulus [512]: 1024

R(config)# username BENUTZER secret GEHEIM

R(config)# line vty 0 15
R(config-line)# login local
R(config-line)# transport input ssh

R(config)# ip ssh version 2
\end{verbatim}
    

\subsection*{Secure all passwords in the config file}
\begin{verbatim}
Router(config)# service password-encryption
\end{verbatim}

\subsection*{Provide legal notification}
\begin{verbatim}
Router(config)# banner motd # MESSAGE #
\end{verbatim}

\subsection*{Save the configuration}
\begin{verbatim}
Router# copy running-config startup-config
\end{verbatim}



\section*{10.2 Configure Interfaces}
\subsection*{Configure Router Interfaces}
\begin{verbatim}
Router(config)# interface G0/0/0
Router(config-if)# description TEXT
Router(config-if)# ip address 192.168.0.1 255.255.255.0
Router(config-if)# ipv6 address 2001:db8:cafe:10::1/64
Router(config-if)# no shutdown
\end{verbatim}

\subsection*{Verify Interface Configuration}
\begin{verbatim}
Router# show ip interface brief
Router# show ipv6 interface brief
Router# show ip route
Router# show ipv6 route
Router# show ip interface
Router# show ipv6 interface
\end{verbatim}



\section*{10.3 Configure the Default Gateway}
\subsection*{Default Gateway on Host and Server}

\subsection*{Default Gateway on a Switch}
\begin{verbatim}
Switch(config)# interface vlan 1
Switch(config-if)# ip address 192.168.10.2 255.255.255.0
Switch(config-if)# no shutdown
Switch(config)# ip default-gateway 192.168.10.1
\end{verbatim}

\end{document}
