eNSP2.0模拟PPPoE实验
更新时间:2024-01-24 06:49:01 阅读量: 教育文库 文档下载
- ensp2020中级推荐度:
- 相关推荐
eNSP2.0模拟PPPoE实验
拓扑如下:
PPPoE服务器上的配置
sysname PPPoE-Server #
ip pool pool1 //创建地址池用来为客户端分配地址 network 192.168.10.10 mask 255.255.255.0 gateway-list 192.168.10.1 #
aaa //在AAA下配置认证方案和创建用于认证的账号 authentication-scheme system_a domain system
authentication-scheme system_a
local-user user1@system password cipher huawei local-user user1@system service-type ppp #
interface Virtual-Template1 //配置认证虚模板 ppp authentication-mode chap domain system remote address pool pool1
ip address 192.168.10.10 255.255.255.0 #
interface g0/0/0 //接口上开启PPPOE服务器的功能 pppoe-server bind Virtual-Template 1 #
interface LoopBack100 //模拟公网的地址 ip address 100.100.100.100 255.255.255.0 PPPoE客户端的配置 #
sysname PPPoE-Client #
dialer-rule //配置拨号规则,IP流量触发PPP拨号 dialer-rule 1 ip permit #
interface Dialer0 //配置拨号接口 0 link-protocol ppp //协议是PPP
ppp chap user user1@system //配置被认证方的chap账号 ppp chap password simple huawei //配置chap密码
mtu 1492 //修改MTU为1500-8=1492 ,1500是以太网最大传输单元,8是PPP头部长度
ip address ppp-negotiate //配置IP地址采用PPP协商方式获取,即通过服务器的地址池分配
dialer user user1@system //配置拨号用户,这个是非按需拨号时要配置 dialer bundle 1 //配置拨号捆绑的编号 1,1要和下面接口的的配置对应 #
interface g0/0/0
pppoe-client dial-bundle-number 1 #
ip route-static 0.0.0.0 0.0.0.0 Dialer0 //配置用于上网的默认路由,注意出口是拨号接口Dialer0,不用也没法指定下一跳IP return
如果路由器下面还有PC要上网,还要配置NAT acl 3000 rule permit ip inter dialer 0
nat outbound 3000
在客户端测试PPPoE的配置
[PPPoE-Client]dis ip inter bri
Interface IP Address/Mask Physical Protocol Dialer0 192.168.10.254/32 up up(s)
GigabitEthernet0/0/0 unassigned up down GigabitEthernet0/0/1 unassigned down down NULL0 unassigned up up(s)
[PPPoE-Client]ping 100.100.100.100
PING 100.100.100.100: 56 data bytes, press CTRL_C to break
Reply from 100.100.100.100: bytes=56 Sequence=1 ttl=255 time=100 ms Reply from 100.100.100.100: bytes=56 Sequence=2 ttl=255 time=10 ms Reply from 100.100.100.100: bytes=56 Sequence=3 ttl=255 time=10 ms Reply from 100.100.100.100: bytes=56 Sequence=4 ttl=255 time=10 ms Reply from 100.100.100.100: bytes=56 Sequence=5 ttl=255 time=10 ms --- 100.100.100.100 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss
round-trip min/avg/max = 10/28/100 ms
[PPPoE-Client]dis pppoe-client session summary PPPoE Client Session:
ID Bundle Dialer Intf Client-MAC Server-MAC State 1 1 0 GE0/0/0 00e0fc03c38b 00e0fc033c76 UP
在服务器上测试PPPoE的配置
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------ Routing Tables: Public
Destinations : 11 Routes : 11
Destination/Mask Proto Pre Cost Flags NextHop Interface 100.100.100.0/24 Direct 0 0 D 100.100.100.100 LoopBack100 100.100.100.100/32 Direct 0 0 D 127.0.0.1 LoopBack100 100.100.100.255/32 Direct 0 0 D 127.0.0.1 LoopBack100 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.10.0/24 Direct 0 0 D 192.168.10.10 Virtual-Template1 192.168.10.10/32 Direct 0 0 D 127.0.0.1 Virtual-Template1
192.168.10.254/32 Direct 0 0 D 192.168.10.254 Virtual-Template1 192.168.10.255/32 Direct 0 0 D 127.0.0.1 Virtual-Template1 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
1 Virtual-Template1:0 UP GE0/0/0 00e0.fc03.c38b 00e0.fc03.3c76
------------------------------------------------------------------------------ UserID Username IP address MAC
------------------------------------------------------------------------------ 145 user1@system - 00e0-fc03-c38b
------------------------------------------------------------------------------
Total 1,1 printed
正在阅读:
eNSP2.0模拟PPPoE实验01-24
2018-2019-关于某某同志的综合考察材料-精选word文档(2页)03-14
第六章 审计计划、重要性和审计风险05-19
油库设计与管理复习思考题与习题(附答案)11-17
票据解释 - 图文11-19
刘新路在全国“三品一标”工作会议上的讲话04-01
社会调查报告幼儿教师社会地位调查07-07
13章 内能 单元测试题02-27
教师如何在美术活动中支持学生自主学习06-10
小学一年级数学期中试卷分析02-06
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 模拟
- 实验
- PPPoE
- eNSP
- 2.0
- 小学卫生室工作总结
- 二元一次方程组集体备课
- google hacking高级搜索方法
- 2016.4全国新教育实验海门开放周暨推进每月一事研讨会学习心得
- 人教版小学音乐一年级上册《两只小象》听课评课记录
- 国际金融知识点
- 大型峰会论坛全程策划案(经典全案)
- 2018-2024年中国输尿管支架管市场全景调查与发展前景预测报告(目录) - 图文
- 20、要是你在野外迷了路教案第二课时
- 地铁考试题库(一)
- 学习会议精神主持词
- 小学五年级环境教育全册教案
- 小学美术冀美版四年级上册第5课《我和动物交朋友》比赛获奖教案优质课公开课优秀教案
- 财务人员测试题答案
- 带地下室高层建筑嵌固端的选择与分析
- 减轻学生课业负担的自查报告
- 拟南芥成花时间调控
- 财 政 学
- 湖北2012年自考《现代自然地理学》课程考试大纲
- 家庭教育指导案例