配置標(biāo)準(zhǔn)ACL: router(config)# access-list Access-List-Number [ permit deny ] source [ source-mask ] <-- Access-List-Number 范圍:1~99標(biāo)準(zhǔn)ACL;100~199擴(kuò)展ACL;800~899標(biāo)準(zhǔn)IPX ACL;900~999擴(kuò)展IPX ACL;1000~1099 IPX SAP ACL;600~699Apple Talk ACL--> router(config)# interface Type Port router(config-if)# ip access-group Access-List-Number [ in out ] router(config-if)# ^z
配置擴(kuò)展ACL: router(config)# access-list Access-List-Number [ permit deny ] [ Protocol Protocol-Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ] router(config)# interface Type Port router(config-if)# ip access-group Access-List-Number [ in out ] router(config-if)# ^z
配置命名ACL: router(config)# ip access-list [ standard extended ] ACL-Name router(config [ std- ext- ] nacl)# [ permit deny ] [ IP-Access-List-Test-Conditions ] router(config [ std- ext- ] nacl)# no [ permit deny ] [ IP-Access-List-Test-Conditions ] router(config [ std- ext- ] nacl)# ^z router(config)# interface Type Port router(config-if)# ip access-group [ACL-Name 1~199 ] [ in out ] router(config-if)# ^z
配置DCE時鐘: router# show controllers Type Port <--確定DCE接口--> router(confin-if)# clock rate 64000 <--進(jìn)入DCE接口設(shè)置時鐘速率--> router(config-if)# ^z
配置PPP協(xié)議: router(config)# username Name passWord Set-Password-Here <--驗證方建立數(shù)據(jù)庫--> router(config)# interface Type Port router(config-if)# encapsulation ppp <--啟動PPP協(xié)議--> router(config-if)# ppp outhentication [ chap chap pap pap chap pap ] <--選擇PPP認(rèn)證--> router(config-if)# ppp pap sent-username Name password Password <--發(fā)送驗證信息--> router(config-if)# ^z
CDP的控制: router(config-if)# cdp enable <--在指定端口啟用CDP,缺省--> router(config-if)# no cdp enable <--在指定端口關(guān)閉CDP--> router(config)# cdp run <--使所有端口啟用CDP--> router(config)# no cdp run <--使所有端口關(guān)閉CDP-->
Ping的使用: router# ping IP-Address router# ping <--擴(kuò)展Ping命令--> Protocol [ip]:[ Protocol-Type ] <--選擇協(xié)議類型--> Target IP address:IP-Address <--輸入測試地址--> Repeat count [5]: <--選擇發(fā)送的ICMP包數(shù)量--> Datagram size [100]: <--選擇每個包的大小--> Timeout in seconds [2]: <--設(shè)置每個包的超時時間--> Extended commands [n]:y <--使用擴(kuò)展Ping命令--> Sweep range of sizes [n]:
更改路由器啟動順序: router(config)# boot system Flash IOS-FileName router(config)# boot system tFTP IOS-FileName TFTP-IP-Address router(config)# boot system rom router(config)# ^z
修改寄存器數(shù)值: router(config)# config-register value <--Cisco出廠默認(rèn)value=0x2102,value范圍:0x2100(進(jìn)入ROM監(jiān)視器),0x2101(使系統(tǒng)從ROM啟動),0x2102~0x210F(使系統(tǒng)從NVRAM啟動)。 0x1=0x2101,從最小位開始改變-->
配置缺省路由: router(config)# ip defoult-network IP-Address <--動態(tài)缺省路由--> router(config)# ip route 0.0.0.0 0.0.0.0 [ Next-Hop-Address Local-Out-Port ] [Distace ] <--靜態(tài)缺省路由--> router(config)# ^z
其它命令: router# show version router# show running-config router# show startup-config router# show flash router# show interface [ Type Port ] router# show buffers router# show protocol router# show mem router# show stacks router# show processes router# show cdp entry [ Device-Name ] <--顯示指定鄰居三層信息--> router# show cdp neighbors router# show cdp neighbors detail <---顯示所有鄰居三層信息-> router# show ip router router# show ipx router router# show host router# show ip protocol router# show ip interface Type Port router# show ipx interface Type Port router# show ipx servers router# show ipx traffic router# show access-lists [ ACL-Number ] router# show isdn status router# show dialer <--查看ISDN撥號信息--> router# show isdn active router# show frame-relay pvc router# show frame-relay map router# show frame-relay lmi router# erase startup-config router# reload router# setup router# copy running-config startup-config router# copy startup-config running-config router# copy tftp running-config router# copy running-config tftp router# debug ipx routing activity router# debug ipx sap router# debug isdn q921 router# debug isdn q931 router# debug dialer router# debug ip rip router# clear interface bri [ 0 1 2 ]