oda021001 ppp and pppoe protocol configuration issue1_0

31
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved www.huawei.com Internal ODA021001 PPP and PPPoE Protocol Configuration ISSUE 1.0 PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Upload: randy-dookheran

Post on 05-May-2017

271 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved

www.huawei.com

Internal

ODA021001 PPP and PPPoEProtocol Configuration

ISSUE 1.0

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 2: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 2All rights reserved

References

l VRP 3.3 Operation Manual

l VRP 5.1 or VRP 5.3 Operation Manual

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 3: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 3All rights reserved

Upon completion of this course, you will be able to:

[Master how to configure PPP protocol.

[Master how to configure PPPoEprotocol.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 4: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 4All rights reserved

Chapter 1 PPP configurationChapter 1 PPP configuration

Chapter 2 PPPoE configurationChapter 2 PPPoE configuration

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 5: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 5All rights reserved

PPP configuration commands

l Encapsulate PPP, interface view

[ link-protocol ppp

l Set the local PPP authentication method for the peer router, interface view

[ppp authentication-mode { pap | chap }

l Add a user and set the password, system view or AAA view

[ local-user username password { simple | cipher } password

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 6: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 6All rights reserved

PAP configuration commands

l Commands for the router to authenticate the other one

[Authentication method

− ppp authentication-mode pap

[Put the user name and the password to local user database

− local-user username password { simple | cipher } password

l Commands for the router to be authenticated by the other one

[Configure the user name and the password for PAP authentication,interface view

− ppp pap local-user username password { simple | cipher } password

l Note: The two sides’ user names and passwords must be the same.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 7: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 7All rights reserved

CHAP configuration commands

l Commands for the router to authenticate the other one

[ Authentication method

− ppp authentication-mode chap[ Put the user name and the password to local user database

− local-user username password { simple | cipher } passwordl Commands for the router to be authenticated by the other one

[ Configure the user name and the password for CHAP authentication, interface view

− ppp chap user username

− ppp chap password { simple | cipher } passwordl Note: The two sides’ user names and passwords must be the same.

One Direction AuthenticationOne Direction Authentication

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 8: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 8All rights reserved

CHAP configuration commands

l Router One’s configuration:[ ppp authentication-mode chap

[ ppp chap user router_one’s_name

[ local-user router_two’s_name password { simple | cipher } password

l Router Two’s configuration:[ ppp authentication-mode chap

[ ppp chap user router_two’s_name

[ local-user router_one’_name password { simple | cipher } password

l Note:The password of the two sides must be the same.

BidirectionBidirection AuthenticationAuthentication

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 9: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 9All rights reserved

PAP authentication sample

Authenticator peer

rta rtb

PAP authentications0 s0

[rta-aaa]local-user rtb password simple hello[rta]interface serial 0[rta-Serial0]ip address 10.1.1.1 30[rta-Serial0]ppp authentication-mode pap

[rtb]interface serial 0[rtb-Serial0]ip address 10.1.1.2 30[rtb-Serial0]ppp pap local-user rtb password simple hello

Command version VRP5.1

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 10: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 10All rights reserved

One direction CHAP authentication sample

Authenticator

rta rtb

s0 s0

[rta-aaa]local-user rtb password simple hello[rta]interface serial 0[rta-Serial0]ip address 10.1.1.1 30[rta-Serial0]ppp authentication-mode chap

[rtb]interface serial 0[rtb-Serial0]ip address 10.1.1.2 30[rtb-Serial0]ppp chap user rtb[rtb-Serial0]ppp chap password simple hello

peer

CHAP authentication

Command version VRP5.1

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 11: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 11All rights reserved

Bidirection CHAP authentication sample

rta rtb

s0 s0

[rta-aaa]local-user rtb password simple hello[rta]interface serial 0[rta-Serial0]ip address 10.1.1.1 30[rta-Serial0]ppp chap user rta[rta-Serial0]ppp authentication-mode chap

[rtb-aaa]local-user rta password simple hello[rtb]interface serial 0[rtb-Serial0]ip address 10.1.1.2 30[rtb-Serial0]ppp chap user rtb[rtb-Serial0]ppp authentication-mode chap

CHAP authentication

Command version VRP5.1

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 12: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 12All rights reserved

PPP maintenance command

Operation Command

Display local user for PPP authentication display local-user

Display configuration of the port and the status of PPP

display interface interface-name

Command version VRP5.1

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 13: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 13All rights reserved

PPP troubleshooting

l The Physical Link Cannot Be in the Up State[Check the connection of the interfaces. If the connection is not

correct or the contact is poor, connect them once again.

[Check the physical attributes configured on the interfaces of the both ends. Execute the display interface command to obtain the interface configuration information. For inconsistentconfigurationss, modify the configuration parameters.

l The Link is Always in the Down State[Execute the debugging ppp command to enable the debugging

and view the authentication status. If the LCP negotiation succeeds and turns to the Up state, and then performs PAP or CHAP negotiation. After that, LCP turns to the Down state. At this time, you need to modify the authentication configurations and parameters.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 14: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 14All rights reserved

Chapter 1 PPP configurationChapter 1 PPP configuration

Chapter 2 PPPoE configurationChapter 2 PPPoE configuration

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 15: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 15All rights reserved

PPPoE configuration sample

Networking DiagramNetworking Diagram

l As shown in the Figure, the Router is connected to the host through the interface GE1/0/0, and is connected to the Internet through the interface POS2/0/0.

InternetGE1/0/0

Host

Host

Router

... POS2/0/0

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 16: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 16All rights reserved

Basic configuration

l Command version: VRP(R) software, Version 3.30, Release 0008

l Create and configure a virtual template

[<Router> system-view

[ [Router] interface virtual-template 1

[ [Router-Virtual-Template1] ip address 192.168.1.1 255.255.255.0

l Configure the PPP authentication mode of the virtual template as CHAP

[ [Router-Virtual-Template1] ppp authentication-mode chap

l Configure the address pool for the peer interface to assign IP addresses. We use number one pool here.

[ [Router-Virtual-Template1] remote address pool 1

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 17: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 17All rights reserved

Basic configuration

l Add a PPPoE user named “huawei”

[ [Router] local-user huawei password simple hello

l Configure the address pool. We configure number one pool here.

[ [Router] ip pool 1 192.168.1.2 192.168.1.254

l Configure PPPoE parameters on the Router

[ [Router] interface gigabitethernet 1/0/0

[ [Router-GigabitEthernet1/0/0] pppoe-server bind Virtual-Template 1

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 18: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 18All rights reserved

Assign DNS etc. parameters for the host

l Create a dhcp server’s ip-pool group

[ [Router] dhcp server ip-pool huawei

l The scale of network should include the ip pool we configured before.

[ [Router-dhcp-pool-huawei] network 192.168.1.0 mask 255.255.255.0

l Configure DNS parameter

[ [Router-dhcp-pool-huawei] dns-list 202.112.56.1

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 19: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 19All rights reserved

Set Host ( step 1 )

l Click "Network and Internet Connections"

Click here

l Let’s take Windows XP OS for example. Click “Start”, then choose”Control Panel”. Then appear:

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 20: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 20All rights reserved

Set Host ( step 2 )

l Click "Network Connections"

Click here

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 21: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 21All rights reserved

Set Host ( step 3 )

l Click “Create a new connection"

Click here

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 22: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 22All rights reserved

Set Host ( step 4 )

l Click “Next“.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 23: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 23All rights reserved

Set Host ( step 5 )

l Select “Connect to the Internet”, then click “Next“.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 24: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 24All rights reserved

Set Host ( step 6 )

l Select “Set up my connection manually”, then click “Next“.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 25: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 25All rights reserved

Set Host ( step 7 )

l Select “Connect using a broadband connection that requires a user name and password”, then click “Next"

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 26: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 26All rights reserved

Set Host ( step 8 )

l Input the ISP’s name; for example, test. Then click “Next"

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 27: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 27All rights reserved

Set Host ( step 9 )

l Input the user name and the password, then click “Next”.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 28: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 28All rights reserved

Set Host ( step 10 )

l Click “Finish“.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 29: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 29All rights reserved

Set Host ( step 11 )

l Note: If you use other OS, then it is different. Please follow the specific material’s step.

Click here to make a PPPoE session

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 30: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

HUAWEI TECHNOLOGIES CO., LTD. Page 30All rights reserved

Summary

l This course has just told you how to configure PPP protocol and PPPoE protocol.

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com

Page 31: ODA021001 PPP and PPPoE Protocol Configuration ISSUE1_0

www.huawei.com

Thank You

PDF created with FinePrint pdfFactory Pro trial version www.pdffactory.com