华为PPPOE配置实验

华为PPPOE配置实验

网络拓扑图

拓扑说明

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

电信ISP设备配置

javascript 复制代码
<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

用户拨号路由器配置

javascript 复制代码
dialer-rule
 dialer-rule 1 ip permit
interface Dialer1
 link-protocol ppp
 ppp chap user huawei
 ppp 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-negotiate
 dialer user HUAWEI
 dialer bundle 1
 dialer-group 1
 nat outbound 3000
acl number 3000  
 rule 100 permit ip 
interface GigabitEthernet0/0/0
 pppoe-client dial-bundle-number 1 

查看是否拨上号

javascript 复制代码
[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.1
  PING 100.64.254.1: 56  data bytes, press CTRL_C to break
    Reply from 100.64.254.1: bytes=56 Sequence=1 ttl=255 time=80 ms
    Reply from 100.64.254.1: bytes=56 Sequence=2 ttl=255 time=50 ms
    Reply from 100.64.254.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 100.64.254.1: bytes=56 Sequence=4 ttl=255 time=30 ms

  --- 100.64.254.1 ping statistics ---
    4 packet(s) transmitted
    4 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/45/80 ms    
    
[jiucai]display dialer interface Dialer 1
Dial Interface:Dialer1

   Dialer Timers(Secs):
   Auto-dial:300    Compete:20    Enable:5
   Idle: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:00
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec
    Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
    Input: 0 bytes
    Output:0 bytes
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
Bound to Dialer1:0:
Dialer1:0 current state : UP ,
Line protocol current state : UP

Link layer protocol is PPP
LCP opened, IPCP opened
Packets statistics:
  Input packets:0,  0 bytes
  Output packets:4, 336 bytes
  FCS error packets:0
  Address error packets:0
  Control field control error packets:0

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

相关推荐
轻口味6 分钟前
【每日学点鸿蒙知识】AVCodec、SmartPerf工具、web组件加载、监听键盘的显示隐藏、Asset Store Kit
前端·华为·harmonyos
无处安放的波澜8 分钟前
【HarmonyOS 5.0】第十二篇-ArkUI公共属性(一)
华为·harmonyos·arkts·鸿蒙·鸿蒙系统
ProcessOn官方账号31 分钟前
如何绘制网络拓扑图?附详细分类解说和用户案例!
网络·职场和发展·流程图·拓扑学
李洋-蛟龙腾飞公司34 分钟前
HarmonyOS Next 应用元服务开发-分布式数据对象迁移数据文件资产迁移
分布式·华为·harmonyos
Ven%1 小时前
如何在防火墙上指定ip访问服务器上任何端口呢
linux·服务器·网络·深度学习·tcp/ip
大土豆的bug记录1 小时前
鸿蒙历史搜索功能:tag标签根据文字宽度自动换行 展示更多
华为·harmonyos
轻口味1 小时前
【每日学点鸿蒙知识】Charles抓包、lock文件处理、WebView组件、NFC相关、CallMethod失败等
华为·harmonyos
神的孩子都在歌唱1 小时前
TCP/IP 模型中,网络层对 IP 地址的分配与路由选择
网络·tcp/ip·智能路由器
阿雄不会写代码2 小时前
ubuntu安装nginx
linux·服务器·网络
starstarzz2 小时前
计算机网络实验四:Cisco交换机配置VLAN
网络·计算机网络·智能路由器·vlan·虚拟局域网