- 积分
- 16844
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
实验环境$ e; b; f: O& e7 E, b
' F$ Z/ x4 h5 x b
pppoe-client上面的接口信息
5 D, O# h; F& W; K0 H9 |( V s) o: @2 x- p/ K* W2 @
[AR1]dis ip interface brief
% g9 V6 D7 c$ d# `4 u" ?( h& p- `+ ]*down: administratively down
+ g8 a% t6 ?; }^down: standby- N; b% Q7 j1 o" ~8 X; f' n I+ e
(l): loopback/ U. T- E: N8 c7 x8 f; K0 i, E
(s): spoofing H) E5 U G! {3 ^2 S" c
The number of interface that is UP in Physical is 23 f6 ?, k: j, X% A3 F: v# ?
The number of interface that is DOWN in Physical is 11 S2 t1 ], c/ \9 B+ D
The number of interface that is UP in Protocol is 1! M4 L: i6 I- F
The number of interface that is DOWN in Protocol is 2) X( R0 J: G6 F3 a
5 |& t9 d- ]6 F' G0 ?4 d: DInterface IP Address/Mask Physical Protocol
: Z6 D9 G3 z* ?+ o, F& ^- _GigabitEthernet0/0/0 unassigned up down % Q8 p. |3 o/ ^# a: y( I: n9 v$ V
GigabitEthernet0/0/1 192.168.1.254/24 down down
9 L1 x9 D" ~, h+ MNULL0 unassigned up up(s)
+ [; S3 X# X# @3 w
, o: M9 }: q3 u# ` z
) J; M3 V. h- u5 ~8 J配置了基于接口的DHCP/ Y1 T5 z' |: ]. h; T% i
) ^, i7 S' b: I4 X" |+ W2 t
interface GigabitEthernet0/0/1
( x$ h) i7 P5 @& a& s) Q ip address 192.168.1.254 255.255.255.0
5 ?0 f9 S U- G$ g, U dhcp select interface7 l9 c2 u' R3 n) Z K
dhcp server dns-list 8.8.8.8 $ K( \6 J8 ?$ y4 W- [7 y
dhcp server domain-name pokes.com* Z; r d+ m2 v. K2 m3 ^/ x# ^
) `9 ?- y- [1 \
注意事项:AR1、AR2的物理接口g0/0/0不配地址.
0 l4 a2 a+ ?' f) c3 `3 D, n& d P5 g3 N8 b
一、pppoe-server的配置
# u8 |0 a& c- n4 D2 x1、pppoe-server 配置地址池7 K" B: a3 ^! B0 D5 | K
[pppoe-server]ip pool pokes #创建名为pokes的地址池,名字可以随便起,后面要调用
- c" g/ |5 M, |- c/ t0 P6 QInfo: It's successful to create an IP address pool.
6 ?. ?% k7 m& [* Q* {1 F[pppoe-server-ip-pool-pokes]network 10.1.12.0 mask 24 #地址池为10.1.12.0/240 `& j( l G* e! ^0 v- n5 [
[pppoe-server-ip-pool-pokes]dis th
' s$ i; o9 r3 P: |) W! x% X[V200R003C00]
1 N D9 t: q6 j% O7 M" ?#7 [1 D/ b% o* H
ip pool pokes7 [* Z0 E0 q7 O1 o
network 10.1.12.0 mask 255.255.255.0
# m& D8 Q$ d% G; \#* `8 P! X+ d+ a" T C5 ~/ E
return
* N% h2 E6 A. K0 L# G8 `2 [* i[pppoe-server-ip-pool-pokes]q
; ]# |# B/ |5 ?; y6 q; l7 k
, g; H' q& N0 `9 x+ @3 h2、配置虚拟口关联地址池
% f( K6 h& m" Y2 ^ r配置虚拟口关联地址池,即创建Virtual-Template 1模版。
: ?4 Q- \# T2 m2 T! i
) Z% t& i. j; y, K: m[pppoe-server]interface Virtual-Template 1 #创建虚拟接口1
: S% s4 U% n, t[pppoe-server-Virtual-Template1]ip add 10.1.12.2 24 #虚拟接口1的地址9 k/ Y5 M; T4 q8 H0 m
[pppoe-server-Virtual-Template1]ppp authentication-mode chap #认证类型
6 M8 h' l J/ ]( ]4 ^ U, P3 N- @. i[pppoe-server-Virtual-Template1]remote address pool pokes #客户端的地址池pokes
! Q- E! r( r% n% ?& g4 [4 X[pppoe-server-Virtual-Template1]dis th* O0 @) y, h% Z, S% S. V: r
interface Virtual-Template1
- y S+ u+ O* c5 j0 U* k ppp authentication-mode chap 7 I( u @' I! ]$ b2 Q0 U0 P
remote address pool pokes
0 l) v* _1 p# E, v ip address 10.1.12.2 255.255.255.0
9 s% x# _" s4 C" m e
. ]1 p; \* q! v$ j5 N[pppoe-server]int g0/0/0
1 X. o5 g: R* Z; {6 Q( c[pppoe-server-GigabitEthernet0/0/0]pppoe-server bind virtual-template 1 #将虚拟接口1关联到g0/0/0接口& L! D6 a) O1 M* J3 [, l
[pppoe-server-GigabitEthernet0/0/0]dis th. m9 e r3 Y7 {" Y8 v! ?1 i+ n
[V200R003C00]
/ u, |1 [7 `# [, {#
9 Y ^0 ^" x" \$ qinterface GigabitEthernet0/0/0
, J/ ?- y$ W/ v2 o' \6 } pppoe-server bind Virtual-Template 1: b7 h d- g# T* Z: `; g6 ^5 g
#
- c9 z+ G2 C0 Z) p5 Wreturn
5 I% W$ ~' [7 L# w! x! U[pppoe-server-GigabitEthernet0/0/0]
z/ o. L0 P" g2 M! M. B! `) T2 n6 Z" J& l
3、创建pppoe拨号的账号 N# P% m5 a& M* v0 l
按理我们应该创建pppoe拨号的账号。8 s! b/ N+ J: F4 v6 c/ O
这里为了演示拨号失败,我们这里先不新建账号,后面再新建。
% S+ Y$ B1 t+ Z1 B+ g' G& W$ C% Y& t- r( ]! @0 ?
二、pppoe-client的配置& n. P. _0 J8 m4 H* Z
[pppoe-client]dialer-rule - Y5 P. U$ N5 W/ V$ i
[pppoe-client-dialer-rule]dialer-rule 1 ?
+ f& Z: ]! a2 S; r acl Permit or deny based on access-list ) x5 A3 ]7 i* c$ Y
ip Ip; P& O% e5 V2 z {
ipv6 Ipv6
8 w6 ?1 f. v# V0 P" q# |9 ]! f- _[pppoe-client-dialer-rule]dialer-rule 1 ip permit #创建拨号规则,允许ip流量触发拨号
9 Y7 s" X8 |5 R6 R: w) r4 [4 E# T7 n6 D @3 l/ o
[pppoe-client]interface Dialer 14 {5 S- u; g3 ^; ?; t3 [) i0 p
Jul 15 2021 18:55:22-08:00 pppoe-client %%01IFPDT/4/IF_STATE(l)[0]:Interface Dia
% z$ j/ o% U5 @' R) \! q) Pler1 has turned into UP state.0 P! g' s$ c( Q/ s, f
[pppoe-client-Dialer1]ip add
7 N) `% s Q3 w[pppoe-client-Dialer1]ip address ppp 0 a* i+ T2 ~' i2 o
[pppoe-client-Dialer1]ip address ppp-negotiate #地址采用ppp协商$ |. o# V; n$ \$ S. Z" M0 O
. C U) w- u v4 f[pppoe-client]interface Dialer 1 #创建接口拨号组1
# c4 t- J+ S1 X2 Y[pppoe-client-Dialer1]ip address ppp-negotiate #ip地址采用ppp协商8 _! u/ {' z' A7 K& V& s$ Y& q
[pppoe-client-Dialer1]dialer user zhprny #此用户不用于认证,是标识作用以及和dialer绑定
+ d9 |$ ?; P- P& U% z P \* K[pppoe-client-Dialer1]dialer bundle 1 #设备通过Dialer bundle将物理接口与拨号接口关联起来。
( F% j/ F) D( t4 J F[pppoe-client-Dialer1]dialer-group 1 #放到一个拨号访问组1中
5 z- f2 r- q3 B& h/ ?6 W: A8 ^2 H[pppoe-client-Dialer1]ppp chap user pokes #指定dialer1接口的编号,拨号账号
6 f: ?6 Z W) z0 |[pppoe-client-Dialer1]ppp chap password 123456 #拨号的密码
! R3 n0 N0 Y8 H6 D" i7 y0 {0 k2 H* p+ x( ]) O0 g
" j7 {6 j/ ?- Y; C5 R[pppoe-client-Dialer1]dis th
7 V+ G( c) ?" [9 V4 P[V200R003C00]
- T! ^3 F, T( e" t( d% r6 q6 j) d9 a#, V# r4 v* [" p# w/ R; h% \6 _
interface Dialer1* [* K! u6 g$ P5 I1 k4 P
link-protocol ppp
$ j+ @% R, w+ D; A9 R r ppp chap user pokes
4 N& b; v$ S Y+ e: G# k$ l" D( _ ppp chap password cipher %$%$I/!'WCyd<7p[~8;,>51L,$sl%$%$
+ B; k# D% E3 f" \( J1 c ip address ppp-negotiate0 D2 ^" j$ I5 C% z+ f
dialer user zhprny% z: k% d9 k! `0 l: n. C+ L
dialer bundle 1
0 j+ N6 S4 P4 x+ T. `4 g dialer-group 1( L2 C$ N- d" G6 }+ ?
3 d& u6 `5 \' t
[pppoe-client-GigabitEthernet0/0/0]( I$ M( g! P' P# ]/ w
Jul 15 2021 19:07:54-08:00 pppoe-client %%01IFNET/4/LINK_STATE(l)[0]:The line pr. `& C% i" p; O8 [
otocol PPP on the interface Dialer1:0 has entered the UP state. #PPP已进入启动状态/ Q+ B* J: l3 a U/ m- L* ]
[pppoe-client-GigabitEthernet0/0/0]
: E: n1 ^' h0 ?* e+ OJul 15 2021 19:07:54-08:00 pppoe-client %%01IFNET/4/LINK_STATE(l)[1]:The line pr
; R- m& Z8 F3 _. Votocol PPP on the interface Dialer1:0 has entered the DOWN state. #PPP已进入关闭状态
" c2 s! k6 v8 S- ]' P5 X
& t* u8 B% j7 Z; M9 S8 F#不停的循环。。。。5 @6 J7 t. @( V
+ m- c" e& F z7 I0 f8 h( s
, X1 l$ z/ w3 E! k' I#原因是没有认证成功,因为我们在PPPOE-server上面还没有创建认证用户和密码
# h) `5 E0 [% J% | t# I
: T$ p" F n: n5 o7 Y1 _; v三、pppoe服务器上新建认证用户
; x/ t3 t W& x+ j% Y- r& l我们到服务器上直接新建认证用户:9 H& J) o+ I2 g. P5 |! E
( e% y7 ~8 @* O" {* f2 c[pppoe-server]aaa
" T4 H" t8 y8 o7 k( p1 ~[pppoe-server-aaa]local-user pokes password cipher 1234569 j" Q& f8 l9 y8 p0 N8 U
Info: Add a new user.+ E- T9 q/ G8 b) B$ f6 V
[pppoe-server-aaa]local-user pokes service-type ppp #类型为ppp
: i# R8 `: x. C" w# Q' C9 c" D& u* O3 J9 x S
3 C# ~ Q; j7 C2 q
四、客户端验证结果
2 F+ o9 G2 r# a( K1 ~1、认证成功信息5 e' H7 l1 t6 u9 J3 O& I6 z
然后客户端就会出现认证成功的提示:0 J g S7 U8 n8 M, S) h* L
: W9 l' Y: Q# N) T9 |! C
[pppoe-client-GigabitEthernet0/0/0]
E$ m2 j9 A( d( i/ P% N2 p! }* G& CJul 15 2021 19:09:23-08:00 pppoe-client %%01IFNET/4/LINK_STATE(l)[10]:The line p
; F# G. n7 S. s1 I0 Y- \& u5 [rotocol PPP on the interface Dialer1:0 has entered the UP state. ; V! s1 r$ t. U7 E E
[pppoe-client-GigabitEthernet0/0/0]
7 P8 v( f" }3 F. \8 o5 OJul 15 2021 19:09:23-08:00 pppoe-client %%01IFNET/4/LINK_STATE(l)[11]:The line p6 X" r& ^, L" E2 A4 B
rotocol PPP IPCP on the interface Dialer1:0 has entered the UP state. . z& R' T9 ?* [& Z% p! j
[pppoe-client-GigabitEthernet0/0/0]q$ d; g* a, J7 J! z) x* z& [
[pppoe-client]dis ip in b: X( i* P$ c4 d5 s
*down: administratively down
2 w1 G4 S% ~8 ?" g. ?/ c6 {. f& D^down: standby
: N5 [* l8 `$ Z' p$ {(l): loopback5 P9 x7 B+ c5 ?! R! b1 R
(s): spoofing- m* S' v( M' k9 v4 J
The number of interface that is UP in Physical is 4
5 N ~+ H$ d @) lThe number of interface that is DOWN in Physical is 0
- t% b/ t ^1 B- H, ]4 S0 T& C4 K% pThe number of interface that is UP in Protocol is 3( Z3 ?7 I. g3 I1 U d& P
The number of interface that is DOWN in Protocol is 1
6 I) m c# J/ `, K4 U9 M; C- ?) K3 j3 e2 p. t( e! f( V
Interface IP Address/Mask Physical Protocol $ x8 B9 `0 A/ V; z% Z4 M- `
Dialer1 10.1.12.254/32 up up(s) #拿到了PPPOE服务器上的地址3 I7 O h9 r+ Q* A
GigabitEthernet0/0/0 unassigned up down
. R7 K, A: S* J6 }1 f7 KGigabitEthernet0/0/1 192.168.1.254/24 up up 1 G; {5 `( _( ?1 m3 ~
NULL0 unassigned up up(s)
1 [, o: m+ x! u& x1 Z8 W. }. G* ~, h7 r) y
9 d9 Q* I9 i" U$ J2、pppoe-server 信息
! M. y2 E1 E" f; y6 m8 u! ~, O<pppoe-server>dis interface Virtual-Template 1# z3 R/ `: s# }
Virtual-Template1 current state : UP& R! A5 U' `/ Q- R& Z) H8 f# F: M' J
Line protocol current state : UP X" q* _7 P6 n2 }
Last line protocol up time : 2021-07-15 19:09:22 UTC-08:00; S a" g, w/ N$ y; x
Description:HUAWEI, AR Series, Virtual-Template1 Interface
; Y+ \: ^$ L! c5 B+ m2 I% FRoute Port,The Maximum Transmit Unit is 1492, Hold timer is 10(sec)7 l. j1 V( A1 p7 N
Internet Address is 10.1.12.2/240 @+ F! E! G: }, N: b
Link layer protocol is PPP
9 [6 {% Q- t# }& |3 zLCP initial
' L! y% \1 C, p" ZPhysical is None5 u$ N. X! K# {
Current system time: 2021-07-15 20:27:28-08:006 J1 \7 P4 P0 A
Last 300 seconds input rate 0 bits/sec, 0 packets/sec" z' N2 ]6 n/ p$ i9 g n7 Z
Last 300 seconds output rate 0 bits/sec, 0 packets/sec& X5 l- o5 x$ T0 F U* X1 |
Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec
0 F) z5 l9 q* i Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
% J- c5 _! G# B+ o0 f3 `- a/ c Input: 0 bytes
6 E( ?% V% G: H4 @# [2 y5 e! s& W0 e* \: V Output:0 bytes
5 ~- @9 S r! v D" ? Input bandwidth utilization : 0%
* Q# D8 u$ {) g. U" [5 b Output bandwidth utilization : 0%. N; y4 U& S# ~$ s
' M( d5 C3 d7 |* |" Q- l; Q }$ Y+ Q
<pppoe-server>
/ ~6 Q% p- M6 V8 r: G1 s+ [- B9 U( v6 C6 c
9 @; J5 r" Z/ I. W" z& l% [
3、pppoe-client信息/ A$ T2 @9 x# |6 S
<pppoe-client>dis interface Dialer 1
0 L/ \' | s( O$ u3 H( b9 cDialer1 current state : UP
- z: f2 L' D2 b; x% F4 N8 m* fLine protocol current state : UP (spoofing)+ }9 K9 s; s, x- |
Description:HUAWEI, AR Series, Dialer1 Interface6 A: X4 Z T; D% c+ Y2 T0 t6 z
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec), D* |9 t. S7 I k7 U
Internet Address is negotiated, 10.1.12.254/324 ^7 B. [9 t; `, g6 C7 {* E& Z
Link layer protocol is PPP
6 V: {3 ~' K x9 G. NLCP initial- p, U. d* s' y7 a# C! M
Physical is Dialer
7 J+ `; E% o# T; |Current system time: 2021-07-15 20:23:56-08:00
* W# j/ A) U4 b. t$ O; @ Last 300 seconds input rate 0 bits/sec, 0 packets/sec A7 y `7 L+ u- j$ R# U+ l' \2 L9 [
Last 300 seconds output rate 0 bits/sec, 0 packets/sec' `; K! m$ E% A$ t
Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec8 J' O' N, y6 m- g& ]$ V
Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec6 [; x, F5 b( N; c. V! \
Input: 0 bytes
+ [/ u7 Y+ y* D1 b7 A- J+ S Output:0 bytes# `$ @- b( S/ v
Input bandwidth utilization : 0%1 m- Q1 v' P- L9 y+ n* Y- W- \
Output bandwidth utilization : 0%$ w; @2 @6 }% V! s
Bound to Dialer1:0:2 |; R, M, o" t! @9 q
Dialer1:0 current state : UP ,
9 A8 A/ L+ p" V% ^: aLine protocol current state : UP" c* S+ E% f& L3 H( e N, o; `
* }8 [( [5 P, n
Link layer protocol is PPP% F; r4 C& r3 G# p3 C+ e i
LCP opened, IPCP opened% Q+ |. k+ g0 d, y; r7 N+ b
Packets statistics:
4 ~& l9 p6 _3 h& O Input packets:0, 0 bytes& Q5 u2 h4 B8 h0 z* k& t' G6 U! |
Output packets:4, 336 bytes
7 B- b* I, r, {' ^; | FCS error packets:0
* _- w# E9 o( I6 E Address error packets:0( N# l+ e7 r9 E! d5 c
Control field control error packets:0# p6 p, B0 @ R
/ {) ]- v- D% \2 b0 ^: ?8 g7 c0 {
1 D$ o6 f) | X8 a* s9 H
<pppoe-client>1 Q. P% w5 _$ J1 U
) q3 f3 l; s) L
五、NAT的配置
4 w. c* S' u" ]' i* a/ i用PC2直接ping 10.1.12.254是可以通的。10.1.12.254是AR1的g0/0/0口获取到的地址,其实就是我们常说的WAN口地址。
+ v6 w8 ^" r; P" m6 q* c6 ?1 n1 q# {2 _8 r; n' s4 ^7 | J4 z7 u
PC2>ping 10.1.12.254/ b+ a. Z# q/ [1 M
, \. k( l0 I/ H* W g1 s U NPing 10.1.12.254: 32 data bytes, Press Ctrl_C to break
4 A6 u8 N2 k/ \; mFrom 10.1.12.254: bytes=32 seq=1 ttl=255 time=63 ms
1 M4 F0 w' N1 r' p0 @5 L0 fFrom 10.1.12.254: bytes=32 seq=2 ttl=255 time=31 ms9 r# }4 H' U! F- D' p
From 10.1.12.254: bytes=32 seq=3 ttl=255 time=47 ms8 o0 J8 I* i: ~
From 10.1.12.254: bytes=32 seq=4 ttl=255 time=31 ms
8 V! J4 y* X1 K# T# kFrom 10.1.12.254: bytes=32 seq=5 ttl=255 time=47 ms+ o- N6 d( ^4 ]5 V, r
- x3 u/ f$ f, k( H! `/ l1 j9 ~4 V
--- 10.1.12.254 ping statistics ---4 c h6 Q, O! e6 q+ V1 v7 O
5 packet(s) transmitted
: i7 \% P% `" { 5 packet(s) received9 ]! b# A- W2 [0 P0 }1 @5 l
0.00% packet loss$ Z# i" ~+ Q0 f- Y. M+ H2 K/ l4 M
round-trip min/avg/max = 31/43/63 ms
% R) b1 L# b5 b( {+ Y0 Z {
3 E6 _6 n$ a! Y y/ ?2 O; OPC2>ping 10.1.12.2
0 ~& ` ^$ ]/ c: m# n/ m# i
! g! q S/ | n! n, GPing 10.1.12.2: 32 data bytes, Press Ctrl_C to break
7 g' W! a3 E& J( ~Request timeout!1 R) T: j9 J9 p# j( W- X6 H. y
Request timeout!) ~6 Z0 w2 m! V0 S4 e
Request timeout!
6 n5 b1 h5 y+ p8 h% m' |8 ZRequest timeout!
- f9 |# N5 E' qRequest timeout!
) @ J6 O$ L5 |
/ c6 M; c% R) e; w1 V7 N1 s' O--- 10.1.12.2 ping statistics ---
4 o# ?6 N. P3 W4 Q2 C& [" x$ V; f 5 packet(s) transmitted: U& g% S9 s5 s, V) \) X
0 packet(s) received7 j" {* d; L7 D. B4 U8 w' A
100.00% packet loss
* m4 c, J% O( F# G' o#但是无法ping通10.1.12.2
# U. l# ~' J0 Z- r0 i
0 n& a9 |2 r- ] Z1 L/ `8 `: H( d% Y! r4 a9 u' @# x
无法ping通10.1.12.2的原因是:我们没有做NAT .接下来我们在pppoe-client上面做NAT
( y9 c' r" f' w* P6 A( }. T: n* P- B, F! \
1、这里配置规则2000% x' s @) R2 U) h
[pppoe-client]acl number 2000 $ [. z, B* q' L# x0 t' p5 J) A
[pppoe-client-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255+ j& c2 q1 q9 D4 u. E7 c [
. l2 q+ d4 B; I J4 u
2、将规则2000绑定到接口9 C6 ], T7 S5 o
如下接口信息,需要注意的是pppoe的接口是Dialer1,并不是GigabitEthernet0/0/0口。我们必须将规则绑定在Dialer1口,最容易犯错的就是直接绑定在g0/0/0口。# t) E5 g( f b' |" W) a8 ~
3 Q% [- V& E8 Z, z[pppoe-client]dis ip int b
% H$ x, I8 Y# d8 ^/ T! b*down: administratively down
* x- E. k' D. H" s^down: standby
$ ?+ V' D/ c$ B3 v0 e# w(l): loopback: A: [: K1 h/ y" E
(s): spoofing; u' z7 t: [* r! b
The number of interface that is UP in Physical is 48 ^, Y) r" i! d1 g4 Z
The number of interface that is DOWN in Physical is 01 Y! a6 j V! z# n1 W4 W$ b R
The number of interface that is UP in Protocol is 3
% |# N* Z; r: W4 tThe number of interface that is DOWN in Protocol is 1
$ x& |4 D" L. }0 N% D
* m7 _* E; m. NInterface IP Address/Mask Physical Protocol
6 k" u, @ I" u5 v7 a( h0 \Dialer1 10.1.12.254/32 up up(s) 6 k% y/ H* ^; i0 P
GigabitEthernet0/0/0 unassigned up down 5 q" D' k, R' x f
GigabitEthernet0/0/1 192.168.1.254/24 up up
! N+ W4 b, o' `1 P1 D- `' _' Z1 xNULL0 unassigned up up(s) , }, x7 T2 F7 B" F! v2 n# G! L
[pppoe-client]* |0 B6 J0 B/ R8 r. e# D& [
! ?; A( P& q7 \[pppoe-client]int Dialer 1 7 H2 I9 g, W5 T, r# d3 F+ Q" c
[pppoe-client-Dialer1]nat outbound 2000# ~' d# o5 ] Q* `1 b# H- y
[pppoe-client-Dialer1]dis th
' r) h1 k9 R/ C* {8 Z$ X5 a[V200R003C00]
6 j( d2 S( G9 {3 @#: r) f3 r, r3 F: P- Q8 q5 A
interface Dialer1
! O( d% x1 Z F6 D link-protocol ppp2 ?) }7 r: f6 Q' l# J
ppp chap user pokes
6 i+ L5 _1 C/ g ppp chap password cipher %$%$I/!'WCyd<7p[~8;,>51L,$sl%$%$( E# X* k" w" ]0 {. D$ J0 n
ip address ppp-negotiate
8 a* ^8 M( \" W5 J7 @ dialer user zhprny
; Y7 X4 c0 V3 S dialer bundle 1( _8 W5 H' w; ^
dialer-group 15 j( f# ^0 A6 X# a$ N) S7 E
nat outbound 20005 a+ h4 T* o8 M3 b" A: X' \
#! E5 ^$ ?; u0 C0 s2 k1 W3 K- Q1 w' Y
return7 {1 q% F8 r4 c V0 B, L
[pppoe-client-Dialer1]1 I& ]# v F F( G+ g: L! y8 i
1 X- D: _ b4 U6 K' y
接下来我们就可以ping通10.1.12.2 了。+ J0 l9 y+ c! H9 ?7 Z$ U e! O
% h: z9 I) c& T8 p9 \- jPC2>ping 10.1.12.2/ x: c/ J9 u; {$ O( y1 y7 b0 l+ d
9 j. m8 t& S$ O* x1 ?5 X* ?6 qPing 10.1.12.2: 32 data bytes, Press Ctrl_C to break! ] L/ Q2 q* H9 R# U
From 10.1.12.2: bytes=32 seq=1 ttl=254 time=31 ms
Y9 e5 ]: i0 z9 i- `From 10.1.12.2: bytes=32 seq=2 ttl=254 time=32 ms: Y) a, l9 q' Y( W4 m" N
From 10.1.12.2: bytes=32 seq=3 ttl=254 time=46 ms
9 B) C% G1 @0 q' K. k% {( cFrom 10.1.12.2: bytes=32 seq=4 ttl=254 time=32 ms
" j3 Z2 c3 A! c) [( K: R+ VFrom 10.1.12.2: bytes=32 seq=5 ttl=254 time=31 ms5 _7 h7 n! g/ I; ?4 X" I$ [% h2 X
6 d: q% L* C" F
--- 10.1.12.2 ping statistics ---5 b4 \9 L0 C- T. E" }4 O8 w S
5 packet(s) transmitted3 s+ P% p/ G) q8 Y2 a
5 packet(s) received
/ {3 Z' Z. q. |5 y0 Q- O5 B0 [/ V/ D 0.00% packet loss! Z. G* V& q) j4 e* L7 Q- v
round-trip min/avg/max = 31/34/46 ms% Z3 F$ c! z: ?0 f: g! |2 V. n' Q
1 \. g @1 L0 A" p- ]+ ~5 e" D
0 z$ i/ n7 N$ c |
|