思科路由器基本配置与常用配置命令-应用技巧(2)

王朝数码·作者佚名  2011-03-09
宽屏版  字体: |||超大  

router(config-if)# keepalive Number

--

router(config-if)# frame-lelay local-dlci Number

--

router(config-if)# interface Type Port.Subininterface-Number [ multipoint point-to-point ]

router(config-subif)# ip unnumbered Interface

router(config-subif)# frame-lelay local-dlci Number

--

router(config-if)# ^z配置标准ACL:

router(config)# access-list Access-List-Number [ permit deny ] source [ source-mask ]

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

router(confin-if)# clock rate 64000

router(config-if)# ^z配置PPP协议:

router(config)# username Name password Set-Password-Here

router(config)# interface Type Port

router(config-if)# encapsulation ppp

router(config-if)# ppp outhentication [ chap chap pap pap chap pap ]

router(config-if)# ppp pap sent-username Name password Password

router(config-if)# ^zPAP单向认证配置实例:

验证方:

router-server(config)# username Client password 12345

router-server(config)# interface serial 0

router-server(config-if)# encapsulation ppp

router-server(config-if)# ppp authentication pap

router-server(config-if)# ^z

被验证方:

router-client(config-if)# encapsulation ppp

router-client(config-if)# ppp pap sent-username Client password 12345

router-client(config-if)# ^zPAP双向认证配置实例

第一页    上一页    第2页/共2页    下一页    最后页
第01页 第02页 
 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有