CISCO路由器PPPoE实验报告.docx

上传人:b****0 文档编号:18281365 上传时间:2023-08-15 格式:DOCX 页数:13 大小:242.18KB
下载 相关 举报
CISCO路由器PPPoE实验报告.docx_第1页
第1页 / 共13页
CISCO路由器PPPoE实验报告.docx_第2页
第2页 / 共13页
CISCO路由器PPPoE实验报告.docx_第3页
第3页 / 共13页
CISCO路由器PPPoE实验报告.docx_第4页
第4页 / 共13页
CISCO路由器PPPoE实验报告.docx_第5页
第5页 / 共13页
CISCO路由器PPPoE实验报告.docx_第6页
第6页 / 共13页
CISCO路由器PPPoE实验报告.docx_第7页
第7页 / 共13页
CISCO路由器PPPoE实验报告.docx_第8页
第8页 / 共13页
CISCO路由器PPPoE实验报告.docx_第9页
第9页 / 共13页
CISCO路由器PPPoE实验报告.docx_第10页
第10页 / 共13页
CISCO路由器PPPoE实验报告.docx_第11页
第11页 / 共13页
CISCO路由器PPPoE实验报告.docx_第12页
第12页 / 共13页
CISCO路由器PPPoE实验报告.docx_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

CISCO路由器PPPoE实验报告.docx

《CISCO路由器PPPoE实验报告.docx》由会员分享,可在线阅读,更多相关《CISCO路由器PPPoE实验报告.docx(13页珍藏版)》请在冰点文库上搜索。

CISCO路由器PPPoE实验报告.docx

CISCO路由器PPPoE实验报告

题目:

PPPOE实验

实验拓扑如下:

实验要求:

1.在pppoe-client2路由器上使用NAT协议,让内部主机能够上网

2.路由器pppoe-client2和pppoe-client1通过pppoe协议拨号连接pppoe-server服务器,

3.在pppoe-server和ISP-router之间使用ospf路由选择协议

实验目的:

掌握1.pppoe在路由器上的配置过程

2.NAT

3.单区域ospf

实验步骤:

1.使用小凡模拟器搭建实验环境。

2.

2.在pppoe-server路由器上配置如下

PPPoe-server(config-if)#usernameciscopasswordcisco创建一个拨号帐号。

PPPoe-server(config)#vpdnenable//启用vpdn虚拟私有拨号网络协议

PPPoe-server(config)#vpdn-groupadsl0//创建一个虚拟私有拨号网络组,起名为adsl0

PPPoe-server(config-vpdn)#accept-dialin//允许拨入改组

PPPoe-server(config-vpdn-acc-in)#protocolpppoe//并启用pppoe协议

%OnlyonePPPoEVPDNgroupcanbeconfigured

PPPoe-server(config-vpdn-acc-in)#virtual-template1//关联一个虚拟接口

PPPoe-server(config-vpdn-acc-in)#exit

PPPoe-server(config-vpdn)#pppoelimitper-mac10//限制拨号连接的mac数目为10

PPPoe-server(config)#intf0/0启用物理接口

PPPoe-server(config-if)#ipadd1.1.1.1255.255.255.0配置ip地址

PPPoe-server(config-if)#noshut

PPPoe-server(config-if)#pppoeenable并在该物理接口下启用pppoe协议

PPPoe-server(config-if)#intvirtual-template1配置虚拟接口

PPPoe-server(config-if)#ipaddress200.0.0.1255.255.255.0

PPPoe-server(config-if)#peerdefaultipaddresspoolad指定拨入端的iP池,名字为ad

PPPoe-server(config-if)#pppauthenticationchappapcallin启用混合认证方式

PPPoe-server(config-if)#pppipcpdns202.102.128.68202.102.134.68给拨入端指派dns

PPPoe-server(config-if)#iplocalpoolvt1200.0.0.20200.0.0.254指定拨入端能够使用的ip范围

PPPoe-server(config)#

PPPoe-server(config)#routerospf10启用ospf路由选择协议

PPPoe-server(config-router)#net200.0.0.00.0.0.255area0通告直连网络号

PPPoe-server(config-router)#net100.0.0.00.0.0.255area0

PPPoe-server(config-router)#

pppoe-server(config)#doshoiprouospf查看ospf路由表

5.0.0.0/32issubnetted,1subnets

O5.5.5.5[110/11]via100.0.0.2,00:

03:

07,FastEthernet1/0

pppoe-server(config)#

pppoe-server(config)#doping5.5.5.5测试

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto5.5.5.5,timeoutis2seconds:

!

!

!

!

!

Successrateis100percent(5/5),round-tripmin/avg/max=20/211/364ms

pppoe-server(config)#doshoiprouospf

5.0.0.0/32issubnetted,1subnets

O5.5.5.5[110/11]via100.0.0.2,00:

03:

07,FastEthernet1/0

pppoe-server(config)#

在pppoe-client2上配置如下

pppoe-client2(config)#vpdnenable同上,在路由器作为拨入端时也要启用vpdn协议

pppoe-client2(config)#intf0/0

pppoe-client2(config-if)#noshut启用连接拨号的物理接口

pppoe-client2(config-if)#

*Mar100:

19:

54.511:

%LINK-3-UPDOWN:

InterfaceFastEthernet0/0,changedstatetoup

*Mar100:

19:

55.511:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

pppoe-client2(config-if)#pppoeenable同样启用pppoe协议

pppoe-client2(config-if)#

*Mar100:

20:

56.283:

%LINK-3-UPDOWN:

InterfaceVirtual-Access1,changedstatetoup

*Mar100:

20:

57.283:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceVirtual-Access1,changedstatetoup

pppoe-client2(config-if)#pppoe-clientdial-pool-number?

<1-255>Dialerpoolnumber

pppoe-client2(config-if)#pppoe-clientdial-pool-number1定义一个拨号池为1

pppoe-client2(config-if)#exit

pppoe-client2(config)#intdialer0启用拨号接口

pppoe-client2(config-if)#ipaddnegotiatedip地址协商

pppoe-client2(config-if)#ipmtu1492默认mtu为1500由于pppoe包头占用8字节

pppoe-client2(config-if)#noshut

pppoe-client2(config-if)#encapsulationppp启用封装协议

pppoe-client2(config-if)#pppauthenticationchappapcallin指定认证方式

pppoe-client2(config-if)#pppchaphostnamecisco

pppoe-client2(config-if)#pppchappasswordcisco

pppoe-client2(config-if)#ppppapsent-usernameciscopasswordcisco

pppoe-client2(config-if)#dialerpool1启用拨号池此时拨号自动开始连接

pppoe-client2(config-if)#pppipcpdnsrequest请求获取dns

pppoe-client2(config-if)#exit

pppoe-client2(config)#intf0/0

pppoe-client2(config-if)#ipadd2.2.2.2255.255.255.0

pppoe-client2(config-if)#noshut

pppoe-client2(config-if)#exit

pppoe-client2(config)#intf0/0

pppoe-client2(config-if)#shut

pppoe-client2(config-if)#

*Mar100:

38:

58.891:

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoadministrativelydown

*Mar100:

38:

59.891:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetodown

pppoe-client2(config-if)#

*Mar100:

39:

55.127:

%DIALER-6-UNBIND:

InterfaceVi2unboundfromprofileDi0

pppoe-client2(config-if)#

*Mar100:

39:

55.135:

%LINK-3-UPDOWN:

InterfaceVirtual-Access2,changedstatetodown

pppoe-client2(config-if)#

*Mar100:

39:

56.115:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceVirtual-Access2,changedstatetodown

pppoe-client2(config-if)#

pppoe-client2(config-if)#

pppoe-client2(config-if)#noshut

pppoe-client2(config-if)#

*Mar100:

41:

33.659:

%LINK-3-UPDOWN:

InterfaceFastEthernet0/0,changedstatetoup

*Mar100:

41:

34.659:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

pppoe-client2(config-if)#exi

*Mar100:

41:

50.519:

%DIALER-6-BIND:

InterfaceVi2boundtoprofileDi0

pppoe-client2(config-if)#ex

*Mar100:

41:

50.527:

%LINK-3-UPDOWN:

InterfaceVirtual-Access2,changedstatetoup

pppoe-client2(config-if)#

pppoe-client2#^Z

pppoe-client2#

*Mar100:

41:

54.491:

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

*Mar100:

41:

55.159:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceVirtual-Access2,changedstatetoup

pppoe-client2#shoipintbri获取到pppoe-server分配的ip地址,拨号成功

InterfaceIP-AddressOK?

MethodStatusProtocol

FastEthernet0/02.2.2.2YESmanualupup

Ethernet1/0unassignedYESunsetadministrativelydowndown

Ethernet1/1unassignedYESunsetadministrativelydowndown

Ethernet1/2unassignedYESunsetadministrativelydowndown

Ethernet1/3unassignedYESunsetadministrativelydowndown

Virtual-Access1unassignedYESunsetupup

Virtual-Access2unassignedYESunsetupup

Dialer0200.0.0.20YESIPCPupup

pppoe-client2#ping200.0.0.1

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto200.0.0.1,timeoutis2seconds:

!

!

!

!

!

Successrateis100percent(5/5),round-tripmin/avg/max=8/175/392ms

pppoe-client2#

以下是为了内网主机能够通过pppoe-client来nat上网的配置。

pppoe-client2(config)#ipdhcppoolad

pppoe-client2(dhcp-config)#network192.168.1.0255.255.255.0

pppoe-client2(dhcp-config)#defaul

pppoe-client2(dhcp-config)#default-router192.168.1.1

pppoe-client2(dhcp-config)#dns

pppoe-client2(dhcp-config)#dns-server202.102.128.68202.102.134.68

pppoe-client2(dhcp-config)#

pppoe-client2(dhcp-config)#exit

pppoe-client2(config)#acce

pppoe-client2(config)#access-listlist10permit192.168.1.00.0.0.255

^

%Invalidinputdetectedat'^'marker.

pppoe-client2(config)#access-list10permit192.168.1.00.0.0.255

pppoe-client2(config)#

pppoe-client2(config)#intdialer0

pppoe-client2(config-if)#ipnatoutside

pppoe-client2(config-if)#exit

pppoe-client2(config)#ipnatinsidesourcelist10interfacedialer0overload

pppoe-client2(config)#

pppoe-client2(config)#servicedhcp

pppoe-client2(config)#

pppoe-client2(config)#

pppoe-client2(config)#exit

pppoe-client2#

在ISP-router上配置如下

ISP-router(config)#intf0/0

ISP-router(config-if)#noshut

ISP-router(config-if)#ioip

^

%Invalidinputdetectedat'^'marker.

ISP-router(config-if)#

ISP-router(config-if)#ipadd10

*Mar101:

22:

26.143:

%LINK-3-UPDOWN:

InterfaceFastEthernet0/0,changedstatetoup

*Mar101:

22:

27.143:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

ISP-router(config-if)#ipadd100.0.0.2255.255.255.0

ISP-router(config-if)#nj

^

%Invalidinputdetectedat'^'marker.

ISP-router(config-if)#

ISP-router(config-if)#

ISP-router(config-if)#exit

ISP-router(config)#routerospf10

ISP-router(config-router)#network100.0.0.00.0.0.255area0

ISP-router(config-router)#noauto

ISP-router(config-router)#intloo0

ISP-router(config-if)#ip

*Mar101:

23:

17.583:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceLoopback0,changedstatetoup

ISP-router(config-if)#ipadd5.5.5.5255.255.255.0

ISP-router(config-if)#routerospf10

ISP-router(config-router)#network5.5.5.00.0.0.255area0

ISP-router(config-router)#exit

ISP-router(config)#

ISP-router(config)#

ISP-router(config)#

*Mar101:

26:

13.727:

%OSPF-5-ADJCHG:

Process10,Nbr200.0.0.1onFastEthernet0/0fromLOADINGtoFULL,LoadingDone

ISP-router(config)#

使用虚拟机测试连通性:

两个用户使用相同的帐号同时拨号成功

实验结论:

该实验报告在日常中比较实用,个人利用业余时间倾心制作,以供大家分享。

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

当前位置:首页 > 医药卫生 > 基础医学

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

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