《网络设备安装与调试(第2版)项目考核.docx》由会员分享,可在线阅读,更多相关《网络设备安装与调试(第2版)项目考核.docx(25页珍藏版)》请在课桌文档上搜索。
1、GigljenableSwitchWconfigSwitch(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
2、)#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)WvIan20
3、Switch(config-vla)eitSwitch(config)interfacevlan10Switch(config-if)tfipaddress172.16.10.2S3255.25S.25S.OSwitch(Config-If)WnoshutdownSwitch(config-if)tteltSwitch(Config)Winterfacevlan20Switch(Config-If)Itipaddress172.16.20.253255.25S.255.0Switch(config-if)noshutdownSwitch(Config-If)WexItSwitch(Config
4、)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(d
5、hcp-conf)eit配置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
6、-if)WstandbtrackflSwitch(config-if)enableROUterttCOnfigtRouter(config)interfaceglRouter(config-if)Wpadd192.168.30,254255.255.255.0Router(config-if)#noshutdownRouter(config-if)tteitRouter(config)tfinterfaceg00Router(config-if)noipaddressRouter(config-if)WnoshutdownRouter(config-if)WeitRouter(Config)i
7、nterfaceg00.10Router(Config-Subif)WencapsuIationdotlQ10Switch(conf-if)ffexitSwitch(conf)interfaceglSwitch(confif)rswitchportmodetrunkSwitch(cofif)ffnoshutdownSwitch(conf-if)ftexitSwitch(conf)tt交换机(右)SwitchenableSwitchtZconfigtSwltch(conf)vlan30Switch(confvlan)#exitSwitch(conf)ftinterfacef24SWitCh(CO
8、nfgif)。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.0
9、Routerjconfig-if)W11oshutdownRouter(config-if)WeitRouterconfig)interfacegO/ORouter(config-if)#ipaddress172.16.2.125S.255.2S5.0Router(config-if)itnoshutdownRouter(Conflg-If)ItexItROUteconfig)斯Proute172.16.3.025S.2S5.255.O172.16.2.2RoUterUonfig晰proute172.16.4.0255.255.25S.0172.16.2.2RoUter(Config)加Pro
10、ute172.16.S.0255.255.25S.0172.16.2.2Router(configJproute172.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)MeltRouter(config)ftnterfaceglRouterenableSwitchtlconfigS
11、witch(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)ftnoshutdown
12、Switchfif)teitSwitch(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)ffexitS
13、WitCh(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二层交换机配置SwitchenableSwitchtZconfigSwItch(Config)ItvIan10SWitCh(COnf电Vlan沸VIan20Switch(conf-vlan
14、)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)ffnoshutdown
15、Switch(conf-if)ffeit清除静态路由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.2
16、55.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.2ripmatRlRoUte
17、rjCOnfig用routerripRouter(config-router)rversio2Router(config-router)MnoautosummaryROUteconfigrouterj并network172.16.1.0Router(config-router)Wnetwork172.16.2.0Router(config-router)#exitR2Router(config)#routerripRouter(cofig-router)tfverslo2Routerconfig-router)noautosummaryRouter(config-router)#network
18、172.16.6.0Routerconfig-router)ltnetwork172.16.4.0Router(configrouter)Melt三层交换机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)ft11en
19、vork172.16.5.0Router(config-router)eit.项目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)#int
20、erfacegO/ORoUter(Configif)noshutdownRouter(config-if)lng00.10Router(Config-Subif)WencapsuIationdotlQ10Router(config-subif)#ipadd172.16.10.2542S5.25S.255.0Router(config-subif)tteitRoUter(COnfig)彷ngOO.2ORouter(Config-Subif)WencapsuIationdotlQ20Router(config-subif)#ipadd172.16.20.254255.25S.255.0Router
21、(config-subif)ttoshutdownRouter(config-subif)tfexitRouter(Config)MinsO/O/ORoutereableRouterWconfigRouter(config)#interfaceg00Router(config-if)enableSwitchirconfigSwitch(config)vlan30Switch(fig-vlan)WexitSWitCh(8MlgMintrangef0l-2Switch(Configirrange)Wswitchportaccessvlan30Switch(configif-range)#noshu
22、tdownSwitch(config-if-range#exitSwitch(Config)Minterfacef24Switch(cofigif)ffswitchportmodetrunkSwitch(configif)ffnoshutdownSwitch(Config-If)Mexit端口安全Switch(Config)WinterfaceflSwitch(configif)ffswitchportport-security(如果报俏可以通过switchportmodeaccess这句命令解决)Switch(Configif)Wswitchportportsecuritymaximum1S
23、WitCh(COnfigif)#SWitChPOrtportsecurityviolationrestrictSwitch(config-if)ffswitchportport-securitymac-addressstickySwitch(config-if)#exitSWiteh(Conflg)#inf2SWitCh(Configif)#SWitChPOrtportsecuritySwitch(config-ifJffswitchportport-securitymaximum1Switch(nfigif)Wswitchportport-securityviolationrestrictS
24、witch(Configif)Irswitchportport-securitymac-addressstickySwitch(Configif)WexIt核心交换机基本配置:Switch(config)#interfacefllSWitChconfif)Mswitchportport-securitySwitch(Wnfigif)Wswitchportport-securitymac-address00D0,BA93.42B9SWitCh(Configif)#SWitChPOrtportsecurityviolationshutdownSwitch(config-if)ftexitAC1.S
25、witch(confg)iaccess-listexftpSwitch(cofigextaclWpermittcp192.168.1.0O.O.O.2S5host192.168.5.1eqftpswtch(config-et-nacl)permittcpanyanyeq80Switch(fig-et-nacl)WexitC2911l基础配StRouteoenableRouterttconfigRouter(Config)WinterfaceglRouterconfig-if)#ipadd192.168.11.22S5.255.25S.0Routerconfig-if)noshutdownRou
26、ter(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)tteit路由配置RoUter(COnfig)析Proute0.0.0.00.0.0.0201.1.1.10
27、0Router(Config)Wroutero$pf1Router(config-router)Wnctwork192.168.10.00.0.0.255areaORouter(config-router)M11etwork192.168.11.0O.O.O.25SareaORouterconfig-router)Mdefault-informationoriginateRoUterconfig-router)JtexltNAT配置ROUter(config)#ipaccess-liststandardnat192.168.1.0192.168.2.0192.168.3.0192.168.4.
28、0192.168.5.0Routerconfig-std-nad)Mpc11nithostRouter(config-std-nad)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-ifWexitRo
29、uter-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:*RBO物理配置服务口置项身程M性物理配置阪务桌面编程属性股务IffTPDiCPOHaV6THPDNSDNS蜃务开。关资源记录名林WWWCiscocom类型ARecordV地址10.1Ql保存DNsa存SY三&UMTPENMF
30、T:物联网虚拟机管理9iaWIJS服务器1:IJS路由器0:RouterenableRouterftconftRouter(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.ORoute
31、r(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:RouterenableRouter#confIEnterconfigurationcommands,onep
32、erline.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)
33、Snoauto-surmaryRouter(configrouter)Unetwork10.O.O.ORouter(config-router)enetwork172.16.1.O无线路由器;配1inInWrv*=RJ三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