資源描述:
《思科路由與交換機(jī)配置.doc》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、CISCO基本命令集showprotocolsshowmemshowiprouteshowstartup-configshowrunning-configshowflashshowinterfaces二、基本路由配置命令進(jìn)入:configterminal/memory/network配置網(wǎng)絡(luò)時(shí)常采用的命令:copy和load1.標(biāo)識:hostname標(biāo)識名2.啟動(dòng)標(biāo)識:banner啟動(dòng)標(biāo)識3.接口:interface端口號4.密碼:line06loginpasswd口令enablepassword/secret口令5.接口:1)
2、配置端口interface端口號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ò)號掩碼端口號[permanent]2.缺省路由ipdefault-network網(wǎng)絡(luò)號3.動(dòng)態(tài)路由1)RIP配置RouterripNetwork網(wǎng)絡(luò)號ShowiprouteShowipprotocolDebugip2)OSPF配置Routerospf進(jìn)程號Redistribute其它路由協(xié)議Network端口網(wǎng)絡(luò)反掩碼area區(qū)域號Area區(qū)域號range網(wǎng)絡(luò)號掩碼Area區(qū)域號default-cost花銷值IpospfprioritynumberIpospfcost花銷值Showiposp
5、fdatabase3)BGP配置Routerbgp自治域號Redistribute其它路由協(xié)議Network網(wǎng)絡(luò)號/*自治域內(nèi)*/Aggregate-address網(wǎng)絡(luò)號掩碼summary-only匯總網(wǎng)絡(luò)Neighbor相鄰網(wǎng)絡(luò)號remote-as自治域號/*自治域間的網(wǎng)絡(luò)*/四、流量控制1)被動(dòng)端口passiveinterface端口號2)缺省路由ipdefault網(wǎng)絡(luò)號/端口網(wǎng)絡(luò)3)靜態(tài)路由iproute目標(biāo)網(wǎng)絡(luò)號掩碼端口號4)ACL過濾表(全局上)access-list訪問號1{permit
6、deny}反掩碼號[esta
7、blished]access-list訪問號2{permit
8、deny}IP/TCP協(xié)議源網(wǎng)絡(luò)目的網(wǎng)絡(luò)操作符參數(shù)(端口上)access-group訪問號in
9、outdistribute-list訪問號in
10、out端口號4)Null0interfaceIprouteaddressmasknull0五、廣義網(wǎng)配置1)PPPPpppapsent-usename封裝PppchaphostnamePppchappassword2)X.25encapsulationx25[dce]x25addressx25map協(xié)議地址/*SVC*/x25
11、pvcpvc號ip地址x25地址/*PVC*/ipswitchingx25routex.121地址接口x.121映射地址2)FrameRelayFrame-relaylocal-dlciIP網(wǎng)絡(luò)號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