資源描述:
《思科路由與交換機(jī)配置.doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、CISCO基本命令集showprotocolsshowmemshowiprouteshowstartup-configshowrunning-configshowflashshowinterfaces二、基本路由配置命令進(jìn)入:configterminal/memory/network配置網(wǎng)絡(luò)時(shí)常采用的命令:copy和load1.標(biāo)識(shí):hostname標(biāo)識(shí)名2.啟動(dòng)標(biāo)識(shí):banner啟動(dòng)標(biāo)識(shí)3.接口:interface端口號(hào)4.密碼:line06loginpasswd口令enablepassword/secret口令5.接口:1)
2、配置端口interface端口號(hào)clockrate時(shí)鐘速率(64000)/*在串口中配置*/bandwidth帶寬(缺省56)/*在串口中配置*/media-type介質(zhì)類型/*在以太網(wǎng)口上*/early-tokenrelease/*在令牌環(huán)網(wǎng)口上*/ring-speed16/*在令牌環(huán)網(wǎng)口上*/noshutdownwritememory2)檢驗(yàn)端口showinterfacesshowcontrollers6.配置環(huán)境1)引導(dǎo)方式bootsystemflashIOS-filenamebootsystemtftpIOS-filen
3、ametftp-addressbootsystemrom2)配置Register值config-register0x21027.查看鄰居路由showcdpinterfaceshowcdpneighbors[detail]showcdpentryrouterA8.IPAddress配置Ipaddress網(wǎng)絡(luò)地址掩碼Iphost主機(jī)名addressIpname-server服務(wù)器地址1服務(wù)器地址2。。。Ipdomain-lookupnsapShowhostsPing主機(jī)名/IP地址Trace主機(jī)名/IP地址三、IP路由1.靜態(tài)路由i
4、proutingiproute目標(biāo)網(wǎng)絡(luò)號(hào)掩碼端口號(hào)[permanent]2.缺省路由ipdefault-network網(wǎng)絡(luò)號(hào)3.動(dòng)態(tài)路由1)RIP配置RouterripNetwork網(wǎng)絡(luò)號(hào)ShowiprouteShowipprotocolDebugip2)OSPF配置Routerospf進(jìn)程號(hào)Redistribute其它路由協(xié)議Network端口網(wǎng)絡(luò)反掩碼area區(qū)域號(hào)Area區(qū)域號(hào)range網(wǎng)絡(luò)號(hào)掩碼Area區(qū)域號(hào)default-cost花銷值IpospfprioritynumberIpospfcost花銷值Showiposp
5、fdatabase3)BGP配置Routerbgp自治域號(hào)Redistribute其它路由協(xié)議Network網(wǎng)絡(luò)號(hào)/*自治域內(nèi)*/Aggregate-address網(wǎng)絡(luò)號(hào)掩碼summary-only匯總網(wǎng)絡(luò)Neighbor相鄰網(wǎng)絡(luò)號(hào)remote-as自治域號(hào)/*自治域間的網(wǎng)絡(luò)*/四、流量控制1)被動(dòng)端口passiveinterface端口號(hào)2)缺省路由ipdefault網(wǎng)絡(luò)號(hào)/端口網(wǎng)絡(luò)3)靜態(tài)路由iproute目標(biāo)網(wǎng)絡(luò)號(hào)掩碼端口號(hào)4)ACL過(guò)濾表(全局上)access-list訪問(wèn)號(hào)1{permit
6、deny}反掩碼號(hào)[esta
7、blished]access-list訪問(wèn)號(hào)2{permit
8、deny}IP/TCP協(xié)議源網(wǎng)絡(luò)目的網(wǎng)絡(luò)操作符參數(shù)(端口上)access-group訪問(wèn)號(hào)in
9、outdistribute-list訪問(wèn)號(hào)in
10、out端口號(hào)4)Null0interfaceIprouteaddressmasknull0五、廣義網(wǎng)配置1)PPPPpppapsent-usename封裝PppchaphostnamePppchappassword2)X.25encapsulationx25[dce]x25addressx25map協(xié)議地址/*SVC*/x25
11、pvcpvc號(hào)ip地址x25地址/*PVC*/ipswitchingx25routex.121地址接口x.121映射地址2)FrameRelayFrame-relaylocal-dlciIP網(wǎng)絡(luò)號(hào)Frame-relaymap協(xié)議地址Frame-relaylmi-typeansi交換機(jī)命令全集1.在基于IOS的交換機(jī)上設(shè)置主機(jī)名/系統(tǒng)名:switch(config)#hostnamehostname在基于CLI的交換機(jī)上設(shè)置主機(jī)名/系統(tǒng)名:switch(enable)setsystemnamename-string2.在基于IOS
12、的交換機(jī)上設(shè)置登錄口令:switch(config)#enablepasswordlevel1password在基于CLI的交換機(jī)上設(shè)置登錄口令:switch(enable)setpasswordswitch(enable)setenalbepass3.在基于I