%Teilweise Erzeugt mit dem LaTeX-Generator: http://latex.sehnot.de

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

% Schriftarten für fettes Monospace
%\usepackage[T1]{fontenc}
%\usepackage{lmodern}

%Kopfzeile
\ihead{Cisco}
\chead{}
\ohead{http://kohnlehome.de/netz/routerkonfiguration-dhcp.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
Cisco-Router als DHCP-Server
\end{center}

\section*{DHCPv4}
\subsection*{Router als DHCPv4-Server}
\begin{tabular}{l l}
\texttt{Router(config)\# ip dhcp pool POOLNAME}  & es können mehrere Pools erstellt werden\\
\texttt{Router(dhcp-config)\# network 192.168.1.0 255.255.255.0}  & \\
\texttt{Router(dhcp-config)\# default-router 192.168.1.254}  & Gateway\\
\texttt{Router(dhcp-config)\# dns-server 8.8.8.8}  & \\
\texttt{Router(dhcp-config)\# domain-name kohnlehome.de}  & \\\\
\texttt{Router(config)\# ip dhcp excluded-address 192.168.1.100}  & einzelne Adresse nicht vergeben
\end{tabular}

\subsection*{DHCPv4-Server deaktivieren}
\begin{tabular}{l}
\texttt{Router(config)\# no service dhcp}
\end{tabular}

\subsection*{Diagnose}
\begin{tabular}{l l}
\texttt{Router\# show ip dhcp binding}  & zeigt Leases\\
\texttt{Router\# show ip dhcp pool}  & zeigt Einstellungen
\end{tabular}

\subsection*{DHCPv4-Relay-Agent}
\begin{tabular}{l l}
\texttt{Router(config-if)\# ip helper-address 1.2.3.4}  & UDP-Broadcasts werden an 1.2.3.4 weitergeleitet
\end{tabular}

\subsubsection*{Weitergeleitete UDP-Ports}
\begin{tabular}{r l}
37 & Time\\
49 & TACACS\\
53 & DNS\\
67 & DHCP server\\
68 & DHCP client\\
69 & TFTP\\
137 & NetBIOS name service\\
138 & NetBIOS datagram service
\end{tabular}

\subsection*{DHCPv4-Client}
\begin{tabular}{l l}
\texttt{Router(config-if)\# ip address dhcp}  & 
\end{tabular}

\newpage

\section*{DHCPv6}
\subsection*{SLAAC (Stateless Address Autoconfiguration)}
\begin{tabular}{l l}
\texttt{Router(config)\# ipv6 unicast-routing}  & Router sendet RAs (Router Advertisements)\\\\
\texttt{Router(config-if)\# no ipv6 nd managed-config-flag}  & M-Flag deaktivieren (Default)\\
\texttt{Router(config-if)\# no ipv6 nd other-config-flag}  & O-Flag deaktivieren (Default)
\end{tabular}

\subsection*{Stateless DHCPv6 Option (Router Advertisement and DHCPv6)}
\begin{tabular}{l l}
\texttt{Router(config)\# ipv6 unicast-routing}  & Router sendet RAs (Router Advertisements)\\\\
\texttt{Router(config-if)\# ipv6 nd other-config-flag}  & O-Flag aktivieren
\end{tabular}

\subsection*{Stateful DHCPv6 (DHCPv6 only)}
\begin{tabular}{l l}
\texttt{Router(config)\# ipv6 unicast-routing}  & Router sendet RAs (Router Advertisements)\\\\
\texttt{Router(config-if)\# ipv6 nd managed-config-flag}  & M-Flag aktivieren\\
\end{tabular}

\subsection*{Router als Stateless DHCPv6-Server}
\begin{tabular}{l l}
\texttt{Router(config)\# ipv6 dhcp pool POOLNAME}  & \\
\texttt{Router(config-dhcpv6)\# dns-server 2001:4860:4860::8888}  & \\
\texttt{Router(config-dhcpv6)\# domain-name kohnlehome.de}  & \\\\
\texttt{Router(config-if)\# ipv6 dhcp server POOLNAME}  & \\
\texttt{Router(config-if)\# ipv6 nd other-config-flag}  & \\\\
\end{tabular}

\subsection*{Router als DHCPv6-Relay-Agent}
\begin{tabular}{l l}
\texttt{Router(config-if)\# ipv6 dhcp relay destination 2001::1 G0/0/0}  & DHCPv6-Server hängt an G0/0/0
\end{tabular}

\subsection*{Router als Stateless DHCPv6-Client}
\begin{tabular}{l l}
\texttt{Router(config-if)\# ipv6 enable}  & \\
\texttt{Router(config-if)\# ipv6 address autoconfig}  & 
\end{tabular}

\subsection*{Diagnose}
\begin{tabular}{l l}
\texttt{Router\# show ipv6 dhcp binding}  & \\
\texttt{Router\# show ipv6 dhcp pool}  & \\
\texttt{Router\# show ipv6 interface g0/1}  & \\
\texttt{Router\# debug ipv6 dhcp detail}  & 
\end{tabular}

\end{document}
