- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
实验环境
( V8 L, A- J1 D# T/ i$ V; T
" H7 I) q# V# Z9 A( Q. W. Npppoe-client上面的接口信息
9 ^) B' s0 s! W
% R5 s6 S8 L) U/ M[AR1]dis ip interface brief . l/ q6 n; @1 c: U- Q
*down: administratively down* e! e. X# s* t9 ?" O! Y5 b1 y( b
^down: standby
, J2 G$ \! {1 @2 z; c/ u1 }(l): loopback
* Z% B2 S/ U- E! l( y4 Y* [; A(s): spoofing; r1 f" C4 ?7 H" A! o1 W1 k) V
The number of interface that is UP in Physical is 2
: j8 o8 k6 m8 Z% y3 q6 W9 Q# O: DThe number of interface that is DOWN in Physical is 1$ g3 r4 J% K3 H9 O
The number of interface that is UP in Protocol is 1
. N9 ?& a5 T& nThe number of interface that is DOWN in Protocol is 2
4 I- `- v1 w7 ~% O3 N+ o9 t2 a) s6 X) t
Interface IP Address/Mask Physical Protocol 5 P1 D. L2 X* r* D6 w, {
GigabitEthernet0/0/0 unassigned up down 6 G' U4 r/ A- ~( m( V
GigabitEthernet0/0/1 192.168.1.254/24 down down
/ J9 n/ e) H) x% Q& u2 D6 fNULL0 unassigned up up(s)
; }) z6 A( B; h D1 l: ]- N$ Y8 }
! A2 w: ], D8 i3 Q' H
3 @6 y3 q9 I6 N9 L7 D- U* G配置了基于接口的DHCP
/ ?5 I/ j5 B8 Y* f, K' o
3 p" s ^1 k# R4 |: ~! L1 hinterface GigabitEthernet0/0/1
. d* Y' g C( N1 ]3 m+ o! ` ip address 192.168.1.254 255.255.255.0
' p4 h$ P2 m2 b/ e; |6 @; ? dhcp select interface, Z# V" D. }# w, A& _
dhcp server dns-list 8.8.8.8
w3 M5 A+ }) z dhcp server domain-name pokes.com! v Z% E/ u/ |$ W$ Z3 O/ b
( L; v% D5 k3 L- k" @
注意事项:AR1、AR2的物理接口g0/0/0不配地址.
3 L; q9 s) n f; l6 p: k# O ~
一、pppoe-server的配置9 U! I$ ?: I6 J8 j7 K
1、pppoe-server 配置地址池
" D0 y. G& n! _[pppoe-server]ip pool pokes #创建名为pokes的地址池,名字可以随便起,后面要调用
5 I5 Z7 p8 Y1 T' }1 ]4 yInfo: It's successful to create an IP address pool.4 G" M/ w$ r9 i Z8 m
[pppoe-server-ip-pool-pokes]network 10.1.12.0 mask 24 #地址池为10.1.12.0/24
5 s/ N Y6 b: C& C% u' M[pppoe-server-ip-pool-pokes]dis th
# P- p& H- `$ T2 v' R s' L[V200R003C00]
! S5 i* y$ D( y9 p; M/ ^' \" j! J, X% Y#7 s/ O; q/ N3 e
ip pool pokes
$ @! G: C. l1 s; F) x I- Y network 10.1.12.0 mask 255.255.255.0
: K9 z% ^' m2 ~2 w8 p4 q#0 \. u3 p* V) k- I9 q2 P
return# Z6 }3 k+ r5 N1 f
[pppoe-server-ip-pool-pokes]q& j1 `( b4 k& Q) m$ P$ F
/ h4 O. S0 [6 x* S0 A9 C2、配置虚拟口关联地址池
* x: L) o" s8 C1 L& b X7 s配置虚拟口关联地址池,即创建Virtual-Template 1模版。1 n8 x& ]+ P$ C M
2 o) w; R0 C" O7 p* K/ X[pppoe-server]interface Virtual-Template 1 #创建虚拟接口1
7 Z* q7 u- {4 s: [% O3 B) C7 c[pppoe-server-Virtual-Template1]ip add 10.1.12.2 24 #虚拟接口1的地址 ~" O* o9 l0 G; w- ]
[pppoe-server-Virtual-Template1]ppp authentication-mode chap #认证类型
" `1 ?# L; X( Q5 x7 A9 m0 |- A[pppoe-server-Virtual-Template1]remote address pool pokes #客户端的地址池pokes
* t/ P0 }& C& ^! Y2 J3 Q$ ?/ [[pppoe-server-Virtual-Template1]dis th
6 ^; p9 T5 V L" @ z' u3 B: xinterface Virtual-Template1
8 G$ i% K' q5 x6 a8 D, P ppp authentication-mode chap 3 h% Z2 P6 A2 \0 `) B0 o6 U0 y0 h
remote address pool pokes/ M/ s7 [' A; |. m& k" ~0 H) k
ip address 10.1.12.2 255.255.255.0
7 z" H( o( r% T E4 S2 l+ \' g2 B' u: X5 h8 k
[pppoe-server]int g0/0/0 : ?/ r$ A7 m. Z
[pppoe-server-GigabitEthernet0/0/0]pppoe-server bind virtual-template 1 #将虚拟接口1关联到g0/0/0接口4 Q3 w s0 J' H
[pppoe-server-GigabitEthernet0/0/0]dis th1 r/ e6 B2 l+ W S! f5 R* ]
[V200R003C00]
* b- ^/ @% M% M1 T0 ~! N# Z: E#
2 x: f! w/ M* Kinterface GigabitEthernet0/0/0
, T3 R) w6 V' v! p3 r* O pppoe-server bind Virtual-Template 1/ G# o, M9 e) H" R2 X
#
; r; K# y- Y( A7 C2 F2 e( G: e6 ` ^return
j6 s, u) p4 p1 w5 @[pppoe-server-GigabitEthernet0/0/0]
, @9 t) f% z1 y* f8 C# F# \$ t; p7 m; f- K% V; d# N" q
3、创建pppoe拨号的账号
2 H" K" G: {# T0 J2 a按理我们应该创建pppoe拨号的账号。* |/ O1 v; } F
这里为了演示拨号失败,我们这里先不新建账号,后面再新建。8 D5 d: w3 [" Y( u9 h X
9 ], b% X# L# _: Z. F# m7 M二、pppoe-client的配置1 r, j4 s6 r* F @; [3 A$ l2 R
[pppoe-client]dialer-rule
) \! o( G) S. V$ e8 f: P[pppoe-client-dialer-rule]dialer-rule 1 ?
% g, F: A. _' w; C4 ]4 k a( T# ` acl Permit or deny based on access-list 9 @$ b0 C i/ G1 o$ R! {; K
ip Ip" Z8 {0 U2 G* u
ipv6 Ipv6 3 \$ r, D- Y. C: Q" _, q
[pppoe-client-dialer-rule]dialer-rule 1 ip permit #创建拨号规则,允许ip流量触发拨号6 H+ w8 z) o/ t3 ^ b" f
. J% E9 i3 y) p9 K; q5 o7 c% U[pppoe-client]interface Dialer 1
& A3 s- r; {1 X% H0 e: GJul 15 2021 18:55:22-08:00 pppoe-client %%01IFPDT/4/IF_STATE(l)[0]:Interface Dia7 x1 e: }% x; U3 }( g! G
ler1 has turned into UP state.
2 ~# i* H3 r& @5 [) c- ]* V5 x$ Y[pppoe-client-Dialer1]ip add
' c% h. j' L" A6 X[pppoe-client-Dialer1]ip address ppp
6 @2 u4 b- _; e2 P& y[pppoe-client-Dialer1]ip address ppp-negotiate #地址采用ppp协商. Z6 F& a: N1 h- A, h3 ~9 W$ o# j
; d: _2 H+ \$ |[pppoe-client]interface Dialer 1 #创建接口拨号组1
; k( J, B) r# M- o" |% b[pppoe-client-Dialer1]ip address ppp-negotiate #ip地址采用ppp协商
! n Y' a A( T2 {' C[pppoe-client-Dialer1]dialer user zhprny #此用户不用于认证,是标识作用以及和dialer绑定# n4 L) H2 @( J2 z2 C/ F! ~5 o5 \
[pppoe-client-Dialer1]dialer bundle 1 #设备通过Dialer bundle将物理接口与拨号接口关联起来。
: x$ m* R' {- k- F. j4 t[pppoe-client-Dialer1]dialer-group 1 #放到一个拨号访问组1中' A9 E- ?- b7 f/ `+ F
[pppoe-client-Dialer1]ppp chap user pokes #指定dialer1接口的编号,拨号账号
- z$ o( \6 d% c! m5 p' r[pppoe-client-Dialer1]ppp chap password 123456 #拨号的密码) Q# P+ \) D6 N- R0 Q9 b; z/ ?6 S" |/ o
8 w) f# ~. o* J& [5 i' K$ Q
) Y9 |& m8 c+ ^[pppoe-client-Dialer1]dis th% Z i5 _7 n( w( K+ x+ ?
[V200R003C00] X3 v% {$ J! X/ {/ h" {
#3 c2 v2 |& Z5 O; _
interface Dialer1
2 p. x6 K! }- d: R6 |' F$ ^ link-protocol ppp% K- W+ |1 d: m3 H- q! S& O! Y
ppp chap user pokes) `. S5 t4 V0 c! K6 K1 r8 |' n
ppp chap password cipher %$%$I/!'WCyd<7p[~8;,>51L,$sl%$%$
" H" b6 Q+ ~3 y ip address ppp-negotiate& D* _4 w) }8 k/ _9 @9 `8 ^3 _
dialer user zhprny& T5 ~6 l- G; d. t% N
dialer bundle 15 [0 c' y0 D0 O
dialer-group 1
. S% g( j3 k! M( K4 V; J
, ?* t5 S& }: K. s; h[pppoe-client-GigabitEthernet0/0/0]/ q1 R9 g+ V8 u# T& t- L A
Jul 15 2021 19:07:54-08:00 pppoe-client %%01IFNET/4/LINK_STATE(l)[0]:The line pr
( F0 f8 Q& P9 E( H# aotocol PPP on the interface Dialer1:0 has entered the UP state. #PPP已进入启动状态: L* ^: N# w, n4 B) O
[pppoe-client-GigabitEthernet0/0/0]
5 h, _1 Q2 U" v" HJul 15 2021 19:07:54-08:00 pppoe-client %%01IFNET/4/LINK_STATE(l)[1]:The line pr
+ ?8 L) _1 v& |4 e2 B5 O# H3 Iotocol PPP on the interface Dialer1:0 has entered the DOWN state. #PPP已进入关闭状态
0 l# A; G- N% n+ o% Z2 _6 R$ F& K% T, }' h' f
#不停的循环。。。。8 J; G7 y1 ]' h* p: V& X U
$ X2 U( i+ J& B- C4 Q
" h7 I7 `) q4 ]
#原因是没有认证成功,因为我们在PPPOE-server上面还没有创建认证用户和密码
7 [% o. Y, @) w# r {
; O4 s& b! ?7 v$ C三、pppoe服务器上新建认证用户- C; c- w$ p/ k* E. S# A
我们到服务器上直接新建认证用户:+ i9 C0 b8 m; K1 Z
! Y2 n* y( B/ k# `8 Z0 ?+ n% `0 v[pppoe-server]aaa
S. v x9 h$ R1 ^" e[pppoe-server-aaa]local-user pokes password cipher 1234562 E+ ^: c0 f: E) h. l! t
Info: Add a new user. w7 H. L4 K# G* u
[pppoe-server-aaa]local-user pokes service-type ppp #类型为ppp3 W3 O* d& u' }4 J0 Z5 h6 [) ^
& ^1 }( U) m% i2 I9 ]# s( F9 Y' }) X" `& b0 z7 \' W$ s2 A
四、客户端验证结果
1 c! P& ^- C" g7 y1、认证成功信息* |8 F, ~2 H, \# T" Z6 z a
然后客户端就会出现认证成功的提示:
6 {. W) M5 c! X
6 N3 w+ u2 y% G1 M[pppoe-client-GigabitEthernet0/0/0]
, b' f# c2 d3 }" ]( Z& Y! g8 \Jul 15 2021 19:09:23-08:00 pppoe-client %%01IFNET/4/LINK_STATE(l)[10]:The line p
" [) z+ W, x# R+ B( ^! b+ Protocol PPP on the interface Dialer1:0 has entered the UP state.
- ?# }; v% O% k7 f1 x0 z* X[pppoe-client-GigabitEthernet0/0/0]: z( b7 a- r2 ~( T0 t: |# U9 a
Jul 15 2021 19:09:23-08:00 pppoe-client %%01IFNET/4/LINK_STATE(l)[11]:The line p$ D) U" E$ H$ H7 M& U& K
rotocol PPP IPCP on the interface Dialer1:0 has entered the UP state. . A: t/ @- e9 c) q3 j3 N# q% C: }3 L
[pppoe-client-GigabitEthernet0/0/0]q
% t7 j7 e# q8 m% v[pppoe-client]dis ip in b: L2 r& E0 g. m: h& v4 v) @) g
*down: administratively down' V- D2 O2 G r% `3 m
^down: standby
, x- Y4 k8 M6 c! N% p- y. y& d5 A(l): loopback/ I1 X( v9 J) x
(s): spoofing
; v( p( v4 g" P* L) P0 HThe number of interface that is UP in Physical is 4, x6 P* z0 W) `
The number of interface that is DOWN in Physical is 0( v( }: a1 R! X" F5 |( t
The number of interface that is UP in Protocol is 36 S8 w( F+ O" O! `7 W5 f& B# ]
The number of interface that is DOWN in Protocol is 14 \; n$ u' A2 ^1 p
, e. d+ \# r1 z; v+ w1 IInterface IP Address/Mask Physical Protocol
6 @. J" V2 I; b2 f: \Dialer1 10.1.12.254/32 up up(s) #拿到了PPPOE服务器上的地址
) P! w0 |7 }4 [7 ^GigabitEthernet0/0/0 unassigned up down 1 `% Z; D" `' F
GigabitEthernet0/0/1 192.168.1.254/24 up up 1 l8 _+ e/ U: o
NULL0 unassigned up up(s)
9 x1 `; a" S" o: y; [5 h5 z% `3 i
/ b, y1 z) M) y, m3 p; r4 l$ i& K8 m8 l" m) f$ G
2、pppoe-server 信息
9 M7 v9 Q9 v8 Y& V& V8 A) I; x" {. a<pppoe-server>dis interface Virtual-Template 1
$ O0 [: h" Q2 M2 u' C- BVirtual-Template1 current state : UP X0 @. V1 k, @: e2 q: c7 v1 B
Line protocol current state : UP
. f, o. Q& e+ B+ Z/ ~Last line protocol up time : 2021-07-15 19:09:22 UTC-08:00
' a% ?+ i6 t" I$ UDescription:HUAWEI, AR Series, Virtual-Template1 Interface
8 A. N+ h* Q3 S8 ^% CRoute Port,The Maximum Transmit Unit is 1492, Hold timer is 10(sec). J6 d- {+ j8 C
Internet Address is 10.1.12.2/246 Y0 { E w' M( \
Link layer protocol is PPP
5 ^' y% d/ e) a5 ILCP initial
5 {9 E+ e3 }( I2 t/ c' f3 GPhysical is None4 a1 X+ ?- b. z- k7 b" E% ^9 c
Current system time: 2021-07-15 20:27:28-08:006 X% _2 P9 \6 c$ b: c+ O- P
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
; h; a% s1 m: I, C0 G Last 300 seconds output rate 0 bits/sec, 0 packets/sec
/ N& z7 Z# {6 Y4 {5 L Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec
" b2 s& ]8 P( ]1 x# y4 u Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
( S; M6 f4 P) l3 z* }3 L2 r+ \ Input: 0 bytes5 q i4 L7 o% i% _" F* O
Output:0 bytes
5 P/ r- N8 J$ y% G7 V Input bandwidth utilization : 0%
3 I F: w# ?: S% H Output bandwidth utilization : 0%# A/ ]- g+ t# ^1 x) G
( ]. l9 X. t/ e& i# T" Y
<pppoe-server>
* _6 `5 Z4 k# v4 V6 L7 `" v. q6 l ?
$ m+ o4 x& o+ c1 b- d3、pppoe-client信息
( C8 J% @. t5 s9 }3 E3 N<pppoe-client>dis interface Dialer 14 D9 I! j4 P9 h1 [0 c
Dialer1 current state : UP; G8 ~8 b% {; X, h- L! M1 Y- k
Line protocol current state : UP (spoofing)* L3 z% o" Z% N! B: n3 q1 H. O) `# S
Description:HUAWEI, AR Series, Dialer1 Interface
0 r6 i6 h( ]: C9 x$ d. y* aRoute Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
; M- D4 I, l4 l& Z C; v1 M. R$ kInternet Address is negotiated, 10.1.12.254/32
5 [9 R6 L4 h, mLink layer protocol is PPP5 O/ ~6 n3 W- t/ c- X
LCP initial2 Z w' _+ X* Y' U$ G* k+ Z. L
Physical is Dialer
T: v: a& t1 ~8 U8 I5 h9 XCurrent system time: 2021-07-15 20:23:56-08:001 S1 X$ g5 V8 ~. J0 u/ d
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
A) D, \$ k# k( K Last 300 seconds output rate 0 bits/sec, 0 packets/sec) l/ t' O- c+ l z* }0 w
Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec0 \# Q) e/ l9 A/ o+ W- U
Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
/ k X: |# Y' f4 r Input: 0 bytes
g! n3 L5 _. ]+ v/ [- e Output:0 bytes
5 R6 ?1 K3 ]2 W Input bandwidth utilization : 0%* { s+ N1 d; |) C
Output bandwidth utilization : 0% A. ]4 H/ n+ `3 u4 e9 j5 m
Bound to Dialer1:0:
, b: t4 E* V% Z, X+ XDialer1:0 current state : UP ,
* m- ?% C& X: ]- V# hLine protocol current state : UP: R5 \/ C9 K& r; t
0 \% d, n S3 x- U
Link layer protocol is PPP
) |: \/ x1 d3 i R, OLCP opened, IPCP opened
% @9 R# J+ P* v' c3 n! \8 u4 i; \Packets statistics:; K$ ?7 [. }1 N6 u, i, |8 C
Input packets:0, 0 bytes2 l; \# }" S* K! R; N# p
Output packets:4, 336 bytes4 X* D8 M! a% R/ y
FCS error packets:0
- q5 [0 V. Z& M8 \5 y" s Address error packets:0
$ F( ~& X, x6 w" Y* X6 j# ] Control field control error packets:0
$ o* L7 {, n5 G' N7 E9 W' \0 G# [, e! X1 p7 P/ _
; u/ N0 A! w! s<pppoe-client>, G. n" ]! ?" x/ V. M
3 b4 X! \1 A6 U6 E* F& j
五、NAT的配置5 W2 {2 k' {0 Y
用PC2直接ping 10.1.12.254是可以通的。10.1.12.254是AR1的g0/0/0口获取到的地址,其实就是我们常说的WAN口地址。
' g1 w W& d4 S6 ?% Q0 |5 O# E* M1 O: b" S; w
PC2>ping 10.1.12.254+ | E1 D- h( y, n1 O& g
1 h1 ^: r3 j$ t; ]Ping 10.1.12.254: 32 data bytes, Press Ctrl_C to break
3 {1 ?7 K( U" k) I$ m# ]From 10.1.12.254: bytes=32 seq=1 ttl=255 time=63 ms) e$ g; n6 P& T4 l' c6 F6 l
From 10.1.12.254: bytes=32 seq=2 ttl=255 time=31 ms& S& J" o7 d9 J/ Z- I! u. ^3 o* I
From 10.1.12.254: bytes=32 seq=3 ttl=255 time=47 ms; z3 D* m% j7 E% u& W3 ^
From 10.1.12.254: bytes=32 seq=4 ttl=255 time=31 ms
4 s8 z( q7 Z3 V7 p% j/ V* KFrom 10.1.12.254: bytes=32 seq=5 ttl=255 time=47 ms' J- }- g1 Y: E" r: d7 L9 B+ ?5 p( I5 o
7 Y/ R, J; ^& P--- 10.1.12.254 ping statistics ---0 t2 o4 R# E+ b% N: V
5 packet(s) transmitted2 ?6 c+ b+ w' x \" e
5 packet(s) received
6 ?& T" R: W$ ~7 t& A0 j8 f ]8 [- v2 _ 0.00% packet loss
7 K/ e, k+ j5 g6 C! Z1 W/ v8 w round-trip min/avg/max = 31/43/63 ms
2 k J* }9 C3 S" I R4 d& p6 a: f- ?* F9 N& V4 F7 G0 M8 O1 m
PC2>ping 10.1.12.2" {8 {% B! ~2 y
8 e9 m, Y& l- L- y5 Y$ |/ o
Ping 10.1.12.2: 32 data bytes, Press Ctrl_C to break
3 `0 ^& H; L6 f3 `Request timeout!
1 F3 W' ]1 B6 K LRequest timeout!; Z; t ]! R; }; V$ [, d8 A2 @
Request timeout!
+ G W# Z9 g- E! v( {Request timeout!6 Y M+ ~1 k$ w% A6 O
Request timeout!
( E- N. @7 F. A$ L! f2 E0 Z( p# z F* k X3 j! g0 O
--- 10.1.12.2 ping statistics ---
, }! O" G* o E% H 5 packet(s) transmitted$ D# v3 ~9 d3 ^& b1 u# e6 ~
0 packet(s) received
* J& k0 H8 ], k0 l 100.00% packet loss: _6 I# I. {4 M0 f; U/ ^0 B
#但是无法ping通10.1.12.2
! t K1 u _9 D
+ |5 c1 p/ Z1 T1 y& Z& ^ N2 @$ g/ `6 f9 Z% k+ u
无法ping通10.1.12.2的原因是:我们没有做NAT .接下来我们在pppoe-client上面做NAT5 u5 C6 y% p$ ?) Y( D
: q5 m+ A( D8 J- i; t1、这里配置规则2000: G6 W2 I2 @6 [) X2 a) q3 _
[pppoe-client]acl number 2000
9 U! H& E3 o# @3 Z[pppoe-client-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255: s+ Z3 w5 r; s0 Q5 h
" q2 f5 i+ g) S- W! X2、将规则2000绑定到接口# v! `! ~: m+ b9 ?
如下接口信息,需要注意的是pppoe的接口是Dialer1,并不是GigabitEthernet0/0/0口。我们必须将规则绑定在Dialer1口,最容易犯错的就是直接绑定在g0/0/0口。
% A5 ?8 I, A+ b: Z8 H, r" }- n
' i# g0 X& i7 P3 U[pppoe-client]dis ip int b
; ~ a& t0 s4 Z8 C2 G, \*down: administratively down6 e: d: \6 H+ N7 ]! k ^7 w
^down: standby
( Z$ n* w* A& R(l): loopback$ q+ R8 B/ V5 o B# B, L! K s8 T
(s): spoofing
3 x k2 ?% d( Q0 a" OThe number of interface that is UP in Physical is 4& p7 {# R1 }) U: y* e Z O5 S6 S
The number of interface that is DOWN in Physical is 0
0 Z2 e' h7 {: E% O+ ?- c( dThe number of interface that is UP in Protocol is 38 P$ U0 E, x# L7 D& ]4 u% l
The number of interface that is DOWN in Protocol is 15 w/ H- T" k0 ?0 H" D0 z6 [! l. g
& t |- M/ y9 x( UInterface IP Address/Mask Physical Protocol
- C& T) D) O9 f! d% l# ~+ s$ |/ SDialer1 10.1.12.254/32 up up(s) ( `% [/ d I8 h
GigabitEthernet0/0/0 unassigned up down
0 a6 M0 L$ I I; e" o) y+ YGigabitEthernet0/0/1 192.168.1.254/24 up up
3 q8 o; Q3 h( kNULL0 unassigned up up(s) $ l: |1 f z8 c/ n) c
[pppoe-client]
2 E* U8 Z1 E' k9 G5 d7 [% e. k0 U& D; t* v$ }) F! l2 q. I0 m; M5 E0 ?
[pppoe-client]int Dialer 1
4 j2 R4 s7 n# M9 k& r* J[pppoe-client-Dialer1]nat outbound 2000
# }3 T5 e9 g) j7 T1 @# B[pppoe-client-Dialer1]dis th1 L' q& F) D5 h: G% a
[V200R003C00]
" R. u: `) Q, }% w# M8 G#
) G% {, w Z" q, c7 a! V0 Finterface Dialer1
, a- ]: `2 b8 ^; c link-protocol ppp
! D# k3 g+ K* [5 S; V ppp chap user pokes! N6 l3 v+ D0 g6 r& k# E' y
ppp chap password cipher %$%$I/!'WCyd<7p[~8;,>51L,$sl%$%$
7 x2 ^2 A0 s8 m7 v6 G3 | ip address ppp-negotiate
$ D7 J& D6 N: O6 y8 G4 `& b$ _ dialer user zhprny
4 a) g6 S8 u: Q" X: T dialer bundle 1" z# F6 C2 s9 x
dialer-group 16 E' h) j2 O. [
nat outbound 2000% Z# X$ Y4 D- V) M( Z/ {" X+ h
#$ J8 ?+ O! o; a/ x4 j
return9 w( |) I; }% h
[pppoe-client-Dialer1]
; S. I3 U3 J4 I
. C# \8 ], S% H# x) X接下来我们就可以ping通10.1.12.2 了。
0 o+ S9 |$ q- \; M* J( ^. U! j) C7 }( E0 m3 G2 G7 \
PC2>ping 10.1.12.2+ f8 L/ S; a% |7 K0 Y- T0 u7 j
/ m$ X+ _( m6 A
Ping 10.1.12.2: 32 data bytes, Press Ctrl_C to break$ o: B4 c! X9 `0 J/ A
From 10.1.12.2: bytes=32 seq=1 ttl=254 time=31 ms
! L0 }8 w, U' c4 z$ vFrom 10.1.12.2: bytes=32 seq=2 ttl=254 time=32 ms
[ a* U9 z4 O) y% PFrom 10.1.12.2: bytes=32 seq=3 ttl=254 time=46 ms
* z0 J) e# Y3 m6 P7 p1 BFrom 10.1.12.2: bytes=32 seq=4 ttl=254 time=32 ms
3 B& i. q5 J* RFrom 10.1.12.2: bytes=32 seq=5 ttl=254 time=31 ms2 {* M0 r6 M! S9 @2 N
. @( i: J" L' e3 d
--- 10.1.12.2 ping statistics ---% u, i3 m" X' ^" L. P% P, j$ F& A; X
5 packet(s) transmitted, F; B( F( |* I" a
5 packet(s) received
! b% r4 D" x* Y# q 0.00% packet loss
( s$ r* l/ b. Q) B$ W) e# R& j3 Z round-trip min/avg/max = 31/34/46 ms5 _2 S+ c. f/ q* U4 a
3 r2 O* F& U: ]+ T2 p. O' K' k; }
|
|