\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Muna} \pdfinfo{ /Title (vlan.pdf) /Creator (Cheatography) /Author (Muna) /Subject (VLAN Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{60CCBE} \definecolor{LightBackground}{HTML}{EBF8F6} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{VLAN Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Muna} via \textcolor{DarkBackground}{\uline{cheatography.com/126519/cs/24516/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Muna \\ \uline{cheatography.com/muna} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 28th September, 2020.\\ Updated 29th September, 2020.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{What is a VLAN}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{VLAN} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{= Virtual Lan} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{= Broadcast Domain} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{= Logical Network subnet} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Addresses: \newline - Segmentation \newline - Security \newline - Network Flexibility} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.77809 cm} x{1.00694 cm} x{2.79197 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{VLAN ranges on cisco Catalyst switches}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{VLANs}} & {\bf{Range Type}} & {\bf{Usage}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 0. 4095 & \seqsplit{Reserved} & - For system use only. \{\{nl\}\} - Cannot use these VLANs. \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} 1 & Normal & - Cisco default VLAN on a switch. \{\{nl\}\} - Can be used this VLAN. \{\{nl\}\} - Cannot delete it. \{\{nl\}\} -All interfaces belong to this VLAN by default. \tn % Row Count 12 (+ 7) % Row 3 \SetRowColor{white} 2 -1001 & Normal & Used for Ethernet VLANs \tn % Row Count 14 (+ 2) % Row 4 \SetRowColor{LightBackground} 1002 - 1005 & Normal & For Legacy reasons: \{\{nl\}\} - are used for Token Ring and Fiber Distributed Data Interface (FDDI) VLANs. \{\{nl\}\} - Cannot delete VLANs 1002 - 1005 \{\{nl\}\} - stored in vlan.dat in flash memory and in running config if switch in transparent mode \tn % Row Count 25 (+ 11) % Row 5 \SetRowColor{white} 1006 - 4094 & \seqsplit{Extended} & Used for Ethernet VLANs \{\{nl\}\} - Switch needs to be in transparent mode when creating extended VLANs \{\{nl\}\} {\bf{important}} in VTP version 3 extended-range vlans are stored in VLAN database and can be propagated by VTP. + supports VLANs creation and and modification in server and transparent modes \tn % Row Count 38 (+ 13) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{IMPORTANT}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{If a VLAN is deleted, then the port associated to the vlan becomes inactive.} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Port becomes inactive if it is associate to a non-created VLAN} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{The olde version of 802.1q(common encapsulation method todya) is ISL} \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Native VLAN is used for backward compatibility, where untagged traffic is common} \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{VLAN 1 is the management VLAN (cannot be changed) ==\textgreater{} messages like cdp, stp, lldp are going to be carried over vlan 1.} \tn % Row Count 11 (+ 3) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{If on the connected switches there is a different native vlan, cdp will tell us there is a vlan mismatch} \tn % Row Count 14 (+ 3) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Maximum number of VLANs might vary from one switch to the other depending on VTP, HSRP} \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{TO TRY \newline TRY also to delete a vlan \newline \newline try creating a trunk link with != native vans of the ends and check cdp} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{LAN}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{A group of devices that share a common broadcast domain} \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{VTP : VLAN Trunking Protocol}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Cisco proprietary Layer 2 messaging protocol. \{\{nl\}\} Maintains VLAN configuration consistency (Manages VLAN addition, deletion, and renaming). \{\{nl\}\} \{\{nl\}\} Modes: \{\{nl\}\} - Client \{\{nl\}\} - Server \{\{nl\}\} - Client} \tn % Row Count 5 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Voice VLAN}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/muna_1601328014_voice vlan.PNG}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Phone traffic between ip phone and switch is tagged (tag 3) \newline COS can be applied on Voice traffic \newline \newline User traffic from the PC is not tagged} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Ethernet header + 802.1q tag}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/muna_1601333010_802.1q tag.PNG}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Ether type (16 bits) : {\bf{ 0x8100}} to identify the frame as 802.1q tagged grame \newline Priority (3 bits): for QoS ==\textgreater{} priority level for traffic prioritiztion \newline CFI (1 bit): Canonical Format identifier: enables token ring frames to be carried accross ethernet links \newline VLAN ID (12 bits)} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{VTP - VLAN trunking protocol}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{- Cisco proprietary protocol \{\{nl\}\}- Exchange VLAN information \{\{nl\}\}- Synchronize vlan information (VLAN ID and name) with switches inside the same VTP domain} \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{VTP Client mode}} can't exchange vlan configuration(cannot create or delete) \{\{nl\}\} Receives VTP updates(processes them) and forwards them} \tn % Row Count 7 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{VTP server mode}} can create and delete VLANs. \{\{nl\}\} Propagates VLAN changes. \{\{nl\}\} Default mode for Cisco switches} \tn % Row Count 10 (+ 3) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{VTP transparent mode}} does not share its VLAN database \{\{nl\}\} Forwards received VTP advertisements \{\{nl\}\} Creates and deletes VLANs on a VTP transporant switch.} \tn % Row Count 14 (+ 4) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{VTP mode off}} similar to VTP transparent mode but does not forward received updates \{\{nl\}\} suported only in VTPv3} \tn % Row Count 17 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{DTP - Dynamic Trunking Protocol}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Used by cisco switches to automatically negotiate whether an interface used between two switches should be put in access or trunk mode.} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Dynamic Auto}} forms a trunk only if it receives DTP messages \{\{nl\}\} - Do not negotiate \{\{nl\}\} - Only listens} \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Dynamic Desirable}} will negociate the mode automatically and dynamically tries to to convert the link to trunk \{\{nl\}\} - Generates DTP messages \{\{nl\}\} - Listens for incoming DTP messages} \tn % Row Count 10 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.70043 cm} x{1.3731 cm} p{0.50347 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{DTP - Port combination}} \tn % Row 0 \SetRowColor{LightBackground} Dynamic auto & Dynamic auto & \seqsplit{access} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Dynamic auto & Dynamic desirable & trunk \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} Dynamic desirable & Dynamic desirable & trunk \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} Dynamic auto or Dynamic desirable & trunk & trunk \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} Dynamic auto or Dynamic desirable & access & \seqsplit{access} \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{5.377cm}}{TO BE CHECKED} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Change native VLAN and tag it}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{SW1\# configure terminal \newline SW1(config)\# interface Ethernet0/0 \newline SW1(config-if)\# switchport mode trunk \newline SW1(config-if)\# switchport trunk native vlan 90 \newline SW1(config-if)\# switchport trunk native vlan tag} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{`SW1(config-if)\# switchport trunk native vlan tag` \newline does it really exist?} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verify trunk port -2-}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{SwitchX\# show interfaces status \newline Port Name Status Vlan Duplex Speed Type \newline Et0/0 connected trunk auto auto unknown \newline Et0/1 connected 2 auto auto unknown \newline Et0/2 connected 1 auto auto unknown \newline Et0/3 connected 1 auto auto unknown} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Tell what port is trunking, and if port is access what vlan is associated} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verify trunk port -1-}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Switch\# show interfaces trunk \newline Port Mode Encapsulation Status Native vlan \newline Et0/0 on 802.1q trunking 99 \newline Port Vlans allowed on trunk \newline Et0/0 10,20,30,99 \newline Port Vlans allowed and active in management domain \newline Et0/0 10,20,30,99 \newline \textless{}... output omitted ...\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{mode on : we as administratives turned it on \newline dynamic desirable or auto : means it has been enabled with DTP: automatically formed a trunk \newline \newline we can see the encapsulation type (802.1q) \newline \newline we can see the native vlan on the far right \newline \newline + allowed vlans} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verify a trunk port}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{SwitchX\# show interfaces Ethernet0/0 switchport \newline Name: Et0/0 \newline Switchport: Enabled \newline Administrative Mode: trunk \newline Operational Mode: trunk \newline Administrative Trunking Encapsulation: dot1q \newline Operational Trunking Encapsulation: dot1q \newline Negotiation of Trunking: On \newline Access Mode VLAN: 1 (default) \newline Trunking Native Mode VLAN: 99 (VLAN0099) \newline Administrative Native VLAN tagging: enabled \newline Voice VLAN: none \newline \textless{}... output omitted ...\textgreater{} \newline Trunking VLANs Enabled: 10,20,30,99 \newline \textless{}... output omitted ...\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{verify that operational mode is trunk \newline \newline that the native vlan is 99 \newline and also check the neabled vlans} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Configure an 802.1q trunk}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{S1\# conf t \newline S1(config)\# interface e 0/0 \newline S1(config-if)\# switchport mode trunk \newline S1(config-if)\# switchport trunk native vlan 99 \newline S1(config-if)\# switchport trunk allowed vlan 10, 20, 30} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Pour ajouter un nouveau allowed vlan il faut reecrire la ligne \newline `S1(config-if)\# switchport trunk allowed vlan 10, 20, 30, 100` \newline if : \newline `S1(config-if)\# switchport trunk allowed vlan 100` \newline It will just overwrite the other items that were listed} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verifying VLANs -4- inactive VLAN}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Switch\# show interfaces Ethernet0/1 switchport \newline Name: Et0/1 \newline Switchport: Enabled \newline Administrative Mode: static access \newline Operational Mode: static access \newline Administrative Trunking Encapsulation: dot1q \newline Operational Trunking Encapsulation: native \newline Negotiation of Trunking: Off \newline Access Mode VLAN: 10 (Inactive) \newline Trunking Native Mode VLAN: 1 (default) \newline Administrative Native VLAN tagging: enabled \newline Voice VLAN: none} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Access Mode VLAN: 10 (Inactive)}} \newline ==\textgreater{} VLAN not yet created or VLAN has been deleted} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verifying VLANs -4-}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Switch\# show mac address-table \newline Mac Address Table \newline -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}- \newline \newline Vlan Mac Address Type Ports \newline -{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}-{}-- -{}-{}-{}-{}-{}-{}-- -{}-{}-{}-- \newline 1 aabb.cc00.2f00 DYNAMIC Fa0/0 \newline 1 aabb.cc00.3100 DYNAMIC Fa0/1 \newline 2 aabb.cc00.3000 DYNAMIC Fa0/2} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Default MAC table aging time is 300 seconds}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verifying VLANs -3-}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{SW1\# show vlan brief \newline VLAN Name Status Ports \newline -{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-- -{}-{}-{}-{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}- \newline 1 default active Fa0/1, Fa0/3, Fa0/4, Fa0/5, Fa0/6, Fa0/7 \newline 2 data active Fa0/2 \newline 3 telephony active Fa0/2 \newline 1002 fddi-default act/unsup \newline 1003 token-ring-default act/unsup \newline 1004 fddinet-default act/unsup \newline 1005 trnet-default act/unsup} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Displays one line per vlan} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verifying VLANs -2-}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{SW1\# show vlan id 2 \newline \newline VLAN Name Status Ports \newline -{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-- -{}-{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}- \newline 2 data active Fa0/2 \newline \newline VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 \newline -{}-{}-{}- -{}-{}-{}- -{}-{}-{}-{}-{}-{}- -{}-{}-{}-- -{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}-{}-- -{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}- \newline 2 enet 100002 1500 - - - - - 0 0 \newline \newline \textless{}... output omitted ...\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Display information about a particular VLAN} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verifying VLANs - 1}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{SW1\# show vlan \newline \newline VLAN Name Status Ports \newline -{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-- -{}-{}-{}-{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}- \newline 1 default active Fa0/1, Fa0/3, Fa0/4, Fa0/5, Fa0/6, Fa0/7 \newline 2 data active Fa0/2 \newline 3 telephony active Fa0/2 \newline 1002 fddi-default act/unsup \newline 1003 token-ring-default act/unsup \newline 1004 fddinet-default act/unsup \newline 1005 trnet-default act/unsup \newline \newline VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 \newline -{}-{}-{}- -{}-{}-{}-- -{}-{}-{}-{}-{}-{}-{}-{}-{}- -{}-{}-{}-- -{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}-{}-- -{}-{}-{}- -{}-{}-{}-{}-{}-{}-- -{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}- \newline 1 enet 100001 1500 - - - - - 0 0 \newline 2 enet 100002 1500 - - - - - 0 0 \newline 3 enet 100003 1500 - - - - - 0 0 \newline 1002 fddi 101002 1500 - - - - - 0 0 \newline 1003 tr 101003 1500 - - - - - 0 0 \newline 1004 fdnet 101004 1500 - - - ieee - 0 0 \newline 1005 trnet 101005 1500 - - - ibm - 0 0 \newline \newline Remote SPAN VLANs \newline -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}- \newline \newline \newline Primary Secondary Type Ports \newline -{}-{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-- -{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-{}-} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{VLAN 2 and VLAN 3 are created on the switch. Both are active and are assigned to fast ethernet 0/2} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Verifying VLANs}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{SW1\# show interfaces FastEthernet0/2 switchport \newline Name: Fa0/2 \newline Switchport: Enabled \newline Administrative Mode: dynamic desirable \newline Operational Mode: static access \newline Administrative Trunking Encapsulation: negotiate \newline Operational Trunking Encapsulation: native \newline Negotiation of Trunking: On \newline Access Mode VLAN: 2 (data) \newline Trunking Native Mode VLAN: 1 (default) \newline Administrative Native VLAN tagging: enabled \newline Voice VLAN: 3 (telephony) \newline \textless{}... output omitted ...\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Create Voice VLAN}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{S1\# conf t \newline S1(config)\# vlan 3 \newline S1(config-vlan)\# name telephony \newline \newline S1(config-vlan)\# exit \newline S1(config)\# interface f 0/2 \newline S1(config-if)\# switchport mode access \newline S1(config-if)\# switchport voice vlan 3} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Create Data vlan}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{S1\# conf t \newline S1(config)\# interface f 0/3 \newline S1(config-if)\# switchport mode access \newline S1(config-if)\# switchport access vlan 2} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Create a VLAN}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{S1\# conf t \newline S1(config)\# vlan 2 \newline S1(config-vlan)\# name Sales} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{If the vlan name was not entered, the default vlan name would be `VLAN004`} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Configurations and show commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}