![思科模擬器命令_第1頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/14/0b64ea4f-06ee-4849-8f36-c943bea1abf9/0b64ea4f-06ee-4849-8f36-c943bea1abf91.gif)
![思科模擬器命令_第2頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/14/0b64ea4f-06ee-4849-8f36-c943bea1abf9/0b64ea4f-06ee-4849-8f36-c943bea1abf92.gif)
![思科模擬器命令_第3頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/14/0b64ea4f-06ee-4849-8f36-c943bea1abf9/0b64ea4f-06ee-4849-8f36-c943bea1abf93.gif)
![思科模擬器命令_第4頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/14/0b64ea4f-06ee-4849-8f36-c943bea1abf9/0b64ea4f-06ee-4849-8f36-c943bea1abf94.gif)
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、1. 計算機命令 :PCA login: root;使用 root 用戶password: linux;口令是 linux# shutdown -h now;同 init 0 關機# logout# login# ifconfig;顯示 IP 地址# ifconfig eth0 <ip address> netmask <netmask>;設置 IP 地址# ifconfig eht0 <ip address> netmask <netmask> down; 刪除 IP 地址# route add default gw <ip>;設置
2、網(wǎng)關# route del default gw <ip>;刪除網(wǎng)關# route;顯示網(wǎng)關# ping <ip># telnet <ip>2. 交換機支持的命令:交換機基本狀態(tài):switch:rommon>;交換機的 ROM 狀態(tài);路由器的 ROM 狀態(tài)hostname>hostname#hostname(config)#hostname(config-if)#;用戶模式;特權模式;全局配置模式;接口狀態(tài)交換機口令設置:switch>enableswitch#config terminalswitch(config)#hostname &
3、lt;hostname>switch(config)#enable secret xxxswitch(config)#enable password xxaswitch(config)#line console 0switch(config-line)#line vty 0 4switch(config-line)#loginswitch(config-line)#password xxswitch#exit;進入特權模式;進入全局配置模式;設置交換機的主機名;設置特權加密口令;設置特權非密口令;進入控制臺口;進入虛擬終端;允許登錄;設置登錄口令xx;返回命令交換機VLAN設置:swit
4、ch#vlan databaseswitch(vlan)#vlan 2;進入 VLAN;建 VLAN 2設置精選文庫switch(vlan)#no vlan 2;刪 vlan 2switch(config)#int 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)#
5、switchport trunk encap dot1q;設置 vlan 中繼switch(config)#vtp domain <name>;設置發(fā) vtp 域名switch(config)#vtp password <word>;設置發(fā) vtp 密碼switch(config)#vtp mode server;設置發(fā) vtp 模式switch(config)#vtp mode client;設置發(fā) vtp 模式交換機設置 IP 地址:switch(config)#interface vlan 1;進入 vlan 1switch(config-if)#ip addre
6、ss <IP> <mask>;設置 IP 地址switch(config)#ip default-gateway <IP>;設置默認網(wǎng)關switch#dir flash:;查看閃存交換機顯示命令:switch#write;保存配置信息switch#show vtp;查看 vtp 配置信息switch#show run;查看當前配置信息switch#show vlan;查看 vlan 配置信息switch#show interface;查看端口信息switch#show int f0/0;查看指定端口信息3. 路由器支持的命令:路由器顯示命令:router#s
7、how run;顯示配置信息router#show interface;顯示接口信息router#show ip route;顯示路由信息router#show cdp nei;顯示鄰居信息router#reload;重新起動路由器口令設置:router>enable;進入特權模式router#config terminal;進入全局配置模式router(config)#hostname <hostname>;設置交換機的主機名router(config)#enable secret xxx;設置特權加密口令router(config)#enable password xxb
8、;設置特權非密口令router(config)#line console 0;進入控制臺口router(config-line)#line vty 0 4;進入虛擬終端router(config-line)#login;要求口令驗證router(config-line)#password xx;設置登錄口令xx2精選文庫router(config)#(Ctrl+z); 返回特權模式router#exit;返回命令路由器配置:router(config)#int s0/0;進入 Serail 接口router(config-if)#no shutdown;激活當前接口router(config-
9、if)#clock rate 64000;設置時鐘頻率router(config-if)#ip address <ip> <netmask>;設置 IP 地址router(config-if)#ip address <ip> <netmask> second;設置第二個 IProuter(config-if)#int f0/0.1;進入子接口router(config-subif.1)#ip address <ip> <netmask> ;設置子接口 IP router(config-subif.1)#encapsulat
10、ion dot1q <n> ;綁定 vlan 中繼協(xié)議router(config)#config-register 0x2142;跳過配置文件router(config)#config-register 0x2102;正常使用配置文件router#reload;重新引導路由器文件操作:router#copy running-config startup-config;保存配置router#copy running-config tftp;保存配置到 tftprouter#copy startup-config tftp;開機配置存到 tftprouter#copy tftp fla
11、sh:;下傳文件到 flashrouter#copy tftp startup-config;下載配置文件ROM 狀態(tài):Ctrl+Break;進入 ROM 監(jiān)控狀態(tài)rommon>confreg 0x2142;跳過配置文件rommon>confreg 0x2102;恢復配置文件rommon>reset;重新引導rommon>copy xmodem:<sname> flash:<dname>;從 console傳輸文件;設置路由器IP;設置路由器掩碼;指定 TFTP 服務器IPrommon>TFTP_FILE=c2600.bin;指定下載的文件
12、rommon>tftpdnld;從 tftp 下載rommon>dir flash:;查看閃存內(nèi)容rommon>boot;引導 IOS靜態(tài)路由:ip route <ip-address> <subnet-mask> <gateway> ;命令格式;靜態(tài)路由舉例;默認路由舉例3精選文庫動態(tài)路由:router(config)#ip routing;啟動路由轉發(fā)router(config)#router rip;啟動 RIP 路由協(xié)議。router(config-router)#network <netid>;設置發(fā)布路由router
13、(config-router)#negihbor <ip>;點對點幀中繼用。幀中繼命令:router(config)#frame-relay switching;使能幀中繼交換router(config-s0)#encapsulation frame-relay;使能幀中繼router(config-s0)#fram-relay lmi-type cisco;設置管理類型router(config-s0)#frame-relay intf-type DCE;設置為 DCErouter(config-s0)#frame-relay dlci 16;router(config-s0)#
14、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#show frame map;顯示映射基本訪問控制列表:router(config)#access-list <number> permit|deny <source
15、_ip> <wild|any>router(config)#interface <interface>;default:deny anyrouter(config-if)#ip access-group <number> in|out;defaultut例 1:router(config)#access-list 1 permit anyrouter(config)#int f0/0router(config-if)#ip access-group 4 in例 2:router(config)#int f0/1router(config-if)#ip
16、access-group 4 in擴展訪問控制列表:access-list <number> permit|deny icmp <S_IP wild> <D_IP wild>type access-list <number> permit|deny tcp <S_IP wild> <D_IP wild>port例 1:4精選文庫router(config)#access-list 101 permit ip any anyrouter(config)#int s0/0router(config-if)#ip access-
17、group 101 in例 2:router(config-if)#ip access-group 102 out刪除訪問控制例表 :router(config)#no access-list 102router(config-if)#no ip access-group 101 in路由器的 nat 配置Router(config-if)#ip nat inside;當前接口指定為內(nèi)部接口Router(config-if)#ip nat outside;當前接口指定為外部接口Router(config)#ip nat inside source static p <私有 IP>&
18、lt;公網(wǎng) IP> portRouter(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 interface s0/0 overloadRouter#show ip nat translationrotary 參數(shù)是輪流的意思,地址池中的IP 輪流與 NAT 分配的地址匹配。overload 參數(shù)用于 PAT 將內(nèi)部 IP 映射到一個公網(wǎng)IP 不同的端口上。
19、外部網(wǎng)關協(xié)議配置配置 PPP 驗證:RouterA(config)#username <RouterB> password <word>RouterA(config)#int s0RouterA(config-if)#ppp authentication chap|pap4PIX 防火墻命令Pix525(config)#nameif ethernet0 outside security0;命名接口和級別Pix525(config)#interface ethernet0 auto;設置接口方式5精選文庫Pix525(config)#interface ethernet1
20、 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) -5;例句Pix525(conf
21、ig)#global (outside) 1;例句Pix525(config)#no global (outside) 1 ;去掉設置Pix525(config)#nat (if_name) nat_id local_ip netmark Pix525(config)#nat (inside) 1 0 0內(nèi)網(wǎng)所有主機 (0 代表可以訪問 global 1 指定的外網(wǎng)。內(nèi)網(wǎng)網(wǎng)段的主機可以訪問global 1 指定的外網(wǎng)。Pix525(config)#route if_name 0 0 gateway_ip metric;命令格式Pix525(config)#r
22、oute outside 0 0 1;例句Pix525(config)#route inside 1;例句Pix525(config)#static (inside, outside) 表示內(nèi)部 ip 地址 ,訪問外部時被翻譯成 全局地址。Pix525(config)#static (dmz,中間區(qū)域 ip 地址,訪問外部時被翻譯成全局地址。1. switch 配置命令(1)模式轉換命令用戶模式 -特權模式 ,使用命令 "e
23、nable"特權模式 -全局配置模式 ,使用命令 "config t"全局配置模式 -接口模式 ,使用命令 "interface+接口類型 +接口號 " 全局配置模式 -線控模式 ,使用命令 "line+ 接口類型 +接口號 "注 :用戶模式 :查看初始化的信息 .特權模式 :查看所有信息、調(diào)試、保存配置信息全局模式:配置所有信息、針對整個路由器或交換機的所有接口接口模式:針對某一個接口的配置線控模式:對路由器進行控制的接口配置( 2)配置命令show running config 顯示所有的配置show versin 顯示
24、版本號和寄存器值shut down 關閉接口no shutdown 打開接口6精選文庫ip add +ip 地址 配置 IP 地址secondary+IP地址 為接口配置第二個 IP 地址 show interface+接口類型 +接口號 查看接口管理性 show controllers interface 查看接口是否有 DCE 電纜 show history 查看歷史記錄 show terminal 查看終端記錄大小hostname+主機名 配置路由器或交換機的標識 config memory 修改保存在 NVRAM 中的啟動配置 exec timeout 0 0 設置控制臺會話超時為 0
25、 service password-encryptin 手工加密所有密碼 enable password +密碼 配置明文密碼ena sec +密碼 配置密文密碼line vty 0 4/15 進入 telnet 接口password +密碼 配置 telnet 密碼line aux 0 進入 AUX 接口password +密碼 配置密碼line con 0 進入 CON 接口password +密碼 配置密碼bandwidth+數(shù)字 配置帶寬no ip address 刪除已配置的 IP 地址show startup config 查看 NVRAM 中的配置信息 copy run-conf
26、ig startup config 保存信息到 NVRAM write 保存信息到 NVRAMerase startup-config 清除 NVRAM 中的配置信息show ip interface brief 查看接口的謫要信息banner motd # +信息 + # 配置路由器或交換機的描素信息description+信息 配置接口聽描素信息vlan database 進入 VLAN 數(shù)據(jù)庫模式vlan +vlan 號 + 名稱 創(chuàng)建 VLANswitchport access vlan +vlan號 為 VLAN 為配接口 interface vlan +vlan 號 進入 VLAN
27、 接口模式ip add +ip 地址 為 VLAN 配置管理 IP 地址 vtp+service/tracsparent/client 配置 SW 的 VTP 工作模式 vtp +domain+域名 配置 SW 的 VTP 域名vtp +password +密碼 配置 SW 的密碼switchport mode trunk 啟用中繼no vlan +vlan 號 刪除 VLANshow spamming-tree vlan +vlan號 查看 VLA 怕生成樹議2. 路由器配置命令ip route+非直連網(wǎng)段 +子網(wǎng)掩碼 +下一跳地址 配置靜態(tài) /默認路由 show ip route 查看路由
28、表show protocols 顯示出所有的被動路由協(xié)議和接口上哪些協(xié)議被設置show ip protocols 顯示了被配置在路由器上的路由選擇協(xié)議 ,同時給出了在路由選擇協(xié)議中使用7精選文庫的定時器等信息router rip 激活 RIP 協(xié)議network +直連網(wǎng)段發(fā)布直連網(wǎng)段interface lookback 0 激活邏輯接口passive-interface +接口類型 +接口號 配置接口為被動模式 debug ip +協(xié)議 動態(tài)查看路由更新信息undebug all 關閉所有 DEBUG 信息router eigrp +as號 激活 EIGRP 路由協(xié)議network +網(wǎng)段
29、+子網(wǎng)掩碼發(fā)布直連網(wǎng)段show ip eigrp neighbors 查看鄰居表show ip eigrp topology 查看拓撲表show ip eigrp traffic 查看發(fā)送包數(shù)量router ospf +process-ID 激活 OSPF 協(xié)議network+直連網(wǎng)段 +area+區(qū)域號發(fā)布直連網(wǎng)段show ip ospf 顯示 OSPF 的進程號和 ROUTER-IDencapsulation+封裝格式更改封裝格式no ip admain-lookup 關閉路由器的域名查找ip routing 在三層交換機上啟用路由功能show user 查看 SW 的在線用戶clear
30、line +線路號清除線路3. 三層交換機配置命令配置一組二層端口configure terminal 進入配置狀態(tài)nterface range port-range 進入組配置狀態(tài)配置三層端口configure terminal 進入配置狀態(tài)interface fastethernet | gigabitethernet interface-id | vlan vlan-id | port-channel port-channel-number 進入端口配置狀態(tài) no switchport 把物理端口變成三層口ip address ip_address subnet_mask配置 IP 地址
31、和掩碼 no shutdown 激活端口例:Switch(config)# interface gigabitethernet0/2Switch(config-if)# no switchport配置 VLANconfigure terminal 進入配置狀態(tài)vlan vlan-id 輸入一個 VLAN 號, 然后進入 vlan 配態(tài),可以輸入一個新的 VLAN 號或舊的來進行修改。name vlan-name 可選 )輸入一個 VLAN 名,如果沒有配置 VLAN 名,缺省的名字是 VLAN 號前面用 0 填滿8精選文庫的 4 位數(shù),如 VLAN0004 是 VLAN4 的缺省名字 mtu
32、mtu-size (可選 ) 改變 MTU 大小例Switch# configure terminal Switch(config)# vlan 20 Switch(config-vlan)# name test20Switch(config-vlan)# end或Switch# vlan databaseSwitch(vlan)# vlan 20 name test20Switch(vlan)# exit將端口分配給一個VLANconfigure terminal 進入配置狀態(tài)interface interface-id 進入要分配的端口switchport mode access 定義二層
33、口switchport access vlan vlan-id 把端口分配給某一VLAN例Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# interface fastethernet0/1Switch(config-if)# switchport mode accessSwitch(config-if)# switchport access vlan 2Switch(config-if)# endSwitch#配置 VLAN trunkco
34、nfigure terminal 進入配置狀態(tài)interface interface-Id 進入端口配置狀態(tài)switchport trunk encapsulation isl | dot1q | negotiate 配置 trunk 封裝 ISL 或 802.1Q 或自動協(xié)商switchport mode dynamic auto | desirable | trunk 配置二層 trunk 模式。dynamic auto 自動協(xié)商是否成為trunkdynamic desirable 把端口設置為 trunk 如果對方端口是 trunk, desirable, 配置 Native VLAN(
35、 802.1q)或自動模式, trunk設置端口為強制的 trunk 方式,而不理會對方端口是否為 trunkswitchport access vlan vlan-id 可選 ) 指定一個缺省 VLAN, 如果此端口不再是 trunkswitchport trunk native vlan vlan-id 指定 802.1Q native VLAN 號例:Switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)# interface fastethe
36、rnet0/49精選文庫Switch(config-if)# switchport mode trunkSwitch(config-if)# switchport trunk encapsulation dot1qSwitch(config-if)# end定義 TRUNK 允許的 VLANconfigure terminal 子 進入配置狀態(tài)interface interface-id 進入端口配置switchport mode trunk 配置二層口為 trunkswitchport trunk allowed vlan add | all | except | remove vlan-l
37、ist 可選 ) 配置 trunk 允許的 VLAN. 使用 add, all, except, remove關健字no switchport trunk allowed vlan 允許所有 VLAN 通過例Switch(config)# interface fastethernet0/1Switch(config-if)# switchport trunk allowed vlan remove 2Switch(config-if)# end配置 Native VLAN (802.1q)configure terminal 進入配置狀態(tài)interface interface-id 進入配置成
38、 802.1qtrunk 的端口 switchport trunk native vlan vlan-Id 配置 native VLAN 號 no switchport trunk native vlan 端口配置命令回到缺省的狀態(tài)配置基于端口權值的負載均衡configure terminal 進入 Switch 1 配置狀態(tài)vtp domain domain-name 配置 VTP 域vtp mode server 將 Switch 1 配置成 VTP server.show vtp status 驗證 VTP 的配置show vlan 驗證 VLANconfigure terminal 進
39、入配置狀態(tài)interface fastethernet 0/1 進入 F0/1 端口switchport trunk encapsulation isl | dot1q | negotiate配置 trunk 封裝 switchport mode trunk 配置成 trunkshow interfaces fastethernet0/1 switchport驗證 VLAN 配置按以上步驟對想要負載均衡的接口進行配置在另一個交換機上進行此配置show vlan 當 trunk 已經(jīng)起來,在 switch2 上驗證已經(jīng)學到相的 vlan 配置 configure terminal 在 Switc
40、h 1 上進入配置狀態(tài)interface fastethernet0/1 進入要配置的端口spanning-tree vlan 8 port-priority 10 將端口權值 10 賦與 VLAN 8. spanning-tree vlan 9 port-priority 10 將端口權值 10 賦與 VLAN 9. spanning-tree vlan 10 port-priority 10 將端口權值 10 賦與 VLAN 10. interface fastethernet0/2 進入 F0/2spanning-tree vlan 3 port-priority 10 將端口權值 10
41、 賦與 VLAN 3. spanning-tree vlan 4 port-priority 10 將端口權值 10 賦與 VLAN 4 spanning-tree vlan 5 port-priority 10 將端口權值 10 賦與 VLAN 5 spanning-tree vlan 6 port-priority 10 將端口權值 10 賦與 VLAN 1010精選文庫end 退出show running-config 驗證配置copy running-config startup-config 保存配置配置 STP 路徑值的負載均衡Trunk1 走 VLAN8 10,Trunk2 走
42、VLAN2 4configure terminal 進入 Switch 1 配置狀態(tài)interface fastethernet 0/1 進入 F0/1switchport trunk encapsulation isl | dot1q | negotiate配置封裝 switchport mode trunk 配置 Trunk,缺省是 ISL 封裝exit 退回在 F0/2 口上重復 24 步驟 exit 退回show running-config 驗證配置show vlan 驗證 switch1 已經(jīng)學到 Vlan configure terminal 進入配置狀態(tài) interface f
43、astethernet 0/1 進入 F0/1 spanning-tree vlan 2 cost 30 設置 Vlan2 spanning-tree vlan 3 cost 30 設置 Vlan3 spanning-tree vlan 4 cost 30 設置 Vlan4 end 退出生成樹路徑值為30生成樹路徑值為30生成樹路徑值為30在 switch1 的 F0/2 上重復 911 步驟設置 VLAN8,9 , 10 生成樹路徑值為 30 end 退出show running-config 驗證配置copy running-config startup-config 保存配置補充 :CISCO 命令集 路由選擇協(xié)議及排障*ip route 命令Router(config)# ip route <目錄網(wǎng)絡或子網(wǎng)號 > 子網(wǎng)掩碼 <下一路由器 IP 地址 | 從本地出口的地址 > 管理距離 0255,默認為 1(注:靜態(tài)地址配置)*ip default-network 命令Router(config)# ip default-network <目標網(wǎng)絡號 >(注:配合路由協(xié)使用,用其中的一個動態(tài)路由號作默認路由配置下一路由器 IP 地址 | 從本地出口的地址 >(注:只有一個公網(wǎng)地址時,在出口路由器上的配置)* 內(nèi)部路由選擇協(xié)議
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度綠色物流貨物代理合同示范文本
- 福建省福州市平潭縣城關教研片2024-2025學年八年級(上)期末物理試卷(含解析)
- 遵義2025年貴州遵義市綏陽縣政務服務管理局選調(diào)3人筆試歷年參考題庫附帶答案詳解
- 貴州2025年貴州省科學技術廳所屬事業(yè)單位招聘7人筆試歷年參考題庫附帶答案詳解
- 漯河2024年河南漯河市第六人民醫(yī)院(漯河市心血管病醫(yī)院)招聘高層次人才筆試歷年參考題庫附帶答案詳解
- 江西江西贛江新區(qū)中小學招聘2025屆部屬公費師范畢業(yè)生9人筆試歷年參考題庫附帶答案詳解
- 曲靖云南曲靖陸良縣紅十字會招聘公益性崗位工作人員筆試歷年參考題庫附帶答案詳解
- 2025年中國大盆市場調(diào)查研究報告
- 懷化2024年湖南懷化市司法局所屬事業(yè)單位懷化市天橋公證處招聘2人筆試歷年參考題庫附帶答案詳解
- 廣州2025年廣東廣州市荔灣中心醫(yī)院招聘編制外工作人員19人(第一批)筆試歷年參考題庫附帶答案詳解
- 2025年一種板式過濾膜裝置項目投資可行性研究分析報告
- BMS基礎知識培訓
- 質保管理制度
- 2024年全國卷新課標1高考英語試題及答案
- 2024年10月自考13003數(shù)據(jù)結構與算法試題及答案
- 華為經(jīng)營管理-華為激勵機制(6版)
- 2024年標準化工地建設管理實施細則(3篇)
- 干燥綜合征診斷及治療指南
- 糧油廠食品安全培訓
- 南京信息工程大學《教師領導力》2022-2023學年第一學期期末試卷
- 電力基本知識培訓課件
評論
0/150
提交評論