a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 99|回复: 1

[综合] 路由器配置命令详细列表

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
Cisco路由设置装备摆设语句汇总   启动接口,分配IP地址:
2 q- P: S8 v: M  router>3 v( U# ?2 s: M9 J" Z
  router> enable$ t) U9 k, Y! l# g
  router#
: X' |! p- h5 |, _/ L) T  router# configure terminal
8 b& Z0 Q0 f, r7 T( b5 L+ C  router(config)#* X4 x, m  X  f
  router(config)# interface Type Port
. b" ~# l0 s( e. U& j( H( ~  router(config-if)# no shutdown
0 k2 x0 k5 U3 E& H" H( O  router(config-if)# ip address IP-Address Subnet-Mask% _( H: I0 Y8 _1 |% j  n2 @
  router(config-if)# ^z
2 L% m: D3 u% e! Q9 X  设置装备摆设RIP路由和谈:30秒更新一次, ~8 c; b  p- J" @8 \0 R
  router(config)# router rip+ R& @) e- M* m/ I3 A# B* z
  router(config-if)# network Network-Number 6 I- P% g2 R8 i
  router(config-if)# ^z
) a" f* ~* {( ]  设置装备摆设IGRP路由和谈:90秒更新一次
( @. B. y" k: q' w  i! F  router(config)# router igrp AS-Number
3 ]: W, t0 L7 }1 {: k  Y0 ~9 N. I  router(config-if)# network Network-Number # D" w$ u7 U; Q, s) k
  router(config-if)# ^z' n) V- Z. T* \8 A2 P; i
  设置装备摆设Novell IPX路由和谈:Novell RIP 60秒更新一次
% S- ?8 D' _0 \* r  router(config)# ipx routing [node address]
5 m3 z+ H# R9 U  router(config)# ipx maximum-paths Paths 6 U/ r, q$ |  f( x# T- p( F
  router(config)# interface Type Port
$ `- M7 c' Y  p% t( h  router(config-if)# ipx network Network-Number [encapsulation encapsulation-type] [secondary] # O3 x- u# I# ~5 U0 {" [
  router(config-if)# ^z* V+ E* A' _/ l* L2 A+ r
  设置装备摆设DDR:
) k; r4 Z- M% e" F+ Z+ H  router(config)# dialer-list Group-Number protocol Protocol-Type permit [list ACL-Number]  h) k1 h) [1 }1 F% D. K
  router(config)# interface bri 0
3 S- ~/ \+ ^& u3 k) l( Q  router(config-if)# dialer-group Group-Number
- Z. T0 {& Z9 Z0 Z! r9 r" d- @  router(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Number: ~: B4 ?* C. [, v" l, O! Y& \
  router(config-if)# ^z
4 _* E1 a; \  `5 `8 |  设置装备摆设ISDN:4 N+ I! C, L/ b( h
  router(config)# isdnth-typeth-Type # P% r* b. ~$ Y0 q. Q" n: P. F! E
  router(config-if)# ^z
, C6 t& P; [/ p: X) b  设置装备摆设Frame Relay:
( R, l' T) `- c* N7 @2 @  router(config-if)# encapsulation frame-relay [cisco | ietf ]# i" f3 {, y8 h
  router(config-if)# frame-relay lmi-type [ansi | cisco | q933a ]4 \( x0 k4 h& B; @
  router(config-if)# bandwidth kilobits) F4 u: m2 ]  G5 [' V4 M
  router(config-if)# frame-relay invers-arp [ Protocol ] [dlci ]& E. ~8 V8 W2 S! u. Q
    @1 b' B% f! m+ m$ o! i, Q
  , A2 D/ e& \/ Z, }  z
  . P& k7 r- W( U' {
  
  h; W. a' R1 p  {% W
7 N- w3 Q# A- ?  l9 c  
回复

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:31 | 显示全部楼层

路由器配置命令详细列表

router(config-if)# ^z</p>  设置装备摆设尺度ACL:. f6 E* |1 Q, U+ p" T' _- R
  router(config)# access-list Access-List-Number [ permit | deny ] source [ source-mask ]
* e) M  r- {- \  l) `  router(config)# interface Type Port
: V/ a, J' m. o2 A/ i. T6 C  router(config-if)# ip access-group Access-List-Number [ in | out ]
. i7 M( U' f- a& Y4 x$ s  router(config-if)# ^z
1 g) c" a0 T6 h. J. r9 t6 N: Z( i  设置装备摆设扩展ACL:
' p6 h, d' M5 Q/ y) p  router(config)# access-list Access-List-Number [ permit | deny ] [ Protocol | Protocol-Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ]
9 f% D; h" e: z- r% @  router(config)# interface Type Port: a# f4 w  b% I& S& d% I8 X5 S, O
  router(config-if)# ip access-group Access-List-Number [ in | out ]
. }4 w7 E9 p( z8 O5 }" J  router(config-if)# ^z) W% h. j$ a+ T: Y
  设置装备摆设命名ACL:" n! [# A3 Z2 |% b9 n
  router(config)# ip access-list [ standard | extended ] ACL-Name  O9 A! P; C) Q4 ]# e
  router(config [ std- | ext- ] nacl)# [ permit | deny ] [ IP-Access-List-Test-Conditions ]4 z+ {/ k" G- l* _4 M: m6 H
  router(config [ std- | ext- ] nacl)# no [ permit | deny ] [ IP-Access-List-Test-Conditions ]
" o& {* d3 N; [. U  router(config [ std- | ext- ] nacl)# ^z
7 ]3 b+ w, G; W8 f+ W8 \! O  router(config)# interface Type Port1 f& S' _9 X& d) F
  router(config-if)# ip access-group [ACL-Name | 1~199 ] [ in | out ]
3 J/ a3 f% ^( {% T  router(config-if)# ^z. U7 z4 A& y% j% F+ u
  设置装备摆设DCE时钟:# R, M9 D) c5 e) D4 f8 t5 Y
    router# show controllers Type Port
- p. o3 O" o6 N0 W2 q6 k+ Y. W/ D  router(confin-if)# clock rate 64000 0 b" H; `* {0 C3 N& B" f
  router(config-if)# ^z
1 L8 R8 [! ^$ Y& ~# u, K  设置装备摆设PPP和谈:
2 K, O' c# }0 T0 e2 m  router(config)# username Name password Set-Password-Here ) I, c4 N: z" r8 Y
  router(config)# interface Type Port
* m) w/ S; w2 r* [% v% i' i, s, j  router(config-if)# encapsulation ppp
2 D5 M, ^2 K6 C$ B) D5 [; ]  router(config-if)# ppp outhentication [ chap | chap pap | pap chap | pap ]
- s( c0 x1 N5 v( k  router(config-if)# ppp pap sent-username Name password Password
  Z  S% g1 {. K  router(config-if)# ^z
$ m- ^0 h1 {& k  j7 U  PAP单向认证设置装备摆设实例:# O# \4 Q8 F. n
  验证方:
  z1 n: G/ k$ @  router-server(config)# username Client password 12345 ! a) y! b& B! |: L( t1 w3 q% k
  router-server(config)# interface serial 09 S, T$ ~6 Z, c) C0 P. d
  router-server(config-if)# encapsulation ppp& y. a2 f4 b, |4 \
  router-server(config-if)# ppp authentication pap
' J! q# \. @- h% y% E  router-server(config-if)# ^z
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-14 22:30 , Processed in 0.654606 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表