a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 279|回复: 5

[其他] 路由器ppp协议配置和认证

[复制链接]
发表于 2012-8-3 10:16:48 | 显示全部楼层 |阅读模式
+ [  {% _+ S4 n, g( h

0 g# n1 O6 k: D6 B4 x$ ?- P+ y  路由器ppp协议配置和认证:! X% j4 _% p. d( a$ W
  Router 0 的配置:
2 W4 ?& H/ D: [) u% S3 g5 G  --- System Configuration Dialog ---
5 E9 B4 P2 j; N% t8 d, ^  `6 }2 t# K  Continue with configuration dialog? [yes/no]: no
# J  G0 i* l+ F0 q2 @  Press RETURN to get started!
# n! \% [0 v! a% X% y  Router>en& I& k+ Y3 z3 g5 |3 B- Y; `7 [2 q
  Router>enable( @) @9 ~3 ?& z8 q" u
  Router#conf! t$ c" _% w0 G# P; ?
  Router#configure& G) W/ y0 Q$ s  }
  Router#configure terminal
- j! E$ U* R% z1 |# w4 {1 R* N  Enter configuration commands, one per line. End with CNTL/Z.# j0 A% g" X( j9 \2 P3 d
  Router(config)#int5 Y. X, }# b1 y; b( i
  Router(config)#interface f
- Y2 p, Z3 @: f  s; J! \  Router(config)#interface fastEthernet 0/0
; Y* H1 ~& m, Y7 w! j  Router(config-if)#ip add! Q% O& y/ W5 N+ I9 x0 E' W
  Router(config-if)#ip address 2.2.2.1 255.0.0.0/ M- k6 ~: f7 T! N) p% B$ f
  Router(config-if)#no shut; @9 f( E" f# x
  Router(config-if)#no shutdown: F# u6 a' d% s* t
  %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up+ ]- n5 \& s- r0 i- |- I
  %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up" P! i- j. B- x- `" j1 X9 k7 |
  Router(config-if)#exit
% }3 V6 [8 ~. ?) B9 e3 h  Router(config)#int$ @; L) d: J: i
  Router(config)#interface s6 J. a' V6 L! G& a
  Router(config)#interface serial 0/0
; }: n8 i0 G& }; ]4 r7 a- H& W- X. U- [" a
  Router(config-if)#ip add
回复

使用道具 举报

 楼主| 发表于 2012-8-3 10:16:49 | 显示全部楼层

路由器ppp协议配置和认证

</p>  Router(config-if)#ip address 1.1.1.1 255.0.0.0
, p) V6 i8 w( \! _' G7 V$ _) m  Router(config-if)#nos hut# e3 A3 g$ c% c$ S
  Router(config-if)#no shut
: U& p3 W0 x" N. R+ o  Router(config-if)#no shutdown; a: B0 u6 t6 n, k) V$ d4 b) i
  %LINK-5-CHANGED: Interface Serial0/0, changed state to down
: H( K8 s! B3 q$ u  Router(config-if)#
" Y1 T7 R$ `2 u7 _. ^, @  Router(config-if)#
) ^. a0 [" a/ x% w; S3 I$ r  %LINK-5-CHANGED: Interface Serial0/0, changed state to up
( @% P+ @& `8 N" c2 ^( |  Router(config-if)#exit
# h' u% T6 }. o5 S  F5 N  Router(config)#ip rout
- _- G/ t, a( v8 J) e  Router(config)#ip route 3.3.3.0 255.0.0.0 s
/ k/ U; e+ x6 ^  Router(config)#ip route 3.3.3.0 255.0.0.0 serial 0/03 \8 a: |9 m* i9 R
  Router(config)#nos hut$ s9 T5 ~/ X6 u/ H
  Router(config)#no shut7 w5 |, l3 q3 E- v& [3 k
  Router(config)#end: r) j- w! H7 k5 p3 N+ M+ J
  %SYS-5-CONFIG_I: Configured from console by console
/ {1 O7 z! |# m* a$ L) B% c. U  Router#show ip rou
7 L" Z/ c: ~* Z& v$ B  Router#show ip route
4 W) s. F) ^9 M7 v" }  Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP$ G, m: q8 m0 |# J" }* v
  D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area$ s  W9 x9 i( C  I' D
  N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2% Z8 Q' u. z8 i7 r& `
  E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP* P9 P# |9 ?: J* j* p& v
  i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* }  D8 U0 ]) p
  * - candidate default, U - per-user static route, o - ODR$ r& z6 @' ^& I0 n2 k
  P - periodic downloaded static route1 Z! `! \) u9 X4 W, s
  Gateway of last resort is not set4 G1 W2 e4 M! g1 J' ?, \8 T
  C 2.0.0.0/8 is directly connected, FastEthernet0/04 x' e8 Y  z3 T) K2 b
  Router#ping 3.3.3.2
+ W& r& c( r3 o7 e- b  Type escape sequence to abort.6 }# D* k& f4 s
  Sending 5, 100-byte ICMP Echos to 3.3.3.2, timeout is 2 seconds:
( f) }6 G* S# ?2 v: }  .....
1 H8 Z4 K0 w2 U; q2 E  Success rate is 0 percent (0/5)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 10:16:50 | 显示全部楼层

路由器ppp协议配置和认证

 Router#conf   Router#configure
* v" ^2 d* P+ j) A  Router#configure terminal
7 F% i0 X7 x" O1 n- i1 y9 z  Enter configuration commands, one per line. End with CNTL/Z.0 [7 P. P" g9 I5 d8 M9 O1 X, j
  Router(config)#int/ H/ F% C9 \& M2 z
  Router(config)#interface s
! X# a. s+ h/ g3 G9 X0 u  Router(config)#interface serial 0/0, J. W2 I7 e  }# y
  Router(config-if)#en: O1 }( W& N. ]% w7 H6 v9 r
  Router(config-if)#encapsulation ?
/ R( H: S! L& K4 z3 Q( c  frame-relay Frame Relay networks+ m3 M$ J$ V; l; q
  hdlc Serial HDLC synchronous9 H3 R/ i7 q8 T  ?0 @
  ppp Point-to-Point protocol
" \! t5 T) ?% n  K4 ?0 d  Router(config-if)#encapsulation ppp ?& ^4 Y# Z- o' K
  
1 W- |- e' D- K% B( O; A! _) u  Router(config-if)#encapsulation ppp4 b( J* Y8 j. e- H
  Router(config-if)#?
% J) M: V6 N+ I0 C/ ^  bandwidth Set bandwidth informational parameter8 y# d; q4 y. I7 a7 e1 w* C
  cdp CDP interface subcommands& N2 _) E( S. v4 b4 M4 P* O
  clock Configure serial interface clock6 V, I& _. A) K- k$ ~8 U
  delay Specify interface throughput delay4 a/ w% n( Z1 L2 X% |/ i
  description Interface specific description6 b' O+ F% V* ~
  encapsulation Set encapsulation type for an interface
# U0 s% w8 r) g5 Y  exit Exit from interface configuration mode
# z/ S# ^. z* R" S* K5 z/ P  frame-relay Set frame relay parameters
: n1 e0 E: U- i' S( C  ip Interface Internet Protocol config commands- q5 C: M. K: j- O( h0 |+ Z
  keepalive Enable keepalive- F* A, V; R% A- ~/ i
  no Negate a command or set its defaults9 o( h- t2 I# m# M" j7 }
  ppp Point-to-Point Protocol; Q0 `! w6 d& _# ^( }7 o% ]$ H
  shutdown Shutdown the selected interface
% Z# W1 Z. W6 o8 j/ D2 H  Router(config-if)#no shut
" b# D9 E$ z* D% T$ n6 M. b  Router(config-if)#no shutdown
8 Z8 Q! R" A5 |/ B  Router(config-if)#exit, T  h! M1 Y+ b8 O# o/ ^5 g
  Router(config)#int" K. J" c; S* [/ ]
  Router(config)#interface s
7 _# w4 b8 D" m9 r/ X- \$ O+ X  Router(config)#interface serial 0/0* M4 Z9 W% {0 A$ f) v0 E
  Router(config-if)#cl
, B: @) n$ {- w' d. u1 V4 d5 U  Router(config-if)#clock ?
9 J% i9 Y' G5 R2 y  rate Configure serial interface clock speed
; T5 t3 u% P1 O0 }- G5 P  Router(config-if)#clock r
1 e& @0 |  y+ l9 n- n; I  Router(config-if)#clock rate 64000% D/ w; S0 o& L. W
  Router(config-if)#
% p9 X) ~  }! K8 y; P& z; K6 o7 M+ i  %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upnoshut) J" \6 u2 Z- q1 y0 e, O% t
  Router(config-if)#no shut' E8 H: }% D2 p! r: s& w/ ~$ T, f
  Router(config-if)#no shutdown0 w4 M& g7 i8 M, G' o3 z" [
  Router(config-if)#
5 G+ d0 C7 ^/ r# Z* `$ r/ F  Router(config-if)#
* D! Z- r% I3 ?. v, L  Router#conf# X: o. v8 k6 \6 b, C
  Router#configure8 I/ g, y. ^) Q3 F9 Y  E- W

: N8 R/ n8 _! n, Y  Router#configure terminal
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 10:16:51 | 显示全部楼层

路由器ppp协议配置和认证

</p>  Enter configuration commands, one per line. End with CNTL/Z.8 G7 V$ `6 O& m+ C, ?2 w9 M
  Router(config)#interface serial 0/0
: M9 U$ e6 U5 U: i0 i" Y  Router(config-if)#ppp ?( Q$ Y3 V7 e! D4 X0 T  z; \
  authentication Set PPP link authentication method
/ i; v+ Y' X" b  u  pap Set PAP authentication parameters
5 e4 t1 F4 R) c' l( ]' d0 d, I  Router(config-if)#ppp a6 @7 R1 G* e5 W" ]& O
  Router(config-if)#ppp authentication ch
$ t: c0 g, W8 d' ]& J  Router(config-if)#ppp authentication chap
! M1 f/ |4 P( P- O: `  %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to downRouter(config-if)#exit
2 b- \, v" c9 S  Router(config)#ho& S- z1 Z. H$ t0 ?2 Z: L6 B
  Router(config)#hostname 111
% t% I8 _& d: l1 }  111(config)#enable password 112
$ d, e; V: H2 X. \4 V+ I  111(config)#?
( V; f# X- ]) T) d' u' M  Configure commands:# e2 M' s2 O! F7 i, \" P" ~7 ]  g
  access-list Add an access list entry
% S% X3 R  M- j  `" [  banner Define a login banner# n# u* b1 ]4 p
  boot Modify system boot parameters
7 d7 _% R$ D0 q. \8 ~6 d1 R7 [  cdp Global CDP configuration subcommands: d7 A, R6 f% t
  clock Configure time-of-day clock
* [" s: h3 V1 D2 M  config-register Define the configuration register
2 X. m. @, U% _" G, t  crypto Encryption module
. ~# s2 T: ]" O' U* ^% i  do To run exec commands in config mode! B6 q* P; f  I
  enable Modify enable password parameters/ L. E& Y" Q1 a6 A( ^# E& `( O
  end Exit from configure mode
+ k+ @  \/ Y7 j7 Y# r  exit Exit from configure mode
1 P1 R& z% I  S- g3 {6 |. g  hostname Set system's network name
; T( G( `0 Q5 Z  interface Select an interface to configure) W% ]. {$ ^! S) o0 R2 F3 S
  ip Global IP configuration subcommands
- H5 H/ I2 K& Y& P$ a6 I. v1 z  line Configure a terminal line
/ g/ P2 u! E: T+ v0 K  no Negate a command or set its defaults$ K3 J- E3 y* u
  router Enable a routing process( {2 V" p4 T( I+ k5 @
  service Modify use of network based services
( r# Q6 h' A; x1 X9 Q4 p9 p  username Establish User Name Authentication
+ Q; g5 B- g& v0 }2 q) c$ T  111(config)#username 221 p$ ]- I1 y8 q3 \5 F  _" X
  111(config)#username 221 password 222
* M" U; D2 `* A" H  111(config)#* P, M1 y$ n. f4 h
  111(config)#' D% m1 `; `% H7 x
  Router 1 配置:7 [: F- {; W) }& w4 T$ |5 O
  --- System Configuration Dialog ---
' i1 O, }0 X6 |" Z( N2 H+ J  Continue with configuration dialog? [yes/no]: no  M; O1 W' j- `7 Y! _) J
  Press RETURN to get started!  r! Z4 S9 l/ Y7 }. V6 f
  Router>en
0 j: Y3 @0 Z6 _4 h' H! [  Router>enable
6 r& `) H! u: n+ b* e  Router#conf
& N8 X" ?5 a4 v) h+ x( ?  Router#configure
, w+ h  N$ x# k' s3 H1 u! B  Router#configure terminal
  X. }5 _, C& C  Enter configuration commands, one per line. End with CNTL/Z.
3 q1 S% V5 z# c% ^' x5 a0 E4 p1 }  Router(config)#int
; Z# f: E3 V9 u, }  Router(config)#interface
8 e9 |; W5 [) a  Router(config)#interface f
# v, J% {0 M* c5 b% i2 m  Router(config)#interface fastEthernet 0/0# o- ^& ]+ A: g/ p0 \7 c# Y
  Router(config-if)#ip add4 `' o8 w' ^2 O& M. r3 ^6 k
  Router(config-if)#ip address 3.3.3.1 255.0.0.0
- [- |4 C* n6 W0 m* X: \$ ?  Router(config-if)#no shut
6 v* m5 G0 E1 e2 m0 w8 S  Router(config-if)#no shutdown
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 10:16:52 | 显示全部楼层

路由器ppp协议配置和认证

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up   %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up, U/ |, ]) @  L+ N) q- ^5 n0 P) B
  Router(config-if)#exit  B3 N6 F2 l, f, e2 d
  Router(config)#int
) B/ M3 t& W6 ]8 K  Router(config)#interface f
5 g) U" ~5 a0 U1 Y. u  Router(config)#interface s4 g/ I6 j$ A8 v' D
  Router(config)#interface serial 0/0  n: E6 M4 |  \3 P) d
  Router(config-if)#ip add8 O) l$ O6 Z( ?% X; g
  Router(config-if)#ip address 2.2.2.2 255.0.0.07 I- P$ R8 L+ o+ T7 D; X# y
  Router(config-if)#no shut1 V+ c: X. p& |
  Router(config-if)#no shutdown
! H9 D% x4 ^" d, C  %LINK-5-CHANGED: Interface Serial0/0, changed state to up9 M+ J1 F6 p. \% p# b9 r. r# m5 I
  Router(config-if)#exit1 r# n/ v# q9 U+ S
  Router(config)#ip rou
8 `$ M/ ^: H; s  Router(config)#int
- P9 g7 d$ Z- Y4 Q; x  G  Router(config)#interface s
) y2 g, B4 f" R  Router(config)#interface serial 0/07 m5 U7 C/ V8 W2 t1 R. V/ U8 t
  Router(config-if)#ip add
6 J8 V9 a6 e' Q( o8 q# ?  Router(config-if)#ip address 1.1.1.2 255.0.0.0
  Q, r8 X" ?/ V4 `4 [  Router(config-if)#nos hut
3 p  J9 t* g2 x7 \# K  Router(config-if)#no shut
1 g) f8 {# e# z( F; ?& U  Router(config-if)#no shutdown- Q: I3 `& `( B4 B3 G; D: ^) W# J8 ]
  Router(config-if)#exit
. V; i0 v) b9 L  Router(config)#ip rou6 L6 i; N% [$ D& B  S2 Z! M
  Router(config)#ip route 1.1.1.0 255.0.0.0 s6 C$ H9 a+ M: Q2 A( Z3 a
  Router(config)#ip route 2.2.2.0 255.0.0.0 serial 0/0
( a4 c. b- {# G0 a6 f  Router(config)#exit
8 Z3 [9 E8 C; C1 u# Z2 \0 g* f4 H  %SYS-5-CONFIG_I: Configured from console by console8 s; M# C  C7 @9 l+ C1 p
  Router#show ip rou
: B- H  \+ ]$ L/ o, E  Router#show ip route6 B' f' L! W4 U8 o( k$ ~/ m
  Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP/ u6 ?5 ^% L' P6 f: f. e  {
  D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area- {+ |; T5 G, h1 V( c& Z
  N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
! v3 K& {+ G0 m. g8 r  E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
5 P8 K8 r$ p( h5 i6 i  i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
; `9 z4 D' q" m: b2 I/ X& R- R  * - candidate default, U - per-user static route, o - ODR
3 G7 W6 a* `( P  P - periodic downloaded static route8 z6 T5 f* w' p1 ~/ v* m2 _
  Gateway of last resort is not set8 @9 y* K6 y: y# k. \; @- T. F
  C 3.0.0.0/8 is directly connected, FastEthernet0/02 n; a: U) b, V% t: \
  Router#conf" N+ [9 F4 L7 ?0 d2 F% r
  Router#configure) ]  P$ |( g- r0 |; Y( v
  Router#configure terminal
, m' |1 G: B5 j2 J% Y$ Z  Enter configuration commands, one per line. End with CNTL/Z.
, h7 \6 j8 x; O+ s# t' Y$ k  Router(config)#int
% p# I1 b0 [7 Y4 k  Router(config)#interface s; M% t0 }2 R! x! `  L
  Router(config)#interface serial 0/0! U, i  D9 u$ n% `. R% w) `
  Router(config-if)#en
" J: f- c( Y% I
: S' o, Y! n  O  Router(config-if)#encapsulation ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 10:16:53 | 显示全部楼层

路由器ppp协议配置和认证

</p>  frame-relay Frame Relay networks
5 J4 [* E" S  `5 H9 @/ Q% O  hdlc Serial HDLC synchronous+ T; D. @, \$ ^% g( S* C/ J- t8 B
  ppp Point-to-Point protocol
7 o7 s2 I8 n' s1 J7 X' H  Router(config-if)#encapsulation ppp
5 U$ n8 t0 {+ U( N3 D# Q  Router(config-if)#no shut$ a  @( r3 |0 f) ~
  Router(config-if)#no shutdown
% m3 |( r! W6 M  Router(config-if)#6 t" B! N' Z1 G7 e% ]  H
  %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
) ^9 W3 f8 ^* z  Router#% r: a7 j0 g5 [0 G
  Router#conf& ]9 n) a* N5 g, z: E; Y: e7 O, f
  Router#configure
. ]: b2 j) q3 i# d! \, ?4 V7 ]  Router#configure terminal- q! Q  A% e# S$ R+ @* O6 s, C; r8 }
  Enter configuration commands, one per line. End with CNTL/Z.
. p4 s! K( U: @) h  Router(config)#int
  X+ V! \0 F( J) @. i, ^: w  Router(config)#interface s5 Q+ f) O) M" i- X. {! u! @3 V
  Router(config)#interface serial 0/0
/ @2 Y4 e0 H% f7 M0 Z& q8 D  Router(config-if)#ppp ?. d! M  J1 I/ |# o# E
  authentication Set PPP link authentication method
2 i- L' i$ O7 i; m9 j  pap Set PAP authentication parameters
( V: T6 ~3 f9 ~) m; P/ g  Router(config-if)#ppp au
3 B0 H; _% q4 o! H  Router(config-if)#ppp authentication ?
) t  S8 I' ]# z9 F6 t6 v- {  chap Challenge Handshake Authentication Protocol 3 G' Z* |7 v) y' j1 j! W
9 t3 b& z# v/ a. ]8 A& [( }
  pap Password Authentication Protocol
( @: A, J5 d: }/ _2 V. A3 C: e  Router(config-if)#ppp authentication ch0 a( m3 K. Y8 |
  Router(config-if)#ppp authentication chap
: S4 G5 e7 A3 I2 q  Router(config-if)#no shutdown
! c& U8 c! @; {: @; K  Router(config-if)#exit$ d* N% v0 N  K0 F* U/ b% u
  Router(config)#hos$ F6 x2 X: N  f3 _: |( M4 V* C0 l
  Router(config)#hostname 221& N* O7 K. _$ ?7 K; e' N
  221(config)#enable ?
- X+ \5 L) n$ \, H! x! R  password Assign the privileged level password/ O" z- s: n; {  d! {9 H
  secret Assign the privileged level secret
- ^% m* n9 P7 Y' W* G0 ]* g  221(config)#enable p
# k# R6 E9 J3 J9 I+ |2 B2 h4 o  221(config)#enable password 222
, F6 X# [) X/ n! G- \# C! f7 ~  221(config)#us
% T* N. a; J- V( L: ~9 p5 U  221(config)#username 111 ?/ }% t1 P% ~: E) i1 l; x! ]
  password Specify the password for the user8 j0 t0 B' d( Z+ |% z9 m5 k0 n7 N
  221(config)#username 111 pa
! g8 A- j. w: A  221(config)#username 111 password 112?) e) K$ E. R5 ?& K1 ~3 M( P, f7 a
  LINE
9 L4 _2 P5 g! H4 U- ]! u  221(config)#username 111 password 112 ?" [/ d8 r/ v# t" o8 [: k: C0 V
  0 y, V+ N  b0 q$ @) Q/ O/ W6 c
  221(config)#username 111 password 112
5 y+ X0 r6 m( L0 h3 T5 P! j$ q6 I  221(config)#1 a! l9 t- `$ @" c. g
  221(config)#
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-5 16:10 , Processed in 0.460760 second(s), 31 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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