1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-11-26 19:27:57 +00:00
NetworkLabNotes/chapter/l2tol3.tex

96 lines
3.2 KiB
TeX
Raw Normal View History

2017-06-01 18:41:55 +00:00
\chapter{L2 to L3}
2017-05-31 14:35:58 +00:00
\section{Vlan-to-vlan routing}
\myquote{}{Guidance and Understanding of the art of Layer 3 networks. Routing between different slash 24\tsq{s}.\\ \textit{Aka. Inter-vlan routing.}}
There are different ways to go \tsq{bout} Inter-vlan routing and doing it.
\begin{itemize}
\item \textbf{Some are using:}
\begin{enumerate}
\item external router,
2017-05-31 19:28:45 +00:00
\item switch virtual interfaces\footnote{\texttt{Switches interface -> Vlan interfaces}},
2017-05-31 20:31:14 +00:00
\item routed ports\footnote{\texttt{Routed interface -> Subinterfaces}},
\item bridge virtual interface\footnote{\texttt{L3 bridging interface}}
2017-05-31 14:35:58 +00:00
\end{enumerate}
2017-05-31 19:28:45 +00:00
\item \textbf{Ways to do it:}
\begin{enumerate}
\item router-on-a-stick if the network is running collapsed core or not have a distribution switch in the middle.
\item (...)
\end{enumerate}
\end{itemize}
2017-05-31 20:31:14 +00:00
\pagebreak
\subsection{Interface configs}
\subsubsection{Routed interfaces}
\begin{txt}
2017-06-01 18:41:55 +00:00
interface GigabitEthernet 0/1.10
encapsulation dot1q 10
ip address 192.168.0.1 255.255.255.128
!
interface GigabitEthernet 0/1.20
encapsulation dot1q 20
ip address 192.168.0.129 255.255.255.128
2017-05-31 20:31:14 +00:00
\end{txt}
\subsubsection{Switches interfaces}
\begin{txt}
2017-06-01 18:41:55 +00:00
Vlan10
name VLAN10
Vlan20
name VLAN20
!
interface Vlan10
ip address 192.168.1.1 255.255.255.128
interface Vlan20
ip address 192.168.1.129 255.255.255.128
!
interface GigabitEthernet 0/2
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 10,20
2017-06-01 07:27:18 +00:00
\end{txt}
\pagebreak
\fig{network/routeronastick}{routeronastick}{\bsq{Router on a Stick} concept.}
\pagebreak
\subsection{? Troubleshooting ?}
\begin{enumerate}
\item \textbf{Missing VLAN:}
\begin{itemize}
\item VLAN might not be defined across all the switches.
\item VLAN might not be enabled on the trunk ports.
\item Ports might not be in the right VLANs.
\end{itemize}
\item \textbf{Layer 3 interface misconfiguration:}
\begin{itemize}
\item Virtual interface might have the wrong IP address or subnet mask.
\item Virtual interface might not be up.
\item Virtual interface number might not match with the VLAN number.
\item Routing has to be enabled to route frames between VLAN.
\item Routing might not be enabled.
\end{itemize}
\item \textbf{Routing protocol misconfiguration:}
\begin{itemize}
\item Eyery interface or network needs to be added in the routing protocol.
\item The new interface might not be added to the routing protocol.
\item Routing protocol configuration is needed only if VLAN subnets need to communicate to the other routers, as previously
mentioned in this chapter.
\end{itemize}
\item \textbf{Host misconfiguration:}
\begin{itemize}
\item Host might not have the right IP address or subnet mask.
\item Each host has to have the default gateway that is the SVI or Layer 3 interface to communicate with other networks and VLAN.
\item Host might not be configured with the default gateway.
\end{itemize}
2017-06-01 18:41:55 +00:00
\end{enumerate}