1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-12-17 20:37:55 +00:00
NetworkLabNotes/chapter/section/dhcp.tex

43 lines
1.7 KiB
TeX
Raw Normal View History

\section{DHCP Process}
2017-06-01 07:58:07 +00:00
\fig{dhcp/dhcpdiscoverprocess}{dhcpdiscoverprocess}{DHCP Discover Process}
\subsection{DHCP Messages}
\begin{itemize}
\item \textbf{DHCPDECLINE:} Message sent from the client to the server that the address is already in use.
\item \textbf{DHCPNAK:} The server sends a refusal to the client for request for configuration.
\item \textbf{DHCPRELEASE:} Client tells a server that it is giving up a lease.
2017-06-01 14:19:58 +00:00
\item \textbf{DHCPINFORM:} A client already has an \acrshort{ip} address but is requesting other configuration parameters that the \acrshort{dhcp} server is configured to deliver such as \acrshort{dns} address.
2017-06-01 07:58:07 +00:00
\end{itemize}
\section{DHCP Options}
\begin{itemize}
\item \textbf{43} Vendor-encapsulated option that enables vendors to have their own list of options on the server.
2017-06-01 14:19:58 +00:00
\item \textbf{69} \acrshort{smtp} server, if you want to specify available \acrshort{smtp} servers to the client.
\item \textbf{70} \acrshort{pop3} server, if you want to specify available \acrshort{pop3} servers to the client.
\item \textbf{150} \acrshort{tftp} server that enables your phones to access a list of \acrshort{tftp} servers.
\end{itemize}
\section{DHCP Example Configuration}
2017-06-01 07:58:07 +00:00
\subsection{Cisco}
\begin{txt}
ip dhcp excluded-address 192.168.0.254
!
ip dhcp pool LAN-1-POOL-DHCP
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
lease 2 ! set in days
\end{txt}
When configuring a Layer 3 interface as a relay port for DHCP request for a subnet. Set the ip helper command on the interface with one \textit{or} more ip addresses.
\begin{txt}
interface GigabitEthernet 0/3
ip helper-address 192.168.220.220
ip helper-address 192.168.222.222
\end{txt}