




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、交換機 /路由器 /防火墻支持的命令1. 交換機支持的命令:交換機基本狀態:switch:; ROM 狀態, 路由器是 rommon>hostname>用戶模式hostname#;特權模式hostname(config#;全局配置模式hostname(config-if#;接口狀態交換機口令設置:switch>enable;進入特權模式switch#configterminal ;進入全局配置模式switch(config#hostname;設置交換機的主機名switch(config#enablesecret xxx ;設置特權加密口令switch(config#enabl
2、epassword xxa ;設置特權非密口令 switch(config#lineconsole 0;進入控制臺口switch(config-line#linevty 04;進入虛擬終端switch(config-line#login;允許登錄switch(config-line#passwordxx ;設置登錄口令 xxswitch#exit;返回命令交換機 VLAN 設置:switch#vlandatabase ;進入 VLAN 設置switch(vlan#vlan2;建 VLAN 2switch(vlan#novlan 2;刪 vlan 2switch(config#intf0/1;進
3、入端口 1switch(config-if#switchportaccess vlan 2;當前端口加入 vlan 2 switch(config-if#switchportmode trunk ;設置為干線switch(config-if#switchporttrunk allowed vlan 1, 2;設置允許的 vlan switch(config-if#switchporttrunk encap dot1q ;設置 vlan 中繼 switch(config#vtpdomain ;設置發 vtp 域名switch(config#vtppassword ;設置發 vtp 密碼switc
4、h(config#vtpmode server ;設置發 vtp 模式switch(config#vtpmode client ;設置發 vtp 模式交換機設置 IP 地址:switch(config#interfacevlan 1;進入 vlan 1switch(config-if#ipaddress ;設置 IP 地址switch(config#ipdefault-gateway ;設置默認網關switch#dirflash:;查看閃存交換機顯示命令:switch#write;保存配置信息switch#showvtp ;查看 vtp 配置信息switch#showrun ;查看當前配置信息
5、switch#showvlan ;查看 vlan 配置信息switch#showinterface ;查看端口信息switch#showint f0/0;查看指定端口信息2. 路由器支持的命令:路由器顯示命令:router#showrun ;顯示配置信息router#showinterface ;顯示接口信息router#showip route ;顯示路由信息router#showcdp nei ;顯示鄰居信息router#reload;重新起動路由器口令設置 :router>enable;進入特權模式router#configterminal ;進入全局配置模式router(conf
6、ig#hostname;設置交換機的主機名router(config#enablesecret xxx ;設置特權加密口令 router(config#enablepassword xxb ;設置特權非密口令 router(config#lineconsole 0;進入控制臺口router(config-line#linevty 04;進入虛擬終端router(config-line#login;要求口令驗證router(config-line#passwordxx ;設置登錄口令 xx router(config#(Ctrl+z; 返回特權模式router#exit;返回命令路由器配置:ro
7、uter(config#ints0/0;進入 Serail 接口router(config-if#noshutdown ;激活當前接口router(config-if#clockrate 64000;設置同步時鐘 router(config-if#ipaddress ;設置 IP 地址router(config-if#ipaddress second ;設置第二個 IP router(config-if#intf0/0.1;進入子接口router(config-subif.1#ipaddress ;設置子接口 IProuter(config-subif.1#encapsulationdot1q
8、 ;綁定 vlan 中繼協議 router(config#config-register0x2142;跳過配置文件 router(config#config-register0x2102;正常使用配置文件 router#reload;重新引導路由器文件操作:router#copyrunning-config startup-config ;保存配置router#copyrunning-config tftp ;保存配置到 tftprouter#copystartup-config tftp ;開機配置存到 tftprouter#copytftp flash:;下傳文件到 flashrouter
9、#copytftp startup-config ;下載配置文件ROM 狀態:Ctrl+Break;進入 ROM 監控狀態rommon>confreg0x2142;跳過配置文件rommon>confreg0x2102;恢復配置文件rommon>reset;重新引導rommon>copyxmodem:flash:;從 console 傳輸文件rommon>tftpdnld;從 tftp 下載rommon>dirflash:;查看閃存內容rommon>boot;引導 IOS靜態路由:ip route ;命令格式動態路由:router(config#ipro
10、uting ;啟動路由轉發router(config#routerrip ;啟動 RIP 路由協議。router(config-router#network;設置發布路由router(config-router#negihbor;點對點幀中繼用。幀中繼命令:router(config#frame-relayswitching ;使能幀中繼交換 router(config-s0#encapsulationframe-relay ;使能幀中繼 router(config-s0#fram-relaylmi-type cisco ;設置管理類型 router(config-s0#frame-relay
11、intf-type DCE ;設置為 DCE router(config-s0#frame-relaydlci 16;router(config-s0#frame-relaylocal-dlci 20;設置虛電路號 router(config-s0#frame-relayinterface-dlci 16;router(config#log-adjacency-changes;記錄鄰接變化 router(config#ints0/0.1point-to-point ;設置子接口點對點 router#showframe pvc ;顯示永久虛電路router#showframe map ;顯示映射
12、基本訪問控制列表:router(config#access-listpermit|denyrouter(config#interface; default:denyanyrouter(config-if#ipaccess-group in|out; default:ut例 1:router(config#intf0/0router(config-if#ipaccess-group 4in擴展訪問控制列表:access-list permit|denyicmpwild>typeaccess-list permit|denytcpwild>port例 3:router(config-i
13、f#ipaccess-group 101in例 3:router(config#access-list102permit ip any anyrouter(config#interfaces0/1router(config-if#ipaccess-group 102out協議 路由協議 路由器配置 交換機配置 加密 上一頁 12QQ 推出 Windows2003教程win2003安裝介紹 win2003網絡優化 win2003使用技巧win2003系統故障 服務器配置 專家答疑幀中繼命令:router(config#frame-relayswitching ; 使 能 幀 中 繼 交 換 ro
14、uter(config-s0#encapsulation frame-relay ; 使 能 幀 中 繼 router(config-s0#fram-relaylmi-type cisco ; 設 置 管 理 類 型 router(config-s0#frame-relayintf-type DCE ; 設 置 為 DCErouter(config-s0#frame-relaydlci 16; router(config-s0#frame-relaylocal-dlci 20;設置虛電路號 router(config-s0#frame-relay interface-dlci 16; router(config#log-adjacency-changes; 記 錄 鄰 接 變 化 router(config#int s0/0.1point-to-point ; 設 置 子 接 口 點 對 點 router#showf
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 網絡設備配置要點試題及答案
- 2025屆湖北省孝感市漢川市數學八下期末監測試題含解析
- 行政法學高效學習試題及答案策略
- 2025軟考網絡管理員技巧與試題
- 高考數學復習資料試題及答案
- 經營風險管理計劃
- 部門目標與個人目標的協同計劃
- 新學年教學工作總體規劃計劃
- 策劃班級知識分享會計劃
- 內部審核對生產計劃的支持
- 膝痹病(膝關節退行性病變)中醫診療方案
- 起重機械作業人員考試題庫300題含標準答案
- GB/T 23723.5-2025起重機安全使用第5部分:橋式和門式起重機
- 植物提取物分類與提取方法課件
- 《元代染織工藝》課件
- 《熱愛生命》課件-初中教育-教育專區
- 微信公眾號運營協議
- 2024年銀行業全渠道客戶旅程分析與精細化線上運營白皮書-火山引擎
- 江蘇省鹽城市阜寧縣多校2024-2025學年九年級上學期12月月考語文試題含答案
- 基于Arduino的智能鬧鐘設計與制作
- DB36T 477-2019 商品肉鵝規模養殖生產技術規程
評論
0/150
提交評論