Contents
实战:配置路由器为PPPoe服务器
1.拓扑图

2.配置R1
<Huawei>sys
[Huawei]sysname R1
[R1]interfa
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 13.2.1.1 24
[R1-GigabitEthernet0/0/1]quit
[R1]ip route-static 0.0.0.0 0 13.2.1.2
3.配置R2
<Huawei>sys
[Huawei]sysname R2
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ip address 13.2.1.2 24
[R2-GigabitEthernet0/0/0]quit
[R2]interface vlanif 1
[R2-Vlanif1]ip address 24.2.1.1 24
[R2]ip route-static 192.168.10.0 24 13.2.1.1
4.配置PC

5.配置PPPOE
5.1.配置PPPOE地址池
<R1>sys
[R1]aaa
[R1-aaa]local-user han password cipher 91xueit.com
[R1-aaa]local-user han service-type ppp
[R1-aaa]quit
[R1]ip pool pppoe1
[R1-ip-pool-pppoe1]network 192.168.10.0 mask 24
[R1-ip-pool-pppoe1]quit
5.2.创建虚拟接口模块
[R1]interface Virtual-Template ?
<0-1023> Virtual template interface number
[R1]interface Virtual-Template 1
[R1-Virtual-Template1]remote address pool pppoe1
[R1-Virtual-Template1]ip address 192.168.10.100 24
[R1-Virtual-Template1]ppp ipcp dns 8.8.8.8 114.114.114.114
[R1-Virtual-Template1]quit
5.3.物理接口绑定PPPOE服务器
<R1>sys
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]pppoe-server bind virtual-template 1
6.配置WIN11拨号






点击连接-》跳过
再次点击连接,显示已连接

6.1.测试连通性


7.抓包分析



