1 \documentclass[serif,mathserif
]{beamer
}
3 \usepackage{beamerthemesplit
}
6 \useoutertheme{default
}
18 \lstset{basicstyle=
\ttfamily,
19 showstringspaces=false,
22 % Make this a 16:9 presentation
23 %\setlength{\paperwidth}{171 mm}
24 %\setlength{\paperheight}{96 mm}
25 %\setlength{\textwidth}{151 mm}
26 %\setlength{\textheight}{86 mm}
28 % Set sans-serif font.
29 \renewcommand\sfdefault{phv
}
30 \renewcommand\familydefault{\sfdefault}
32 % Define some colours.
33 \definecolor{myred
}{rgb
}{0.53,
0.01,
0}
34 \definecolor{mygrey
}{rgb
}{0.4,
0.4,
0.4}
36 % Make a nice gradient as background.
37 \setbeamertemplate{background canvas
}[vertical shading
]
38 [bottom=black, middle=myred, top=myred
]
40 % Highlight elements in some sort of grey.
41 \setbeamercolor{structure
}{fg=mygrey
}
42 \setbeamercolor{normal text
}{bg=black, fg=white
}
44 % Use round bullets in lists.
45 \setbeamertemplate{items
}[circle
]
47 % Use bigger fonts for titles.
48 \setbeamerfont{title
}{size=
\Huge}
49 \setbeamerfont{frametitle
}{size=
\large}
50 \setbeamertemplate{frametitle
}[default
]
52 % Don't clutter the pages with useless navigations.
53 \setbeamertemplate{navigation symbols
}{}
56 \author[Timo Eissler
]{Timo Eissler
}
57 \institute{IPFire Project
}
59 % The title of the presentation.
60 \title{IPFire VLAN Support
}
61 %\subtitle{The new IPFire build system}
63 \date{September
20th,
2014}
65 \newcommand{\spacer}{\vspace{4 mm
}}
67 \newcommand{\screenshot}[1]{\centerline{%
68 \includegraphics[width=
\textwidth,transparent
]{#1}}}
74 %\frame{\tableofcontents}
76 \section{Introduction
}
78 \subsection{What are VLANs?
}
80 \frametitle{What are VLANs?
}
83 Virtual networks within your switch or your physical network.
87 \subsection{VLAN Introduction
}
90 \item VLANs work on OSI Layer
2 (Data Link Layer)
91 \item VLANs are isolated from each other
92 \item Can reside in a single switch or can be spread over
93 multiple switches in your network
94 \item Adds the
802.1Q header to the Ethernet frame
98 \frametitle{Tagged and untagged frames
}
100 \begin{block
}{Tagged frames
}
101 Tagged frames have a VLAN header in the Ethernet frame and so
102 receiving devices know to which VLAN a frame belongs to.
105 \begin{block
}{Untagged frames
}
106 Untagged frames have no VLAN header in the Ethernet frame and so
107 the receiving devices have to decide to which VLAN a frame belongs to.
108 Switches do this by using the default VLAN ID (also known as PVID),
109 which is set by the administrator of the switch for the
114 \frametitle{Access mode port
}
117 \item Used for client devices
118 \item Sends and accepts only untagged frames
119 \item Port can only be member of one VLAN
120 \item Connected devices don't need to be able to handle VLANs
124 \frametitle{Trunk mode port
}
127 \item Uses tagged and untagged frames
128 \item Untagged frames belong to default VLAN (PVID)
129 \item Port can be a untagged member of one VLAN
130 \item Port can be a tagged member of zero or more VLANs
131 \item Sends and accepts only frames which belong to a VLAN the
133 \item Connected devices need to be able to handle VLANs
137 \subsection{Why VLANs?
}
139 VLANs can be used to:
142 \item seperate and manage networks
143 \item devices can be grouped together even if they are not on the same switch
144 \item optimize performance for specific scenarios like VoIP, SAN,
\dots
145 \item minimize broadcast domains (with switches only on layer
2 (MAC))
146 \item minimize hardware costs
151 \subsection{Ok, but why VLANs on my IPFire?
}
153 There are several reasons for this:
156 \item you already have your networks seperated with VLANs and your
157 corresponding IPFire networks are not within the default VLAN (PVID)
158 \item multiple isolated networks (maybe on a single switch)
159 \item you want more networks than your IPFire has NICs
160 \item and maybe many more
\dots
164 \section{Configuration
}
166 \subsection{Overview
}
168 \frametitle{origin state
}
171 \screenshot{res/IPFire_network_without_VLANs.png
}
175 \frametitle{desired state
}
178 \screenshot{res/IPFire_network_with_VLANs.png
}
184 \item Configure VLANs on the switch
185 \item Configure VLANs on IPFire
186 \item Change IPFire network configuration
187 \item Restart network or reboot
192 \subsection{Configure VLANs on the switch
}
195 \item Port mode: Trunk
196 \item Default VLAN of port: VLAN ID
1 untagged
197 \item VLAN ID for blue network: VLAN ID
300 tagged
198 \item VLAN ID for orange network: VLAN ID
400 tagged
202 \subsection{Configure VLANs on IPFire
}
203 \begin{frame
}[fragile
]
204 \frametitle{/var/ipfire/ethernet/vlans
}
206 \begin{lstlisting
}[language=bash
]
210 BLUE_PARENT_DEV=green0
213 ORANGE_PARENT_DEV=green0
219 \subsection{Network Configuration
}
220 \begin{frame
}[fragile
]
221 \frametitle{/var/ipfire/ethernet/settings
}
223 \begin{lstlisting
}[language=bash
]
226 GREEN_MACADDR=
52:
54:
00:
67:
58:de
227 GREEN_DESCRIPTION='"virtio: virtio_net"'
228 GREEN_DRIVER=virtio_net
231 BLUE_MACADDR=
52:
54:
00:
67:
58:de
232 BLUE_DESCRIPTION='"virtio: virtio_net"'
233 BLUE_DRIVER=virtio_net
234 BLUE_ADDRESS=
192.168.100.30
235 BLUE_NETMASK=
255.255.255.0
236 BLUE_NETADDRESS=
192.168.100.0
237 BLUE_BROADCAST=
192.168.100.255
240 \begin{frame
}[fragile
]
241 \frametitle{/var/ipfire/ethernet/settings
}
243 \begin{lstlisting
}[language=bash
]
245 ORANGE_MACADDR=
52:
54:
00:
67:
58:de
246 ORANGE_DESCRIPTION='"virtio: virtio_net"'
247 ORANGE_DRIVER=virtio_net
248 ORANGE_ADDRESS=
192.168.150.30
249 ORANGE_NETMASK=
255.255.255.0
250 ORANGE_NETADDRESS=
192.168.150.0
251 ORANGE_BROADCAST=
192.168.150.255
267 \subsection{Conclusion
}
269 \frametitle{Conclusion
}
272 VLANs are an easy way to manage and improve your networks for your specific needs.
284 If you want to know more or need more information look at
286 \url{http://wiki.ipfire.org/en/optimization/vlan/start
}
290 \url{timo.eissler@ipfire.org
}