版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、【第一部分】交換機支持的命令:1.交換機基本狀態(tài): switch: ;ROM狀態(tài), 路由器是rommonhostname ;用戶模式hostname# ;特權模式hostname(config)# ;全局配置模式hostname(config-if)# ;接口狀態(tài)2.交換機口令設置: switchenable ;進入特權模式switch#config terminal ;進入全局配置模式switch(config)#hostname;設置交換機的主機名switch(config)#enable secret xxx ;設置特權加密口令switch(config)#enable password
2、 xxa ;設置特權非密口令switch(config)#line console 0 ;進入控制臺口switch(config-line)#line vty 0 4 ;進入虛擬終端switch(config-line)#login ;允許登錄switch(config-line)#password xx ;設置登錄口令xxswitch#exit ;返回命令3.交換機VLAN設置:switch#vlan database ;進入VLAN設置switch(vlan)#vlan 2 ;建VLAN 2switch(vlan)#no vlan 2 ;刪vlan 2switch(config)#int
3、f0/1 ;進入端口1switch(config-if)#switchport access vlan 2 ;當前端口加入vlan 2switch(config-if)#switchport mode trunk ;設置為干線switch(config-if)#switchport trunk allowed vlan 1,2 ;設置允許的vlanswitch(config-if)#switchport trunk encap dot1q ;設置vlan 中繼switch(config)#vtp domain;設置發(fā)vtp域名switch(config)#vtp password;設置發(fā)vtp
4、密碼switch(config)#vtp mode server ;設置發(fā)vtp模式switch(config)#vtp mode client ;設置發(fā)vtp模式4.交換機設置IP地址:switch(config)#interface vlan 1 ;進入vlan 1switch(config-if)#ip address;設置IP地址switch(config)#ip default-gateway;設置默認網(wǎng)關switch#dir flash: ;查看閃存5.交換機顯示命令:switch#write ;保存配置信息switch#show vtp ;查看vtp配置信息switch#show
5、 run ;查看當前配置信息switch#show vlan ;查看vlan配置信息switch#show interface ;查看端口信息switch#show int f0/0 ;查看指定端口信息【第二部分】路由器支持的命令:1.路由器顯示命令:router#show run ;顯示配置信息router#show interface ;顯示接口信息router#show ip route ;顯示路由信息router#show cdp nei ;顯示鄰居信息router#reload ;重新起動2.路由器口令設置:routerenable ;進入特權模式router#config term
6、inal ;進入全局配置模式router(config)#hostname;設置交換機的主機名router(config)#enable secret xxx ;設置特權加密口令router(config)#enable password xxb ;設置特權非密口令router(config)#line console 0 ;進入控制臺口router(config-line)#line vty 0 4 ;進入虛擬終端router(config-line)#login ;要求口令驗證router(config-line)#password xx ;設置登錄口令xxrouter(config)#(
7、Ctrl+z) ; 返回特權模式router#exit ;返回命令3.路由器配置:router(config)#int s0/0 ;進入Serail接口router(config-if)#no shutdown ;激活當前接口router(config-if)#clock rate 64000 ;設置同步時鐘router(config-if)#ip address;設置IP地址router(config-if)#ip address second ;設置第二個IProuter(config-if)#int f0/0.1 ;進入子接口router(config-subif.1)#ip addre
8、ss;設置子接口IProuter(config-subif.1)#encapsulation dot1q;綁定vlan中繼協(xié)議router(config)#config-register 0x2142 ;跳過配置文件router(config)#config-register 0x2102 ;正常使用配置文件router#reload ;重新引導4.路由器文件操作:router#copy running-config startup-config ;保存配置router#copy running-config tftp ;保存配置到tftprouter#copy startup-config
9、tftp ;開機配置存到tftprouter#copy tftp flash: ;下傳文件到flashrouter#copy tftp startup-config;下載配置文件ROM狀態(tài):Ctrl+Break ;進入ROM監(jiān)控狀態(tài)rommonconfreg 0x2142 ;跳過配置文件rommonconfreg 0x2102 ;恢復配置文件rommonreset;重新引導rommoncopy xmodem: flash: ;從console傳輸文件rommonIP_ADDRESS= ;設置路由器IPrommonIP_SUBNET_MASK= ;設置路由
10、器掩碼rommonTFTP_SERVER= ;指定TFTP服務器IPrommonTFTP_FILE=c2600.bin ;指定下載的文件rommontftpdnld ;從tftp下載rommondir flash: ;查看閃存內容rommonboot ;引導IOS5.靜態(tài)路由:ip route;命令格式router(config)#ip route ;靜態(tài)路由舉例router(config)#ip route ;默認路由舉例6.動態(tài)路由:router(config)#ip ro
11、uting ;啟動路由轉發(fā)router(config)#router rip ;啟動RIP路由協(xié)議。router(config-router)#network;設置發(fā)布路由router(config-router)#negihbor;點對點幀中繼用。7.幀中繼命令:router(config)#frame-relay switching ;使能幀中繼交換router(config-s0)#encapsulation frame-relay ;使能幀中繼router(config-s0)#fram-relay lmi-type cisco ;設置管理類型router(config-s0)#fra
12、me-relay intf-type DCE ;設置為DCErouter(config-s0)#frame-relay dlci 16 ;router(config-s0)#frame-relay local-dlci 20 ;設置虛電路號router(config-s0)#frame-relay interface-dlci 16 ;router(config)#log-adjacency-changes ;記錄鄰接變化router(config)#int s0/0.1 point-to-point ;設置子接口點對點router#show frame pvc ;顯示永久虛電路router#
13、show frame map ;顯示映射 8.基本訪問控制列表:router(config)#access-listpermit|denyrouter(config)#interface;default:deny anyrouter(config-if)#ip access-groupin|out ;defaultut例1:router(config)#access-list 4 permit router(config)#access-list 4 deny 55router(config)#access-list 4 permit 10.8.
14、0.0 55router(config)#access-list 4 deny 55router(config)#access-list 4 permit anyrouter(config)#int f0/0router(config-if)#ip access-group 4 in9.擴展訪問控制列表: access-listpermit|deny icmptypeaccess-listpermit|deny tcpport例3:router(config)#access-list 101 deny icmp any 10.64.0.
15、2 echorouter(config)#access-list 101 permit ip any anyrouter(config)#int s0/0router(config-if)#ip access-group 101 in例3:router(config)#access-list 102 deny tcp any eq 80router(config)#access-list 102 permit ip any anyrouter(config)#interface s0/1router(config-if)#ip access-
16、group 102 out10。刪除訪問控制例表:router(config)#no access-list 102router(config-if)#no ip access-group 101 in11.路由器的nat配置Router(config-if)#ip nat inside ;當前接口指定為內部接口Router(config-if)#ip nat outside ;當前接口指定為外部接口Router(config)#ip nat inside source static pportRouter(config)#ip nat inside source static 10.65.1
17、.2 Router(config)#ip nat inside source static tcp 80 80Router(config)#ip nat pool p1 0 Router(config)#ip nat inside source list 1 pool p1Router(config)#ip nat inside destination list 2 pool p2Router(config)#ip nat inside source list 2 interfac
18、e s0/0 overloadRouter(config)#ip nat pool p2 type rotaryRouter#show ip nat translationrotary 參數(shù)是輪流的意思,地址池中的IP輪流與NAT分配的地址匹配。overload參數(shù)用于PAT 將內部IP映射到一個公網(wǎng)IP不同的端口上。12.外部網(wǎng)關協(xié)議配置:routerA(config)#router bgp 100routerA(config-router)#network routerA(config-router)#ne
19、ighbor remote-as 20013.配置PPP驗證:RouterA(config)#usernamepassword RouterA(config)#int s0RouterA(config-if)#ppp authentication chap|pap【第三部分】PIX防火墻命令Pix525(config)#nameif ethernet0 outside security0 ;命名接口和級別Pix525(config)#interface ethernet0 auto ;設置接口方式Pix525(config)#interface ethernet1 100full ;設置接口方式Pix525(config)#interface ethernet1 100full shutdownPix525(config)#ip address inside Pix525(config)#ip address outside 52Pix525(config)#global (if_name) natid ip-ip ;定義公網(wǎng)IP區(qū)間Pix525(config)#global (outside) 1 -5 ;例句Pix525(config)
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度新能源儲能項目農(nóng)民工勞務合同規(guī)范4篇
- 二零二五版年薪制勞動合同:大數(shù)據(jù)分析行業(yè)專家協(xié)議4篇
- 2025年度農(nóng)行房貸利率調整專項合同書2篇
- 二零二五白蟻滅治與老舊建筑改造服務合同3篇
- 二零二五年度建筑工程合同履行補充協(xié)議范本3篇
- 個人承包旅游景區(qū)開發(fā)與經(jīng)營合同(2024版)3篇
- 二零二五年度節(jié)能環(huán)保門窗定制采購合同2篇
- 二手住宅買賣合同(2024版)范例2篇
- 二零二五版木托盤租賃與物流信息化建設合同4篇
- 管理決策知到智慧樹章節(jié)測試課后答案2024年秋山西財經(jīng)大學
- 飛鼠養(yǎng)殖技術指導
- 壞死性筋膜炎
- 2024輸血相關知識培訓
- 整式的加減單元測試題6套
- 股權架構完整
- 山東省泰安市2022年初中學業(yè)水平考試生物試題
- 注塑部質量控制標準全套
- 人教A版高中數(shù)學選擇性必修第一冊第二章直線和圓的方程-經(jīng)典例題及配套練習題含答案解析
- 銀行網(wǎng)點服務禮儀標準培訓課件
- 二年級下冊數(shù)學教案 -《數(shù)一數(shù)(二)》 北師大版
- 晶體三極管資料
評論
0/150
提交評論