《网络设备安装与调试(第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)ftnterfaceglRouterenableSwitchtlconfigSwitch(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(Confgi