网络设备安装与调试(第2版)项目考核.docx
Giglj<FaQ23fc_造Fa2RGigOZlFa024*核心2FaO1124P?*/MUltiIay彳Switch、/'1IzXF叫)、jp三2裁入交帙机1Fa0715京丁XTFaO2psuFa0lfSwitchlRFa02Fa018项目2交换机技术基础vla20vlanl配置要求:(1)PCl*3PC2选择DHCP力动获取IP,fehl:及网关(2)接入交换机1配置命令:划分VSN开启中继Switch>enableSwitchWconfigSwitch(Config)WvIan10Switch(Config-Vlan)WexitSwitch(config)intf17Switch(config-if)Wswltchportaccessvla10Switch(config-if)4exitSwitch(config)#interfacerangefO/1-2Switch(config-ifrange)WswitchportmodetrunkSwitch(Configifrange)WnoshutdownSwitch(config-ifrange)ffexitSwitch(config)#interfacerangefO/23-24Switch(config-ifrange)tchanel-group1modeonSwitch(config-ifrange)WnoshutdownSwitch(config-ifrange)ffexitSwitch(config)#interfaceport-channel1Switch(config-if)ttswitchportmodetrunkSwitch(config-if)ttnoshutdownSwitch(Configif)WexitSwitch(config)ftvian10Switch(Config-Vlan)WvIan20Switch(config-vla)e×itSwitch(config)interfacevlan10Switch(config-if)tfipaddress172.16.10.2S3255.25S.25S.OSwitch(Config-If)WnoshutdownSwitch(config-if)tte×ltSwitch(Config)Winterfacevlan20Switch(Config-If)Itipaddress172.16.20.253255.25S.255.0Switch(config-if)noshutdownSwitch(Config-If)WexItSwitch(Config)WiproutingSWitCh(COnfig)#SerViCedhcpSwitch(Config)Mipdhcppoolvla10Switch(dhcpnf)tfnetwork172.16.10.0255.255.255.0Switch(dhcpnf)defaultrouter172.16.10.254Switch(dhcp-conf)WexitSwitch(config)#ipdhcppoolvla20Switch(dhcp-n)tfetwork172.16.20.0255.255.255.0Switch(dhcpn)Wdefaultrouter172.16.20.254Switch(dhcp-conf)e×it配置VRRP:核心交换机2:SWitCh(COnfig)所ntvlan10Switch(config-if)itstadby10ip172.16.10.2S4Switch(config-if)ttstadby10priority100Switch(config-if)4exitSwitch(config)#intvlan20Switch(Config-If)Mstandby20ip172.16.20.2S4Switch(config-if)Wstadby20preemptSwitch(Configif)Wstandby20priority110Switch(config-if)WstandbtrackflSwitch(config-if)<tstadbtrackf2Switch(config-if)ttstadbtrackgl核心交换机1Switch(Config)Itintvlan10SWitCh(COnfigif)#StandbV10Ip172.16.10.254Switch(Config-If)Mstandby10priority110Switch(Config-If)Mstandby20preemptSwitch(config-if)JtstandbytrackflSWitCh(COnfig-if)#StandbVtrackf2Switch(Config-If)WstandbytrackglSwitch(config-if)ttexitSwitch(Config)Mintvlan20SWitCh(COnfig-if)#StandbV20Ip172.16.20.2S4SWitCh(COnfig-if)#StandbY20priority110生成树也置核心交换机2;SWitCh(COnfig)#SPanning-treemodepvst10priority409620priority0Swilch(conig)#spanningtreevlanSwitchCconfig)*spanning-treevlan核心交换机1:SWitCh(COnfig)#SPanning-treemodepvst01096Switch(config)ttspanning-treevlan10prioritySwitch(config)Cspanning-treevlan20priority项目3路由技术基础192.168.20.0/24192.168.10.0/24192.168.30.0/24配置命令:路由器基本配置:Router>enableROUterttCOnfigtRouter(config)interfaceglRouter(config-if)Wpadd192.168.30,254255.255.255.0Router(config-if)#noshutdownRouter(config-if)tte×itRouter(config)tfinterfaceg00Router(config-if)noipaddressRouter(config-if)WnoshutdownRouter(config-if)We×itRouter(Config)interfaceg00.10Router(Config-Subif)WencapsuIationdotlQ10Switch(conf-if)ffexitSwitch(conf)interfaceglSwitch(confif)rswitchportmodetrunkSwitch(cofif)ffnoshutdownSwitch(conf-if)ftexitSwitch(conf)tt交换机(右)Switch>enableSwitchtZconfigtSwltch(conf)vlan30Switch(conf«vlan)#exitSwitch(conf)ftinterfacef24SWitCh(COnfgif)。SWitChPortaccessvlan30Switch(Configif)WexItSwitch(config)tfintglSwitch(cof-if)ffswitchportmodetrunkSwitch(cof-if)switchporttrunknativevlan30Switch(Config-If)IrexIt项目4路由协议实现命令配置静态配置Rl(左边路由器)RouteoenableRouterWconfigRouter(Config)WinterfaceglRouter(config-if)tfipaddress172.16.1.25425S.2S5.255.0Routerjconfig-if)W11oshutdownRouter(config-if)We×itRouterconfig)interfacegO/ORouter(config-if)#ipaddress172.16.2.125S.255.2S5.0Router(config-if)itnoshutdownRouter(Conflg-If)ItexItROUte"config)斯Proute172.16.3.025S.2S5.255.O172.16.2.2RoUterUonfig晰proute172.16.4.0255.255.25S.0172.16.2.2RoUter(Config)加Proute172.16.S.0255.255.25S.0172.16.2.2Router(configJ»proute172.16.6.0255.255.255,0172.16.2.2R2(右边路由器)RouteoenaRouterttconfigRouterconfig)interfacegO/ORouter(config-if)#ipaddress172.16.4.225S.255.255.0Router(config-if)itnoshutdownRouter(config-if)Me×ltRouter(config)ftnterfaceglRouter<config-if)#ipaddress172.16.6.25425S.255.255.0Router(config-if)WnoshutdownRouter(Config)Wiproute172.16.1.0255.255.255,0172.16.4.1Router(Config)Wiproute172.16.2.025S.255.255.O172.16.4.1Router(config)#iproute172.16.3.0255.2S5.25S.0172.16.4.1ROUter(COMig)加Proute172.16.5.0255.255.25S.0172.16.4.1三层交换机Switch>enableSwitchtlconfigSwitch(f)tfiproutingSWitCh(COnf电)#VIan10Switch(nfg-vian)IMan20Switch(nf-vlan)WexitSwitch(con)#interfaceVlan10Switch(cofif)ffipaddress172.16.3.254255.255.255.0Switch(conf-if)ffnoshutdownSwitch(fif)exitSwitch(f)interfacevlan20SWitCh(Confgif)NIpaddress172.16.5.254255.255.255.0Switch(conf-if)ftnoshutdownSwitchfif)te×itSwitch(conf)tfinterfaceglSwitch(cofif)ffnoswitchportSwitch(conf-if)Wpaddress172.16.2.225S.2S5.255.0Switch(conf-if)ftnoshutdownSwitch(nf-if)WexitSwitch(cof)Winterfaceg2Switch(conf-if)ff11oswitchportSwitch(nif)Wipaddress172.16.4.125S.255.2S5.OSwitch(confif)WnoshutdownSwitch(cofif)ffexitSWitCh(COnf翦泗interfacef24Switch(f-if)WswitchportmodetrunkSwitch(Conftgif)WnoshutdownSwitch(confif)ffexitSwitch(conf)iproute172.16.1.0255.25S.255.0172.16.2.1Switch(n)tfiproute172.16.6.0255.255.255.0172.16.4.2二层交换机配置Switch>enableSwitchtZconfigSwItch(Config)ItvIan10SWitCh(COnf电Vlan沸VIan20Switch(conf-vlan)ftexitSwitch(f)MinterfaceflSwitch(cof-if)WswltchportaccessVlan10Switch(confif)ffnoshutdownSwitch(conf-if)ffexitSwitch(nf)ttinterfacef2Switch(nfgif)ITswitchportaccessvla20Switch(cofif)ffnoshutdownSwitch(conf-if)ftexitSwitch(Confjg)Itinf24SWiteh(snOgif)WSWitChPOrtmodetrunkSwitch(configif)ffnoshutdownSwitch(conf-if)ffe×it清除静态路由RlRouter(config)#noiproute172.16.3.0255.255.255.0172.16.2.2Router(config)#noiproute172.16.4.0255.255.255.0172.16.2.2Router(Config)Wnoproute172.16.5.0255.255.255,0172.16.2.2Router(config)#noiproute172.16.6.0255.255.25S.0172.16.2.2R2Router(Config)Wnoiproute172.16.1.0255.255.255.O172.16.4.1Route*Onfig用noiproute172.16.2.0255.255.25S.O172.16.4.1Route*oMig用noiproute172.16.3.0255.255.25S.O172.16.4.1ROUter(COnfig)"noiproute172.16.S.0255.255.25S.O172.16.4.1三层交换机Switch(nfig)noiproute172.16.1.0255.255.255.0172.16.2.1Switch(n)noiproute172.16.6.0255.255.255.0172.16.4.2ripmatRlRoUterjCOnfig用routerripRouter(config-router)rversio2Router(config-router)MnoautosummaryROUte"configrouterj并network172.16.1.0Router(config-router)Wnetwork172.16.2.0Router(config-router)#exitR2Router(config)#routerripRouter(cofig-router)tfverslo2Routerconfig-router)noautosummaryRouter(config-router)#network172.16.6.0Routerconfig-router)ltnetwork172.16.4.0Router(configrouter)Me×lt三层交换机Router(Config)WrouterripRouter(config-router)#version2Routerconfig-router)#noauto-summarySwitch(nf-router)Wnenvork172.16.2.0SWitCh(coMWrOUter)KnetWork172.16.4.0Switch(confrouter)ffnetwork172.16.3.0Switch(conf-router)ft11envork172.16.5.0Router(config-router)e×it.项目4路由协议实现(ospf单区域)172.16.3.0Se000TGigOZqIllRoiferO172.16.30.0172.16.10.0IP*172.16.10.124=172.16.10.254孝管2GgOORoJferlIP=I72.16.20.1/24IP-172.16.30.1/24IP-172.16.40.1/24两关T72.16.20.25,同关=172.16.20.254网关=172.16.40.254(½>路由器RouteoenableRouterWconfigRouter(config)#interfacegO/ORoUter(Configif)"noshutdownRouter(config-if)lng00.10Router(Config-Subif)WencapsuIationdotlQ10Router(config-subif)#ipadd172.16.10.2542S5.25S.255.0Router(config-subif)tte×itRoUter(COnfig)彷ngOO.2ORouter(Config-Subif)WencapsuIationdotlQ20Router(config-subif)#ipadd172.16.20.254255.25S.255.0Router(config-subif)ttoshutdownRouter(config-subif)tfexitRouter(Config)MinsO/O/ORouter<config-if)#ipadd172.16.3.1255.255.25S.ORouter(config-if)WnoshutdownRouter(Conflg-If)IrexItRouter(Config)Wrouterospf1命令配胜左路由零Router>eableRouterWconfigRouter(config)#interfaceg00Router(config-if)<tipadd172.16.1.1255.25S.25S.0Router(config-if)ttnoshutdownRouter(Configif)WexitRouter(config)tfinterfacesO/O/ORouter(config-if)Wipaddress172.16.2.12SS.255.255.0Router(config-if)ttnoshutdownRouter(Configif)WexitRouter(config)#routerospf1Routerconfig-router)ttnetwork172.16.1.00.0.0.255area1Router(config-router)Mnetwork172.16.2.00.0.0.255area0右路由零RouteoenableRouterWconfigRouter(Config)interfacegO/ORouter(configif)Wipadd172.16.3.1255.255.255.0Router(config-if)ltnoshutdownRouter(Configif)WexItRouter(Config)WinterfacesO/O/ORouter(configif)Wipaddress172.16.2.2255.255.255.0Router(config-if)WnoshutdownRouter(Configif)WexItRouter(Config)Wrouterospf1Routerconfig-router)#network172.16.3.00.0.0.255area1Router(config-router)ttnetwork172.16.2.00.0.0.255area0项目5网络安全技术实现令解决Switch(nfigif)tswitchportport-securitymaximum1Switch(Wnfigif)Wswitchportport-securityviolationrestrictSWitCh(Configif)#SWitChPOrtportsecuritymac-addressstickySwitch(config-if)ftexitSwitch(Config)Winf2Switch(Configif)Irswitchportport-securitySwitch(Configif)Irswitchportport-securitymaximum1Switch(config-if)ftswitchportport-securityviolationrestrictSwitch(figif)switchportport-securitymac-addressstickySwitch(figif)We×lt(右)接入交换机基础配置:Switch>enableSwitchirconfigSwitch(config)vlan30Switch(fig-vlan)WexitSWitCh(8MlgMintrangef0l-2Switch(Configirrange)Wswitchportaccessvlan30Switch(configif-range)#noshutdownSwitch(config-if-range#exitSwitch(Config)Minterfacef24Switch(cofigif)ffswitchportmodetrunkSwitch(configif)ffnoshutdownSwitch(Config-If)Mexit端口安全Switch(Config)WinterfaceflSwitch(configif)ffswitchportport-security(如果报俏可以通过switchportmodeaccess这句命令解决)Switch(Configif)Wswitchportportsecuritymaximum1SWitCh(COnfigif)#SWitChPOrtportsecurityviolationrestrictSwitch(config-if)ffswitchportport-securitymac-addressstickySwitch(config-if)#exitSWiteh(Conflg)#inf2SWitCh(Configif)#SWitChPOrtportsecuritySwitch(config-ifJffswitchportport-securitymaximum1Switch(nfigif)Wswitchportport-securityviolationrestrictSwitch(Configif)Irswitchportport-securitymac-addressstickySwitch(Configif)WexIt核心交换机基本配置:Switch(config)#interfacefllSWitChconfif)Mswitchportport-securitySwitch(Wnfigif)Wswitchportport-securitymac-address00D0,BA93.42B9SWitCh(Configif)#SWitChPOrtportsecurityviolationshutdownSwitch(config-if)ftexitAC1.Switch(confg)iaccess-listexftpSwitch(cofigextaclWpermittcp192.168.1.0O.O.O.2S5host192.168.5.1eqftpswtch(config-e×t-nacl)permittcpanyanyeq80Switch(fig-e×t-nacl)WexitC2911l基础配StRouteoenableRouterttconfigRouter(Config)WinterfaceglRouterconfig-if)#ipadd192.168.11.22S5.255.25S.0Routerconfig-if)noshutdownRouter(Config-If)WexitRouter(Config)WinterfacegO/ORouter(configif)4ipadd192.168.10.2255.255.255.0Router(config-if)#noshutdownRouter(Config-If)WexItRouter(Config)WmsO3OROUter(COnfig句的Padd201.1.1.1255.255.25S.0Router(nfig-if)WnoshutdownRouter(nfig-if)tte×it路由配置RoUter(COnfig)析Proute0.0.0.00.0.0.0201.1.1.100Router(Config)Wroutero$pf1Router(config-router)Wnctwork192.168.10.00.0.0.255areaORouter(config-router)M11etwork192.168.11.0O.O.O.25SareaORouter<config-router)Mdefault-informationoriginateRoUter<config-router)JtexltNAT配置ROUter(config)#ipaccess-liststandardnat192.168.1.0192.168.2.0192.168.3.0192.168.4.0192.168.5.0Router<config-std-nad)Mpc11nithostRouter(config-std-nad)<tpermithostRouter(config-std-nad)pe11ithostRouter(config-std-naci)M)er11ithostRoUteNCOnfigTtd-nad)#PCrmithostRouter(config-std-naci)WexitRouter(config-if)exit此时全网互通G100zqJllRodferl项目6广域网技术JOSe000Usemame=Router-BDasswore=1234562fGg00RoJterOUSernanIe=RoUter-APasswore=123456aPC-PTPCl左路由零Router>enaRouterttconfigRouter(Config)MhostnameRouter-ARouter-A(config)ffusernameRouter-Bpassword123456Router-A(config)#interfaceg00Router-A(config-if)Mipaddress192.168.10.1255.255.255.0Router-A(config-if)WoshutdownRouter-A(config-ifWexitRouter-A(Config)Wins000Router-A(config-if)ipaddress202.96.200.1255.255.255.252Router-A(config-if)#noshutdownRouter-A(Configif)WcIockrate64000Router-A(config-if)fte11capsulationppp项目实现:服务器0:*R«BO物理配置服务口置项身程M性物理配置阪务桌面编程属性股务IffTPDiCPOHaV6THPDNSDNS蜃务开。关资源记录名林WWWCiscocom类型ARecordV地址10.1Ql保存DNsa存SY三&UMTPENMFT:物联网虚拟机管理9>iaWIJS服务器1:IJS路由器0:Router>enableRouterftconftRouter(conig)intg2Router(config-if)#ipadd10.2.O.2255.255.O.ORoutcrtconfig-if)#noshuRouter(config-if)ftintglRouter(config-if)4ipadd10.1.0.2255.255.O.ORoutertconfig-if>#noshutRouter(config-if)rtintgO/ORouter(config-if)4ipadd10.0.O.2255.255.O.ORouter(conGg-if)#noshutRouter(configif)UexilRouter(Config)SrouterripRouter(config-routcr)Aversion2Router(config-routor)#noauto-suirciaryRouter(configrouter)#network10.2.O.ORouter(config-router)#network10.1.O.ORouter(config-router)network10.O.O.O路由器I:Router>enableRouter#confIEnterconfigurationcommands,oneperline.EndwithCNT1.Z.Router(config)ftintgO/ORouter(config-if)#ipadd10.0.O.1255.255.O.ORouter(config-if)#nashutRouter(config-if)rtintglRouter(config-if)ipadd172.16.1.1255.255.255.0Routertconfig-if)#noshutROUler(Configif)UexilRouter(config)#routerripRouter(config-router)fiversion2Router(config-router)Snoauto-surmaryRouter(configrouter)Unetwork10.O.O.ORouter(config-router)enetwork172.16.1.O无线路由器;配1inInWrv*=R¾J三O物理配置京隹编程属性接口WireIessOIP&SDHCP。静态DHCPi*求血.IPitfcJlt19216802子网竟码2552552550北认网关19216801DNS服务器102.0.1IPV6配置DHCP。自幼配置。”态DHCPV6请求,IPv6t/偌路本地地址FE80.260TOFRFEB715B1IPv6网关IPv6DNS服务霁*=¾eo物是配置烹宦编程属性月页浏览罂<>UR1.http/Zwwwscocom前往停止CiscoPacketTracerWelcometoCiscoPacketTracer.OpeningdoorstonewOppominities.MhidWideOpen.Quick1.inks:AsmallpageCopyrightslmageageImage