H3CPPP和PPPoE配置举例Word格式.docx

上传人:b****2 文档编号:14104850 上传时间:2022-10-18 格式:DOCX 页数:13 大小:52.44KB
下载 相关 举报
H3CPPP和PPPoE配置举例Word格式.docx_第1页
第1页 / 共13页
H3CPPP和PPPoE配置举例Word格式.docx_第2页
第2页 / 共13页
H3CPPP和PPPoE配置举例Word格式.docx_第3页
第3页 / 共13页
H3CPPP和PPPoE配置举例Word格式.docx_第4页
第4页 / 共13页
H3CPPP和PPPoE配置举例Word格式.docx_第5页
第5页 / 共13页
点击查看更多>>
下载资源
资源描述

H3CPPP和PPPoE配置举例Word格式.docx

《H3CPPP和PPPoE配置举例Word格式.docx》由会员分享,可在线阅读,更多相关《H3CPPP和PPPoE配置举例Word格式.docx(13页珍藏版)》请在冰豆网上搜索。

H3CPPP和PPPoE配置举例Word格式.docx

如图1-3所示,RouterA和RouterB之间用接口Serial2/1/0互连,要求RouterA用PAP方式认证RouterB,RouterB不需要对RouterA进行认证。

2. 

组网图

图1-3 

配置PAP单向认证组网图

3. 

配置步骤

(1) 

配置RouterA

为RouterB创建本地用户。

<

RouterA>

system-view

[RouterA]local-useruserbclassnetwork

设置本地用户的密码。

[RouterA-luser-network-userb]passwordsimplepassb

设置本地用户的服务类型为PPP。

[RouterA-luser-network-userb]service-typeppp

[RouterA-luser-network-userb]quit

配置接口封装的链路层协议为PPP(缺省情况下,接口封装的链路层协议为PPP,此步骤可选)。

[RouterA]interfaceserial2/1/0

[RouterA-Serial2/1/0]link-protocolppp

配置本地认证RouterB的方式为PAP。

[RouterA-Serial2/1/0]pppauthentication-modepapdomainsystem

配置接口的IP地址。

[RouterA-Serial2/1/0]ipaddress200.1.1.116

[RouterA-Serial2/1/0]quit

在系统缺省的ISP域system下,配置PPP用户使用本地认证方案。

[RouterA]domainsystem

[RouterA-isp-system]authenticationppplocal

(2) 

配置RouterB

RouterB>

[RouterB]interfaceserial2/1/0

[RouterB-Serial2/1/0]link-protocolppp

配置本地被RouterA以PAP方式认证时RouterB发送的PAP用户名和密码。

[RouterB-Serial2/1/0]ppppaplocal-useruserbpasswordsimplepassb

[RouterB-Serial2/1/0]ipaddress200.1.1.216

4. 

验证配置

通过displayinterfaceserial命令,查看接口Serial2/1/0的信息,发现接口的物理层和链路层的状态都是up状态,并且PPP的LCP和IPCP都是opened状态,说明链路

配置本地被RouterB以PAP方式认证时RouterA发送的PAP用户名和密码。

[RouterA-Serial2/1/0]ppppaplocal-useruserapasswordsimplepassa

为RouterA创建本地用户。

[RouterB]local-useruseraclassnetwork

[RouterB-luser-network-usera]passwordsimplepassa

[RouterB-luser-network-usera]service-typeppp

[RouterB-luser-network-usera]quit

配置本地认证RouterA的方式为PAP。

[RouterB-Serial2/1/0]pppauthentication-modepapdomainsystem

[RouterB-Serial2/1/0]quit

[RouterB]domainsystem

[RouterB-isp-system]authenticationppplocal

通过displayinterfaceserial命令,查看接口Serial2/1/0的信息,发现接口的物理层和链路层的状态都是up状态,并且PPP的LCP和IPCP都是opened状态,说明链路的PPP协商已经成功,并且RouterA和RouterB可以互相ping通对方。

[RouterB-isp-system]displayinterfaceserial2/1/0

Serial2/1/0

Currentstate:

UP

Lineprotocolstate:

Description:

Serial2/1/0Interface

Bandwidth:

64kbps

MaximumTransmitUnit:

1500

InternetAddress:

200.1.1.2/16Primary

Linklayerprotocol:

PPP

LCPopened,IPCPopened

…略…

[RouterB-isp-system]ping200.1.1.1

1.5.3 

CHAP单向认证举例

在图1-3中,要求设备RouterA用CHAP方式认证设备RouterB。

图1-5 

配置CHAP单向认证组网图

配置方法一(以CHAP方式认证对端时,认证方配置了用户名)

[RouterA-luser-network-userb]passwordsimplehello

配置采用CHAP认证时RouterA的用户名。

[RouterA-Serial2/1/0]pppchapuserusera

配置本地认证RouterB的方式为CHAP。

[RouterA-Serial2/1/0]pppauthentication-modechapdomainsystem

[RouterB-luser-network-usera]passwordsimplehello

配置采用CHAP认证时RouterB的用户名。

[RouterB-Serial2/1/0]pppchapuseruserb

配置方法二(以CHAP方式认证对端时,认证方没有配置用户名)

[RouterA]local-useruserbcl

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > IT计算机 > 计算机软件及应用

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1