CISCO常用配置命令及参数(3)+ e/ ^ F' W( G9 u: J
配置标准ACL:
$ g1 {- v' a' W; z! K router(config)# access-list Access-List-Number [ permit | deny ] source [ source-mask ] . a5 y B' _) L# _4 @
router(config)# interface Type Port 3 A& a# v# u0 B; _( ^& W5 Y
router(config-if)# ip access-group Access-List-Number [ in | out ]
, g+ S" q3 f/ y- A& K! ?* _ router(config-if)# ^z + g1 e+ q: R- {, d& w t" R
) L' i- |% F8 j; b% B
配置扩展ACL: 8 D8 b2 v9 f8 U- N1 m! x
router(config)# access-list Access-List-Number [ permit | deny ] [ Protocol | Protocol-Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ] " Z1 d/ L* X) {1 c/ {
router(config)# interface Type Port ( i& x# V$ S3 W) b+ f! Z
router(config-if)# ip access-group Access-List-Number [ in | out ]
7 G: L! u* q3 Q router(config-if)# ^z
* V% r) ^% @% w( ~5 G * E/ E% R ^5 w! K& Q
配置命名ACL: ) E' m* Z+ Y: a1 ?7 n
router(config)# ip access-list [ standard | extended ] ACL-Name
; H# p5 Z$ y- q/ [6 @ router(config [ std- | ext- ] nacl)# [ permit | deny ] [ IP-Access-List-Test-Conditions ] # a7 {( N0 {/ _0 o! P$ m: T3 d
router(config [ std- | ext- ] nacl)# no [ permit | deny ] [ IP-Access-List-Test-Conditions ]
2 Q& h. X- s* {( O! X1 J# k0 { router(config [ std- | ext- ] nacl)# ^z ' n3 @* ]) _: x
router(config)# interface Type Port
& ^0 x% R' ^7 F" _ router(config-if)# ip access-group [ACL-Name | 1~199 ] [ in | out ] 5 ?2 w4 t- _2 _ y/ F# }4 e
router(config-if)# ^z 9 h: a1 {: @$ r5 D* r- G: ?( f
) @9 w& {, K- V/ i+ a0 |& A; C0 m 配置DCE时钟:
% a" e/ L( x' {! z1 N. r router# show controllers Type Port
6 ?' v0 p% M7 A# [+ F, o router(confin-if)# clock rate 64000 # H* I' ], W0 }( r4 ~0 }) }0 e
router(config-if)# ^z
( A! v6 ^& i# a" t2 S2 C 3 W0 v' o; v$ t' `
配置PPP协议:
) u. ]+ \* O6 `. w router(config)# username Name password Set-Password-Here 4 |7 n' Y% k1 ]- J* Z
router(config)# interface Type Port
_5 n# o! [! L. `! P) D router(config-if)# encapsulation ppp + z3 E. A( m0 |* }2 [
router(config-if)# ppp outhentication [ chap | chap pap | pap chap | pap ]
( x X: z& U) r+ I8 p! Z( M router(config-if)# ppp pap sent-username Name password Password
3 C( I6 f \0 @: V router(config-if)# ^z |