MP配置举例.docx

上传人:b****2 文档编号:692955 上传时间:2023-04-29 格式:DOCX 页数:18 大小:171.71KB
下载 相关 举报
MP配置举例.docx_第1页
第1页 / 共18页
MP配置举例.docx_第2页
第2页 / 共18页
MP配置举例.docx_第3页
第3页 / 共18页
MP配置举例.docx_第4页
第4页 / 共18页
MP配置举例.docx_第5页
第5页 / 共18页
MP配置举例.docx_第6页
第6页 / 共18页
MP配置举例.docx_第7页
第7页 / 共18页
MP配置举例.docx_第8页
第8页 / 共18页
MP配置举例.docx_第9页
第9页 / 共18页
MP配置举例.docx_第10页
第10页 / 共18页
MP配置举例.docx_第11页
第11页 / 共18页
MP配置举例.docx_第12页
第12页 / 共18页
MP配置举例.docx_第13页
第13页 / 共18页
MP配置举例.docx_第14页
第14页 / 共18页
MP配置举例.docx_第15页
第15页 / 共18页
MP配置举例.docx_第16页
第16页 / 共18页
MP配置举例.docx_第17页
第17页 / 共18页
MP配置举例.docx_第18页
第18页 / 共18页
亲,该文档总共18页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

MP配置举例.docx

《MP配置举例.docx》由会员分享,可在线阅读,更多相关《MP配置举例.docx(18页珍藏版)》请在冰点文库上搜索。

MP配置举例.docx

MP配置举例

MP配置举例

1.组网需求

在图1-7中,RouterA的E1接口有两个通道连接到RouterB的两个通道上,另外两个通道连接到RouterC的两个通道上,采用验证绑定方式。

假定RouterA上的四个通道为:

Serial2/0:

1、Serial2/0:

2、Serial2/0:

3和Serial2/0:

4,RouterB上的两个通道的接口名为:

Serial2/0:

1和Serial2/0:

2,RouterC上的两个通道的接口名为:

Serial2/0:

1和Serial2/0:

2。

2.组网图

图1-7MP配置举例组网图

3.配置步骤

(1)配置RouterA

#在RouterA上为RouterB和RouterC各增加一个用户。

system-view

[RouterA]local-userrouter-b

[RouterA-luser-router-b]passwordsimplerouter-b

[RouterA-luser-router-b]service-typeppp

[RouterA-luser-router-b]quit

[RouterA]local-userrouter-c

[RouterA-luser-router-c]passwordsimplerouter-c

[RouterA-luser-router-c]service-typeppp

[RouterA-luser-router-c]quit

#为这两个用户指定虚拟接口模板。

[RouterA]pppmpuserrouter-bbindvirtual-template1

[RouterA]pppmpuserrouter-cbindvirtual-template2

#配置虚拟接口模板。

[RouterA]interfacevirtual-template1

[RouterA-Virtual-Template1]ipaddress202.38.166.1255.255.255.0

[RouterA-Virtual-Template1]quit

[RouterA]interfacevirtual-template2

[RouterA-Virtual-Template2]ipaddress202.38.168.1255.255.255.0

[RouterA-Virtual-Template2]quit

#将接口Serial2/0:

1、Serial2/0:

2、Serial2/0:

3和Serial2/0:

4加入MP通道,以Serial2/0:

1为例,其它接口作同样配置。

[RouterA]interfaceserial2/0:

1

[RouterA-Serial2/0:

1]link-protocolppp

[RouterA-Serial2/0:

1]pppmp

[RouterA-Serial2/0:

1]pppauthentication-modepapdomainsystem

[RouterA-Serial2/0:

1]ppppaplocal-userrouter-apasswordsimplerouter-a

[RouterA-Serial2/0:

1]quit

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

[RouterA]domainsystem

[RouterA-isp-system]authenticationppplocal

(2)配置RouterB

#为RouterA增加一个用户。

system-view

[RouterB]local-userrouter-a

[RouterB-luser-router-a]passwordsimplerouter-a

[RouterB-luser-router-a]service-typeppp

[RouterB-luser-router-a]quit

#为这个用户指定虚拟接口模板,将使用该模板的NCP信息进行PPP协商。

[RouterB]pppmpuserrouter-abindvirtual-template1

#配置虚拟接口模板的工作参数。

[RouterB]interfacevirtual-template1

[RouterB-Virtual-Template1]ipaddress202.38.166.2255.255.255.0

[RouterB-Virtual-Template1]quit

#将接口Serial2/0:

1和Serial2/0:

2加入MP通道,我们以Serial2/0:

1为例,其它接口作同样配置。

[RouterB]interfaceserial2/0:

1

[RouterB-Serial2/0:

1]pppmp

[RouterB-Serial2/0:

1]pppauthentication-modepapdomainsystem

[RouterB-Serial2/0:

1]ppppaplocal-userrouter-bpasswordsimplerouter-b

[RouterB-Serial2/0:

1]quit

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

[RouterB]domainsystem

[RouterB-isp-system]authenticationppplocal

(3)配置RouterC

#为RouterA增加一个用户。

system-view

[RouterC]local-userrouter-a

[RouterC-luser-router-a]passwordsimplerouter-a

[RouterC-luser-router-a]service-typeppp

[RouterC-luser-router-a]quit

#为这个用户指定虚拟接口模板,将使用该模板的NCP信息进行PPP协商。

[RouterC]pppmpuserrouter-abindvirtual-template1

#配置虚拟接口模板的工作参数。

[RouterC]interfacevirtual-template1

[RouterC-Virtual-Template1]ipaddress202.38.168.2255.255.255.0

[RouterC-Virtual-Template1]quit

#将接口Serial2/0:

1和Serial2/0:

2加入MP通道,我们以Serial2/0:

1为例,其它接口作同样配置。

[RouterC]interfaceserial2/0:

1

[RouterC-Serial2/0:

1]pppmp

[RouterC-Serial2/0:

1]pppauthentication-modepapdomainsystem

[RouterC-Serial2/0:

1]ppppaplocal-userrouter-cpasswordsimplerouter-c

[RouterC-Serial2/0:

1]quit

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

[RouterC]domainsystem

[RouterC-isp-system]authenticationppplocal

 

CHAP单向验证举例

1.组网需求

在图中,要求设备RouterA用CHAP方式验证设备Router

 

 

B。

2.配置方法一(验证方配置用户名时以CHAP方式认证对端)

(1)配置RouterA

#为RouterB创建本地用户。

system-view

[RouterA]local-useruserb

#设置本地用户的密码。

[RouterA-luser-userb]passwordsimplehello

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

[RouterA-luser-userb]service-typeppp

[RouterA-luser-userb]quit

#配置接口封装的链路层协议为PPP。

[RouterA]interfaceserial2/0

[RouterA-Serial2/0]link-protocolppp

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

[RouterA-Serial2/0]pppchapuserusera

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

[RouterA-Serial2/0]pppauthentication-modechapdomainsystem

#配置接口的IP地址。

[RouterA-Serial2/0]ipaddress200.1.1.116

[RouterA-Serial2/0]quit

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

[RouterA]domainsystem

[RouterA-isp-system]authenticationppplocal

(2)配置RouterB

#为RouterA创建本地用户。

system-view

[RouterB]local-userusera

#设置本地用户的密码。

[RouterB-luser-usera]passwordsimplehello

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

[RouterB-luser-usera]service-typeppp

[RouterB-luser-usera]quit

#配置接口封装的链路层协议为PPP。

[RouterB]interfaceserial2/0

[RouterB-Serial2/0]link-protocolppp

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

[RouterB-Serial2/0]pppchapuseruserb

#配置接口的IP地址。

[RouterB-Serial2/0]ipaddress200.1.1.216

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

(1)配置RouterA

#为RouterB创建本地用户。

system-view

[RouterA]local-useruserb

#设置本地用户的密码。

[RouterA-luser-userb]passwordsimplehello

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

[RouterA-luser-userb]service-typeppp

[RouterA-luser-userb]quit

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

[RouterA]interfaceserial2/0

[RouterA-Serial2/0]pppauthentication-modechapdomainsystem

#配置接口的IP地址。

[RouterA-Serial2/0]ipaddress200.1.1.116

[RouterA-Serial2/0]quit

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

[RouterA]domainsystem

[RouterA-isp-system]authenticationppplocal

(2)配置RouterB

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

system-view

[RouterB]interfaceserial2/0

[RouterB-Serial2/0]pppchapuseruserb

#设置缺省的CHAP验证密码。

[RouterB-Serial2/0]pppchappasswordsimplehello

#配置接口的IP地址。

[RouterB-Serial2/0]ipaddress200.1.1.216

4.验证配置结果

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

[RouterB-Serial2/0]displayinterfaceserial2/0

Serial2/0currentstate:

UP

Lineprotocolcurrentstate:

UP

Description:

Serial2/0Interface

TheMaximumTransmitUnitis1500,Holdtimeris10(sec)

InternetAddressis200.1.1.2/16Primary

LinklayerprotocolisPPP

LCPopened,IPCPopened

Outputqueue:

(Urgentqueuing:

Size/Length/Discards)0/100/0

Outputqueue:

(Protocolqueuing:

Size/Length/Discards)0/500/0

Outputqueue:

(FIFOqueuing:

Size/Length/Discards)0/75/0

InterfaceisV35

206packetsinput,2496bytes

206packetsoutput,2492bytes

[RouterB-Serial2/0]ping200.1.1.1

PING200.1.1.1:

56databytes,pressCTRL_Ctobreak

Replyfrom200.1.1.1:

bytes=56Sequence=1ttl=255time=103ms

Replyfrom200.1.1.1:

bytes=56Sequence=2ttl=255time=1ms

Replyfrom200.1.1.1:

bytes=56Sequence=3ttl=255time=1ms

Replyfrom200.1.1.1:

bytes=56Sequence=4ttl=255time=1ms

Replyfrom200.1.1.1:

bytes=56Sequence=5ttl=255time=10ms

---200.1.1.1pingstatistics---

5packet(s)transmitted

5packet(s)received

0.00%packetloss

round-tripmin/avg/max=1/23/103ms

 

PAP单向验证举例

1.组网需求

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

2.组网图

图1-5PAP验证、CHAP验证举例组网图

3.配置步骤

(1)配置RouterA

#为RouterB创建本地用户。

system-view

[RouterA]local-useruserb

#设置本地用户的密码。

[RouterA-luser-userb]passwordsimplepassb

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

[RouterA-luser-userb]service-typeppp

[RouterA-luser-userb]quit

#配置接口封装的链路层协议为PPP。

[RouterA]interfaceserial2/0

[RouterA-Serial2/0]link-protocolppp

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

[RouterA-Serial2/0]pppauthentication-modepapdomainsystem

#配置接口的IP地址。

[RouterA-Serial2/0]ipaddress200.1.1.116

[RouterA-Serial2/0]quit

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

[RouterA]domainsystem

[RouterA-isp-system]authenticationppplocal

(2)配置RouterB

#配置接口封装的链路层协议为PPP。

system-view

[RouterB]interfaceserial2/0

[RouterB-Serial2/0]link-protocolppp

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

[RouterB-Serial2/0]ppppaplocal-useruserbpasswordsimplepassb

#配置接口的IP地址。

[RouterB-Serial2/0]ipaddress200.1.1.216

(3)验证配置结果

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

[RouterB-Serial2/0]displayinterfaceserial2/0

Serial2/0currentstate:

UP

Lineprotocolcurrentstate:

UP

Description:

Serial2/0Interface

TheMaximumTransmitUnitis1500,Holdtimeris10(sec)

InternetAddressis200.1.1.2/16Primary

LinklayerprotocolisPPP

LCPopened,IPCPopened

Outputqueue:

(Urgentqueuing:

Size/Length/Discards)0/100/0

Outputqueue:

(Protocolqueuing:

Size/Length/Discards)0/500/0

Outputqueue:

(FIFOqueuing:

Size/Length/Discards)0/75/0

InterfaceisV35

206packetsinput,2496bytes

206packetsoutput,2492bytes

[RouterB-Serial2/0]ping200.1.1.1

PING200.1.1.1:

56databytes,pressCTRL_Ctobreak

Replyfrom200.1.1.1:

bytes=56Sequence=1ttl=255time=103ms

Replyfrom200.1.1.1:

bytes=56Sequence=2ttl=255time=1ms

Replyfrom200.1.1.1:

bytes=56Sequence=3ttl=255time=1ms

Replyfrom200.1.1.1:

bytes=56Sequence=4ttl=255time=1ms

Replyfrom200.1.1.1:

bytes=56Sequence=5ttl=255time=10ms

---200.1.1.1pingstatistics---

5packet(s)transmitted

5packet(s)received

0.00%packetloss

round-tripmin/avg/max=1/23/103ms

动态分配地址典型配置举例

1.组网需求

●作为DHCP服务器的RouterA为网段10.1.1.0/24中的客户端动态分配IP地址,该地址池网段分为两个子网网段:

10.1.1.0/25和10.1.1.128/25;

●RouterA的两个以太网接口,Ethernet1/1和Ethernet1/2的地址分别为10.1.1.1/25和10.1.1.129/25;

●10.1.1.0/25网段内的地址租用期限为10天12小时,域名后缀为,DNS服务器地址为10.1.1.2/25,WINS服务器地址为10.1.1.4/25,网关的地址为10.1.1.126/25;

●10.1.1.128/25网段内的地址租用期限为5天,域名后缀为,DNS服务器地址为10.1.1.2/25,无WINS服务器地址,网关的地址为10.1.1.254/25。

●10.1.1.0/25网段与10.1.1.128/25网段的域名后缀、DNS服务器地址相同,可以只配置10.1.1.0/24网段的域名后缀和DNS服务器地址,10.1.1.0/25网段与10.1.1.128/25网段继承10.1.1.0/24网段的配置。

2.组网图

图2-2DHCP组网图

3.配置步骤

(1)配置各接口的IP地址(略)

(2)配置DHCP服务

#使能DHCP服务。

system-view

[RouterA]dhcpenable

#配置接口Ethernet1/1和Ethernet1/2工作在DHCP服务器模式。

[RouterA]interfaceethernet1/1

[RouterA-Ethernet1/1]dhcpselectserverglobal-pool

[RouterA-Ethernet1/1]quit

[RouterA]interfaceethernet1/2

[RouterA-Ethernet1/2]dhcpselectserverglobal-pool

[RouterA-Ethernet1/2]quit

#配置不参与自动分配的IP地址(DNS服务器、WINS服务器和网关地址)。

[RouterA]dhcp

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

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2