Catalyst 2960 and 3560 Series Static VLANS VLAN Trunking.docx
- 文档编号:3798112
- 上传时间:2022-11-25
- 格式:DOCX
- 页数:27
- 大小:219.38KB
Catalyst 2960 and 3560 Series Static VLANS VLAN Trunking.docx
《Catalyst 2960 and 3560 Series Static VLANS VLAN Trunking.docx》由会员分享,可在线阅读,更多相关《Catalyst 2960 and 3560 Series Static VLANS VLAN Trunking.docx(27页珍藏版)》请在冰豆网上搜索。
Catalyst2960and3560SeriesStaticVLANSVLANTrunking
Lab2-1Catalyst2960and3560SeriesStaticVLANS,VLANTrunking,
andVTPDomainandModes
Objective
SetupaVTPdomain,createandmaintainVLANs,anduseInter-SwitchLink
(ISL)and802.1QtrunkingonCiscoCatalyst2960and3560seriesEthernet
switchesusingcommand-lineinterface(CLI)mode.
Scenario
VLANsmustlogicallysegmentanetworkbyfunction,team,orapplication,
regardlessofthephysicallocationoftheusers.AllendstationsinaparticularIP
subnetareoftenassociatedwithaspecificVLAN.VLANmembershiponaswitch
thatisassignedmanuallyforeachinterfaceisknownasstaticVLAN
membership.
Trunking,orconnectingswitches,andtheVLANTrunkingProtocol(VTP)are
usedtosegmentthenetwork.VTPmanagestheaddition,deletion,andrenaming
ofVLANsontheentirenetworkfromasinglecentralswitch.VTPminimizes
configurationinconsistenciesthatcancauseproblems,suchasduplicateVLAN
names,incorrectVLAN-typespecifications,andsecurityviolations.
Step1
Poweruptheswitchesandusethestandardprocessforestablishinga
HyperTerminalconsoleconnectionfromaworkstationtoeachswitchinyourpod.
Ifyouareconnectingremotelytoyourswitches,followtheinstructionsthathave
beensuppliedbyyourinstructor.
2-18CCNP:
BuildingMultilayerSwitchedNetworksv5.0-Lab2-2Copyright©2006,CiscoSystems,Inc
PrepareforthelabbyremovingallVLANinformationandconfigurationsthatmay
havebeenpreviouslyenteredintoyouswitches.RefertoLab2.0“Clearinga
Switch”andLab2.0b“ClearingaSwitchConnectedtoaLargerNetwork.”
Step2
Todifferentiatebetweenthedevices,givetheswitchesnamesusingthe
hostnamecommand.WewillalsoputIPaddressesonthemanagementVLAN
accordingtothediagram.Bydefault,VLAN1isusedasthemanagementVLAN.
Thefollowingisasampleconfigurationforthe3560switchDLS1.
Switch#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)#hostnameDLS1
DLS1(config)#interfacevlan1
DLS1(config-if)#ipaddress10.1.1.101
DLS1(config-if)#noshutdown
DLS1(config)#end
DLS1#
Repeatthesestepsontheotherpodswitchesaccordingtothediagram.
Step3
Usetheshowvlancommandfromprivilegedmodeonanyswitch.Thefollowing
outputisfora2960switch.
ALS1#showvlan
VLANNameStatusPorts
----------------------------------------------------------------------------
1defaultactiveFa0/1,Fa0/2,Fa0/3,Fa0/4
Fa0/5,Fa0/6,Fa0/7,Fa0/8
Fa0/9,Fa0/10,Fa0/11,Fa0/12
Fa0/13,Fa0/14,Fa0/15,Fa0/16
Fa0/17,Fa0/18,Fa0/19,Fa0/20
Fa0/21,Fa0/22,Fa0/23,Fa0/24
Gi0/1,Gi0/2
1002fddi-defaultact/unsup
1003token-ring-defaultact/unsup
1004fddinet-defaultact/unsup
1005trnet-defaultact/unsup
VLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTrans1Trans2
--------------------------------------------------------------------
1enet1000011500-----00
1002fddi1010021500-----00
1003tr1010031500-----00
1004fdnet1010041500---ieee-00
1005trnet1010051500---ibm-00
RemoteSPANVLANs
------------------------------------------------------------------------------
PrimarySecondaryTypePorts
---------------------------------------------------------------------------
3-18CCNP:
BuildingMultilayerSwitchedNetworksv5.0-Lab2-2Copyright©2006,CiscoSystems,Inc
Thefollowingoutputisfora3560switch.
DLS1#showvlan
VLANNameStatusPorts
----------------------------------------------------------------------------
1defaultactiveFa0/1,Fa0/2,Fa0/3,Fa0/4
Fa0/5,Fa0/6,Fa0/7,Fa0/8
Fa0/9,Fa0/10,Fa0/11,Fa0/12
Fa0/13,Fa0/14,Fa0/15,Fa0/16
Fa0/17,Fa0/18,Fa0/19,Fa0/20
Fa0/21,Fa0/22,Fa0/23,Fa0/24
Gi0/1,Gi0/2
1002fddi-defaultact/unsup
1003token-ring-defaultact/unsup
1004fddinet-defaultact/unsup
1005trnet-defaultact/unsup
VLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTrans1Trans2
--------------------------------------------------------------------
1enet1000011500-----00
1002fddi1010021500-----00
1003tr1010031500-----00
1004fdnet1010041500---ieee-00
1005trnet1010051500---ibm-00
RemoteSPANVLANs
------------------------------------------------------------------------------
PrimarySecondaryTypePorts
---------------------------------------------------------------------------
NotethatthedefaultVLANnumbers,names,associatedtypes,andallswitch
portsareautomaticallyassignedtoVLAN1.
Youcanusetheshowvlancommandtodeterminethemodeofaport.Ports
configuredforaparticularVLANareshowninthatVLAN.Portsconfiguredto
trunkmodedonotappearinanyoftheVLANs.
Step4
AVTPdomain,alsocalledaVLANmanagementdomain,consistsoftrunkedor
interconnectedswitchesthatareundertheadministrativeresponsibilityofa
switchorswitchesinserverVTPmode.AswitchcanbeinonlyoneVTPdomain
withthesameVTPdomainname.ThedefaultVTPmodeforthe2960and3560
switchesisservermode.VLANinformationisnotpropagateduntiladomain
nameisspecifiedandtrunksaresetupbetweenthedevices.
ThefollowingtabledescribesthethreeVTPmodes.
VTPModeDescription
VTPServerThisisthedefaultVTPmode.VLANscanbecreated,
modified,anddeleted.Otherconfigurationparameters
4-18CCNP:
BuildingMultilayerSwitchedNetworksv5.0-Lab2-2Copyright©2006,CiscoSystems,Inc
maybespecifiedforallswitchesintheVTPdomain.VTP
serversadvertiseVLANconfigurationstootherswitches
inthesameVTPdomainandsynchronizeVLAN
configurationswithotherswitchesbasedon
advertisementsreceivedovertrunklinks.
InVTPservermode,VLANconfigurationsaresavedin
NVRAM.
VTPClient
TheswitchlearnsVLANsfromtheswitchinservermode,
withouttheabilitytocreate,change,ordeleteVLANs.
InVTPclientmode,VLANconfigurationsarenotsaved
inNVRAM.
VTPTransparent
SwitchesdonotparticipateinVTP.Theswitchdoesnot
advertiseitsVLANconfigurationanddoesnot
synchronizeitsconfigurationbasedonreceived
advertisements.However,inVTPversion2,transparent
switchesdoforwardVTPadvertisementsthatthey
receivefromotherswitchesfromtheirtrunkinterfaces.
Therefore,localVLANsmaybecreated,modified,and
deletedonaswitchinthetransparentmode.
InVTPtransparentmode,VLANconfigurationsare
savedinNVRAM,buttheyarenotadvertisedtoother
switches.
Usetheshowvtpstatuscommandonanyoftheswitches.Theoutputshould
besimilartothefollowingsampleforDLS1.
DLS1#showvtpstatus
VTPVersion:
2
ConfigurationRevision:
0
MaximumVLANssupportedlocally:
1005
NumberofexistingVLANs:
5
VTPOperatingMode:
Server
VTPDomainName:
VTPPruningMode:
Disabled
VTPV2Mode:
Disabled
VTPTrapsGeneration:
Disabled
MD5digest:
0xBF0x860x940x450xFC0xDF0xB50x70
Configurationlastmodifiedby0.0.0.0at0-0-0000:
00:
00
LocalupdaterIDis10.1.1.250oninterfaceVl1(lowestnumberedVLAN
interfacefound)
SincenoVLANconfigurationsweremade,allsettingsarethedefaults.Notice
thattheVTPmodeisserver.ThenumberofexistingVLANsisthefivebuilt-in
VLANs.The3560switchsupports1005maximumVLANslocally.The2960
5-18CCNP:
BuildingMultilayerSwitchedNetworksv5.0-Lab2-2Copyright©2006,CiscoSystems,Inc
switchsupports255.Theconfigurationrevisioniszero,andtheVTPversionis2.
AllswitchesintheVTPdomainmustrunthesameVTPversion.
TheimportanceoftheconfigurationrevisionnumberisthattheswitchinVTP
servermodewiththehighestrevisionnumberpropagatesVLANinformationover
trunkedports.EverytimeVLANinformationismodifiedandsavedintheVLAN
databaseorvlan.datfile,therevisionnumberisincreasedbyonewhentheuser
exitsfromVLANconfigurationmode.
MultipleswitchesintheVTPdomaincanbeinVTPservermode.Theseswitches
canbeusedtomanageallotherswitchesintheVTPdomain.Thisissuitablefor
small-scalenetworkswheretheVLANinformationissmallandeasilystoredinall
switches.Inalargenetwork,theadministratormustdeterminewhichswitches
makethebestVTPservers.Thenetworkadministratorshouldsetasidesomeof
themorepowerfulswitchesandkeepthemasVTPservers.Theotherswitches
intheVTPdomaincanbeconfiguredasclients.ThenumberofVTPservers
shouldbeconsistentbasedontheamountofredundancydesiredinthenetwork.
Step5
ChangetheVTPdomainnameonDLS1toSWLABusingthevtpdomain
command.ThefollowingisanexampleconfigurationfromDLS1.
DLS1(config)#vtpdomainSWLAB
ChangingVTPdomainnamefromNULLtoSWLAB
DLS1(config)#end
SetuptheswitchessothattheDLswitchesareinVTPservermode,andtheAL
switchesareinVTPclientmode.Thefollowingareexampleconfigurationsfor
DLS1andALS1.
DLS1#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
DLS1(config)#vtpmodeserver
DevicemodealreadyVTPSERVER.
DLS1(config)#end
ALS1#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
ALS1(config)#vtpmodeclient
SettingdevicetoVTPCLIENTmode.
ALS1(config)#end
Notethatsincethedefaultmodeisserver,wereceiveamessageonDLS1
statingthatthedevicemodeisalreadyVTPserver.
UsetheshowvtpstatuscommandoneitheroftheALswitches.Theoutput
shouldbesimilartothefollowingsampleforALS1.
DLS1#showvtpstatus
VTPVersion:
2
ConfigurationRevision:
0
6-18CCNP:
BuildingMultilayerSwitchedNetworksv5.0-Lab2-2Copyright©2006,CiscoSystems,Inc
MaximumVLANssupportedlocally:
1005
Numberofexisting
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Catalyst 2960 and 3560 Series Static VLANS VLAN Trunking
链接地址:https://www.bdocx.com/doc/3798112.html