cisco命令大全_第1頁
已閱讀1頁,還剩4頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、cisco命令詳解1.交換機支持的命令:交換機基本狀態(tài):switch:;ROM狀態(tài),路由器是rommonhostname;用戶模式hostname#;特權模式hostname(config)#;全局配置模式hostname(configif)#;接口狀態(tài)交換機口令設置:switchenable;進入特權模式switch#configterminal;進入全局配置模式switch(config)#hostname;設置交換機的主機名swi

2、tch(config)#enablesecretxxx;設置特權加密口令switch(config)#enablepasswdxxa;設置特權非密口令switch(config)#lineconsole0;進入控制臺口switch(configline)#linevty04;進入虛擬終端switch(configline)#login;允許登錄switch(configline)#passwdxx;設置登錄口令xxswitch#exit

3、;返回命令交換機VLAN設置:switch#vlandatabase;進入VLAN設置switch(vlan)#vlan2;建VLAN2switch(vlan)#novlan2;刪vlan2switch(config)#intf01;進入端口1switch(configif)#switchptaccessvlan2;當前端口加入vlan2switch(configif)#switchptmodetrunk;設置為干線switch(con

4、figif)#switchpttrunkallowedvlan1,2;設置允許的vlanswitch(configif)#switchpttrunkencapdot1q;設置vlan中繼switch(config)#vtpdomain;設置發(fā)vtp域名switch(config)#vtppasswd;設置發(fā)vtp密碼switch(config)#vtpmodeserver;設置發(fā)vtp模式switch(config)#vtpmodecl

5、ient;設置發(fā)vtp模式交換機設置IP地址:switch(config)#interfacevlan1;進入vlan1switch(configif)#ipaddress;設置IP地址switch(config)#ipdefaultgateway;設置默認網(wǎng)關switch#dirflash:;查看閃存交換機顯示命令:switch#write;保存配置信息switch#showvtp;查看vtp配置信息router#copytftpfl

6、ash:;下傳文件到flashrouter#copytftpstartupconfig;下載配置文件ROM狀態(tài):CtrlBreak;進入ROM監(jiān)控狀態(tài)rommonconfreg0x2142;跳過配置文件rommonconfreg0x2102;恢復配置文件rommonreset;重新引導rommoncopyxmodem:flash:;從console傳輸文件rommonIP_ADDRESS=10.65.1.2;設置路由器IPrommonI

7、P_SUB_MASK=255.255.0.0;設置路由器掩碼rommonTFTP_SERVER=10.65.1.1;指定TFTP服務器IPrommonTFTP_FILE=c2600.bin;指定下載的文件rommontftpdnld;從tftp下載rommondirflash:;查看閃存內容rommonboot;引導IOS靜態(tài)路由:iproute;命令格式router(config)#iproute2.0.0.0255.0.0.01.1

8、.1.2;靜態(tài)路由舉例router(config)#iproute0.0.0.00.0.0.01.1.1.2;默認路由舉例動態(tài)路由:router(config)#iprouting;啟動路由轉發(fā)router(config)#routerrip;啟動RIP路由協(xié)議。router(configrouter)#wk;設置發(fā)布路由router(configrouter)#negihb;點對點幀中繼用。幀中繼命令:router(config)#f

9、ramerelayswitching;使能幀中繼交換router(configs0)#encapsulationframerelay;使能幀中繼router(configs0)#framrelaylmitypecisco;設置管理類型router(configs0)#framerelayintftypeDCE;設置為DCErouter(configs0)#framerelaydlci16;router(configs0)#framere

10、laylocaldlci20;設置虛電路號router(configs0)#framerelayinterfacedlci16;router(config)#logadjacencychanges;記錄鄰接變化router(config)#ints00.1pointtopoint;設置子接口點對點router#showframepvc;顯示永久虛電路router#showframemap;顯示映射基本訪問控制列表:router(conf

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論