CISCO常用配置命令及参数(3)- v5 L: [( ]6 E0 X4 j; l
配置标准ACL:
4 D f4 j. ^/ w router(config)# access-list Access-List-Number [ permit | deny ] source [ source-mask ] 9 [" \) j8 j, w) t' s
router(config)# interface Type Port
r1 A6 e2 j h! k1 Q) y router(config-if)# ip access-group Access-List-Number [ in | out ]
1 r: d, Q6 [! P! j& i0 { router(config-if)# ^z 9 T) j4 r$ `- o& `. ]
2 \6 E0 A0 J# p* }% z
配置扩展ACL: 4 b! _, S6 w7 ?
router(config)# access-list Access-List-Number [ permit | deny ] [ Protocol | Protocol-Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ] ; g9 G6 v2 m" ]- w5 W
router(config)# interface Type Port 8 ?# w) b* @7 A1 W# T6 z
router(config-if)# ip access-group Access-List-Number [ in | out ]
r- K! N7 v- K5 c q+ I router(config-if)# ^z
: d! X2 L# }1 X' e3 n% [ 6 u8 m5 @/ k; x- l
配置命名ACL:
( T1 \ Y' `+ z+ ~3 a- n router(config)# ip access-list [ standard | extended ] ACL-Name
6 }$ `1 K* q8 u: E3 t; R: ]4 ]8 B! U router(config [ std- | ext- ] nacl)# [ permit | deny ] [ IP-Access-List-Test-Conditions ]
6 I g0 W6 Y M% Z router(config [ std- | ext- ] nacl)# no [ permit | deny ] [ IP-Access-List-Test-Conditions ] 0 a: w% a* z( {; m
router(config [ std- | ext- ] nacl)# ^z + p8 a4 x) E. @6 I V* K4 c3 G
router(config)# interface Type Port
4 q5 }7 H- L" q3 ~- N. o& M router(config-if)# ip access-group [ACL-Name | 1~199 ] [ in | out ] g! ]9 p1 U' L# n7 o
router(config-if)# ^z 3 Y+ i( h, k( E1 d. U P" P
( }- [; }# ~% J3 C$ j8 {$ o7 z& b% } 配置DCE时钟:
! t; u1 p5 `3 c' k8 z6 I/ B; e router# show controllers Type Port
! i: m( o. E G router(confin-if)# clock rate 64000
X5 y) K1 b1 R/ V router(config-if)# ^z " @( o; Q5 ?& Q6 h0 Y7 q" ^
' R6 C2 a' c. r1 v, |, m
配置PPP协议:
1 R) v V. E" [" \" _ c2 s$ F router(config)# username Name password Set-Password-Here 4 p) R6 h3 l6 v; t8 Q0 z# b4 v
router(config)# interface Type Port
; z j, _! g; q, o router(config-if)# encapsulation ppp
( ~) x6 K" j. W3 Z router(config-if)# ppp outhentication [ chap | chap pap | pap chap | pap ]
# q+ S5 g0 v( J5 b1 f: K: W) g router(config-if)# ppp pap sent-username Name password Password / x' K, X8 j8 O6 G1 u3 Q
router(config-if)# ^z |