mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-11-14 18:49:38 +00:00
51 lines
1.4 KiB
TeX
51 lines
1.4 KiB
TeX
\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,
|
|
\item switch virtual interfaces\footnote{\texttt{Switches interface -> Vlan interfaces}},
|
|
\item routed ports\footnote{\texttt{Routed interface -> Subinterfaces}},
|
|
\item bridge virtual interface\footnote{\texttt{L3 bridging interface}}
|
|
\end{enumerate}
|
|
\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}
|
|
|
|
\pagebreak
|
|
|
|
\subsection{Interface configs}
|
|
|
|
\subsubsection{Routed interfaces}
|
|
|
|
\begin{txt}
|
|
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
|
|
\end{txt}
|
|
|
|
\subsubsection{Switches interfaces}
|
|
|
|
\begin{txt}
|
|
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
|
|
\end{txt} |