PPPoe拨号上网配置实验

317 阅读2分钟

Windows10拨号上网实验

image.png


网络规划说明

  1. 网络拓扑

    • Windows 10 主机作为PPPoE拨号客户端
    • RTA(ISP边缘设备):提供PPPoE服务器功能
    • RTB(ISP核心设备):通过环回接口(Loopback)模拟互联网公网服务
    • RTA与RTB间通过静态路由互联
  2. 认证方式

    • PPPoE拨号采用 CHAP认证(Challenge Handshake Authentication Protocol)

关键配置摘要

RTA(PPPoE服务器)配置

interface Virtual-Template1
 ppp chap password cipher $c$3$b5yrhyVACttZ5ZMxqo9xPXQmDU7AgZv34A==  // 配置密码
 ppp chap user user                  // 配置账户
 remote address pool vt1             // 配置地址池
 ip address 10.0.1.1 255.255.255.0   // 配置虚拟地址

ip pool vt1 10.0.1.10 10.0.1.200     // 配置地址池
ip pool vt1 gateway 10.0.1.1         // 配置网关

interface GigabitEthernet0/1
 pppoe-server bind virtual-template 1   // 绑定虚拟接口

ip route-static 8.8.8.8 32 10.0.0.2     // 配置静态路由

RTB(公网模拟设备)配置

interface LoopBack 0          // 模拟互联网服务
 ip address 8.8.8.8 255.255.255.255

interface GigabitEthernet0/1  // 连接RTA的接口
 ip address 10.0.0.2 255.255.255.0

ip route-static 10.0.1.0 24 10.0.0.1  // 回程路由指向RTA

Windows 10 客户端配置

  1. 创建PPPoE拨号连接
    • 控制面板 → 网络和共享中心 → 设置新的连接 → 连接到Internet → 宽带(PPPoE)
    • 输入ISP提供的用户名/密码,勾选“记住此密码”
    • 连接名称:ISP_PPPoE

image.png

image.png

image.png

image.png

image.png

image.png

image.png

  1. 手动添加默认路由
    # 删除原有默认路由(若存在)
    route delete 0.0.0.0
    
    # 添加指向PPPoE接口的默认路由
    route add 0.0.0.0 mask 0.0.0.0 10.0.1.1 metric 1
    

连通性验证

  1. Windows 10 拨号成功后获取地址(如 10.0.1.11
  2. 测试公网连通性:
    ping -S 10.0.1.11 8.8.8.8  // 应收到RTB环回地址响应
    

关键点说明

组件配置要点
认证方式CHAP协议(需用户名/密码)
路由设计RTA→RTB:静态默认路由
RTB→PPPoE网段:静态回程路由
客户端路由需手动添加0.0.0.0/0指向RTA

注意事项:Windows拨号成功后可能自动生成默认路由,若优先级低于其他接口(如以太网),需手动调整或删除冲突路由。

关于PPPoe连接后导致WIFI上网失败问题

image.png