Bu bölümde Point to Point Protocol over Ethernet , Ethernet Üzerinden Noktadan Noktaya İletişim konfigürasyonu yapacagız.
1. Genel cihaz ayarlamaları.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname CLIGURU-R1
|
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname CLIGURU-R2
|
2.PPPoE sunucusunu yapılandıralım.
PPPoE sunucu enteprise ağın parçası değil, ancak entemprise edge router CLIGURU-R1 için authentication için izin gereklidir.
[CLIGURU-R2]ip pool pool1
Info: It’s successful to create an IP address pool.
[CLIGURU-R2-ip-pool-pool1]network 119.84.111.0 mask 255.255.255.0
[CLIGURU-R2-ip-pool-pool1]gateway-list 119.84.111.254
[CLIGURU-R2-ip-pool-pool1]quit
[CLIGURU-R2]interface Virtual-Template 1
[CLIGURU-R2-Virtual-Template1]ppp authentication-mode chap
[CLIGURU-R2-Virtual-Template1]ip address 119.84.111.254 255.255.255.0
[CLIGURU-R2-Virtual-Template1]remote address pool pool1
[CLIGURU-R2-Virtual-Template1]quit
|
Interface GigabitEthernet 0/0/0 bind virtual-template bağlantısını kuralım.
[CLIGURU-R2]interface GigabitEthernet 0/0/0
[CLIGURU-R2-GigabitEthernet0/0/0]pppoe-server bind virtual-template 1
[CLIGURU-R2-GigabitEthernet0/0/0]quit
|
PPPoE authentication için user kullanıcısını oluşturalım.
[CLIGURU-R2]aaa
[CLIGURU-R2-aaa]local-user huawei1 password cipher huawei
Info: Add a new user.
[CLIGURU-R2-aaa]local-user huawei1 service-type ppp
[CLIGURU-R2-aaa]local-user huawei2 password cipher huawei
Info: Add a new user.
[CLIGURU-R2-aaa]local-user huawei2 service-type ppp
[CLIGURU-R2-aaa]quit
|
PPPoE client konfigürasyonu oluşturalım.
Öncelikle bir Dialer interface’i oluşturmamız gerekiyor ve fiziksel olarak Dialer interface’i üzerinden de bağlantı sağlanmalı.
[CLIGURU-R1]dialer-rule
[CLIGURU-R1-dialer-rule]dialer-rule 1 ip permit
[CLIGURU-R1-dialer-rule]quit
[CLIGURU-R1]interface dialer 1
[CLIGURU-R1-Dialer1]dialer user user1
[CLIGURU-R1-Dialer1]dialer-group 1
[CLIGURU-R1-Dialer1]dialer bundle 1
[CLIGURU-R1-Dialer1]ppp chap user huawei1
[CLIGURU-R1-Dialer1]ppp chap password cipher huawei
[CLIGURU-R1-Dialer1]dialer timer idle 300
INFO: The configuration will become effective after link reset.
[CLIGURU-R1-Dialer1]dialer queue-length 8
[CLIGURU-R1-Dialer1]ip address ppp-negotiate
[CLIGURU-R1-Dialer1]quit
|
PPPoE dialer bağlantısı kuralım.
[CLIGURU-R1]interface GigabitEthernet 0/0/0
[CLIGURU-R1-GigabitEthernet0/0/0]pppoe-client dial-bundle-number 1
[CLIGURU-R1-GigabitEthernet0/0/0]quit
|
PPPoE server için bir statik route yazalım.
[CLIGURU-R1]ip route-static 0.0.0.0 0.0.0.0 Dialer 1
|
Konfigürasyonun yapılandırmasını doğrulayalım.
Display pppoe-server session all komutu ile PPPoE çalıştıgına bakalım.
<CLIGURU-R2>display pppoe-server session all
SID Intf State OIntf RemMAC LocMAC
1 Virtual-Template1:0 UP GE0/0/0 80fb.06af.9c26 d46a.a877.0a41
|
Görüntülenen bilgiye göre, oturum durumu normal.
<CLIGURU-R2>display virtual-access
Virtual-Template1:0 current state : UP
Line protocol current state : UP
Last line protocol up time : 2015-01-12 09:31:20
Description:HUAWEI, AR Series, Virtual-Template1:0 Interface
Route Port,The Maximum Transmit Unit is 1492, Hold timer is 10(sec)
Link layer protocol is PPP
LCP opened, IPCP opened
Current system time: 2015-01-12 09:36:00
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
|
CLIGURU-R1 cihazının IP address aldıgını görüyoruz.
<CLIGURU-R1>display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 3
Interface IP Address/Mask Physical Protocol
Dialer1 119.84.111.253/32 up up(s)
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
|
Sonuç..
<CLIGURU-R1>display current-configuration
[V200R002C01SPC]
#
sysname CLIGURU-R1
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password .]@USE=B,53Q=^Q`MAF4<1!!
local-user admin service-type http
#
interface Dialer1
link-protocol ppp
ppp chap user huawei1
ppp chap password cipher %$%$m5@jI}@MmLcl^’Nj_”-W,MD;%$%$
ip address ppp-negotiate
dialer user user1
dialer bundle 1
dialer queue-length 8
dialer timer idle 300
dialer-group 1
#
interface GigabitEthernet0/0/0
pppoe-client dial-bundle-number 1
#
dialer-rule
dialer-rule 1 ip permit
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
user-interface con 0
authentication-mode password
set authentication password cipher %$%$`”aN9E<uDX];y<CER\!.,jaXCz*FTg\Y\=Ziu[EUjz.@(pgb%$%$
user-interface vty 0 4
user-interface vty 16 20
#
return
|
<CLIGURU-R2>display current-configuration
[V200R003C01SPC900]
#
sysname CLIGURU-R2
#
ip pool pool1
gateway-list 119.84.111.254
network 119.84.111.0 mask 255.255.255.0
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %$%$=i~>Xp&aY+*2cEVcS-A23Uwe%$%$
local-user admin service-type http
local-user huawei1 password cipher %$%$%,]}9LAv[H5UZ3H.8cn;Dr:I%$%$
local-user huawei1 service-type ppp
local-user huawei2 password cipher %$%$H1:p:xwCEOY)=gNgAw]”Ds::%$%$
local-user huawei2 service-type ppp
#
interface Virtual-Template1
ppp authentication-mode chap
remote address pool pool1
ip address 119.84.111.254 255.255.255.0
#
interface GigabitEthernet0/0/0
pppoe-server bind Virtual-Template 1
#
user-interface con 0
authentication-mode password
set authentication password cipher %$%$XIQz((65C0)~JQA$S0~-,.Y:$)u3N6ovJ@ANWxOC7*X-.Y=,%$%$
user-interface vty 0 4
#
Return
|