当前位置: 首页 > news >正文

华为PPPOE配置实验

华为PPPOE配置实验

  • 网络拓扑图
    • 拓扑说明
    • 电信ISP设备配置
    • 用户拨号路由器配置
    • 查看是否拨上号
    • 是否看不懂? 看不懂就对了,只是记录一下命令。至于所有原理,等想写了再写

网络拓扑图

在这里插入图片描述

拓扑说明

用户路由器用于模拟家用拨号路由器,该设备为pppoe的客户端
电信ISP设备则模拟电信的网络设备,该设备为pppoe的服务端
而中间交换机则用于模拟光猫;光猫为桥接模式,此处不做任何配置,当场傻瓜式设备使用

电信ISP设备配置

<Huawei>system-view 		# 进入系统视图
[Huawei]sysname ISP			# 配置路由器名字
[ISP]aaa
[ISP-aaa]local-user huawei password cipher huawei
[ISP-aaa]local-user huawei service-type ppp
[ISP-aaa]quit
[ISP]ip pool pppoe
[ISP-ip-pool-pppoe]network 100.64.254.0 mask 24
[ISP-ip-pool-pppoe]gateway-list 100.64.254.1
[ISP-ip-pool-pppoe]dns-list 114.114.114.114 223.5.5.5
[ISP-ip-pool-pppoe]quit
[ISP]interface Virtual-Template 1
[ISP-Virtual-Template1]ip address 100.64.254.1 24
[ISP-Virtual-Template1]remote address pool pppoe
[ISP-Virtual-Template1]ppp authentication-mode chap
[ISP]interface GigabitEthernet 0/0/0
[ISP-GigabitEthernet0/0/0]pppoe-server bind virtual-template 1

用户拨号路由器配置

dialer-ruledialer-rule 1 ip permit
interface Dialer1link-protocol pppppp chap user huaweippp chap password cipher %$%$gu>xPdzPz>"FWUHp:EdW,"%o%$%$ppp pap local-user huawei password cipher %$%$0VL)HZ/u8~H>]sNN#yiY,"K\%$%$ip address ppp-negotiatedialer user HUAWEIdialer bundle 1dialer-group 1nat outbound 3000
acl number 3000  rule 100 permit ip 
interface GigabitEthernet0/0/0pppoe-client dial-bundle-number 1 

查看是否拨上号

[jiucai]display ip interface brief  
Interface                         IP Address/Mask      Physical   Protocol  
Dialer1                           100.64.254.254/32    up         up(s)     
GigabitEthernet0/0/0              unassigned           up         down      [jiucai]ping 100.64.254.1PING 100.64.254.1: 56  data bytes, press CTRL_C to breakReply from 100.64.254.1: bytes=56 Sequence=1 ttl=255 time=80 msReply from 100.64.254.1: bytes=56 Sequence=2 ttl=255 time=50 msReply from 100.64.254.1: bytes=56 Sequence=3 ttl=255 time=20 msReply from 100.64.254.1: bytes=56 Sequence=4 ttl=255 time=30 ms--- 100.64.254.1 ping statistics ---4 packet(s) transmitted4 packet(s) received0.00% packet lossround-trip min/avg/max = 20/45/80 ms    [jiucai]display dialer interface Dialer 1
Dial Interface:Dialer1Dialer Timers(Secs):Auto-dial:300    Compete:20    Enable:5Idle:120    Wait-for-Carrier:60[jiucai]display interface Dialer 1
Dialer1 current state : UP
Line protocol current state : UP (spoofing)
Description:HUAWEI, AR Series, Dialer1 Interface
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is negotiated, 100.64.254.254/32
Link layer protocol is PPP
LCP initial
Physical is Dialer
Current system time: 2023-08-18 14:48:11-08:00Last 300 seconds input rate 0 bits/sec, 0 packets/secLast 300 seconds output rate 0 bits/sec, 0 packets/secRealtime 0 seconds input rate 0 bits/sec, 0 packets/secRealtime 0 seconds output rate 0 bits/sec, 0 packets/secInput: 0 bytesOutput:0 bytesInput bandwidth utilization  :    0%Output bandwidth utilization :    0%
Bound to Dialer1:0:
Dialer1:0 current state : UP ,
Line protocol current state : UPLink layer protocol is PPP
LCP opened, IPCP opened
Packets statistics:Input packets:0,  0 bytesOutput packets:4, 336 bytesFCS error packets:0Address error packets:0Control field control error packets:0

是否看不懂? 看不懂就对了,只是记录一下命令。至于所有原理,等想写了再写

http://www.lryc.cn/news/135048.html

相关文章:

  • 1.jvm和java体系结构
  • h264 SPS 帧分辨率解析标准
  • 二、SQL注入之联合查询
  • Python爬虫入门 - 规则、框架和反爬策略解析
  • 【数据结构入门指南】二叉树
  • C++初阶——string(字符数组),跟C语言中的繁琐设计say goodbye
  • Android Bitmap详解(下)之图片缓存详解
  • 020-从零搭建微服务-认证中心(九)
  • 孤注一掷中的黑客技术
  • 机器学习笔记 - PyTorch Image Models图像模型概览 (timm)
  • Java 实现证件照底图替换,Java 实现照片头像底图替换
  • 周易卦爻解读笔记——未济
  • AI 绘画Stable Diffusion 研究(十三)SD数字人制作工具SadTlaker使用教程
  • 伦敦金走势图行情值得关注
  • 机器学习之数据清洗
  • T599聚合物电容器:在汽车应用中提供更长的使用寿命的解决方案
  • 学习ts(五)类
  • EasyImage简单图床 - 快速搭建私人图床云盘同时远程访问【无公网IP内网穿透】
  • 从SVG到Canvas:选择最适合你的Web图形技术
  • 基于 Redis 实现分布式限流
  • 前端下载文件方式(Blob)
  • 【STM32】FreeRTOS软件定时器学习
  • 【LeetCode】复写零
  • 使用docker-maven-plugin插件构建镜像并推送至私服Harbor
  • YOLO目标检测——动漫头像数据集下载分享
  • 学习Vue:Vue3 VS Vue2
  • 1.2亿成都市城市安全风险综合监测预警平台建设项目
  • 《树莓派4B家庭服务器搭建指南》第二十期:在树莓派运行rsnapshot, 实现对服务器数据低成本增量本地备份
  • 大数据 算法
  • html | 基于iframe的简易富文本编辑器