配置标准ACL: router(config)# access-list Access-List-Number [ permit deny ] source [ source-mask ] <-- Access-List-Number 范围:1~99标准ACL;100~199扩展ACL;800~899标准IPX ACL;900~999扩展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
配置扩展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 <--进入DCE接口设置时钟速率--> router(config-if)# ^z
配置PPP协议: router(config)# username Name password Set-Password-Here <--验证方建立数据库--> router(config)# interface Type Port router(config-if)# encapsulation ppp <--启动PPP协议--> router(config-if)# ppp outhentication [ chap chap pap pap chap pap ] <--选择PPP认证--> router(config-if)# ppp pap sent-username Name password Password <--发送验证信息--> router(config-if)# ^z
CDP的控制: router(config-if)# cdp enable <--在指定端口启用CDP,缺省--> router(config-if)# no cdp enable <--在指定端口关闭CDP--> router(config)# cdp run <--使所有端口启用CDP--> router(config)# no cdp run <--使所有端口关闭CDP-->
Ping的使用: router# ping IP-Address router# ping <--扩展Ping命令--> Protocol [ip]:[ Protocol-Type ] <--选择协议类型--> Target IP address:IP-Address <--输入测试地址--> Repeat count [5]: <--选择发送的ICMP包数量--> Datagram size [100]: <--选择每个包的大小--> Timeout in seconds [2]: <--设置每个包的超时时间--> Extended commands [n]:y <--使用扩展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
修改寄存器数值: router(config)# config-register Value <--Cisco出厂默认Value=0x2102,Value范围:0x2100(进入ROM监视器),0x2101(使系统从ROM启动),0x2102~0x210F(使系统从NVRAM启动)。