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

广域网学习

PPPoE技术(拨号上网)

PPPoE PPP over Ethernet ,以太网承载 PPP 协议)是一种把 PPP 帧封装到以太网帧中的链路层协议。
PPPoE 可以使以太网网络中的多台主机连接到远端的宽带接入服务器。

 应用场景

PPPoE 组网结构采用 Client/Server 模型, PPPoE 的客户端为 PPPoE Client PPPoE 的服务器端为
PPPoE Server。
PPPoE Client PPPoE Server 发起连接请求, PPPoE Server PPPoE Client 提供接入控制、认证等功能。

 配置案例:

PPPoE Server 配置:
1 、完成 PPPoE 认证用户
[PPPoE Server]aaa
[PPPoE Server-aaa]local-user user1@system password cipher password@system
[PPPoE Server-aaa]local-user user1@system service-type ppp
2 、创建并配置 VT(Virtual-Template ,虚拟模版 )
[PPPoE Server]interface Virtual-Template 1
[PPPoE Server-Virtual-Template1]ppp authentication-mode chap      //配置Server方作为认证方,使用chap认证方式
[PPPoE Server-Virtual-Template1]ip address 12.0.0.2 32            //因为公网地址必须保证唯一性
[PPPoE Server-Virtual-Template1]remote address pool PPPoE_pool    //调用地址池,为Client分配地址
(不配该命令,如果是Server直连终端,则需要配置)
[PPPoE Server-Virtual-Template1]ppp ipcp dns 8.8.8.8
-------配置PPPoE Server为PPPoE Client指定DNS服务器地址
3 、配置地址池
[PPPoE Server]ip pool PPPoE_pool
[PPPoE Server-ip-pool-PPPoE_pool]network 12.0.0.0 mask 24
[PPPoE Server-ip-pool-PPPoE_pool]gateway-list 12.0.0.2
4 、在以太网接口启动 PPPoE Server 功能
[PPPoE Server]interface GigabitEthernet 0/0/0
[PPPoE Server-GigabitEthernet0/0/0]pppoe-server bind virtual-template 1 ---- 绑定
VT 接口与物理接口
PPPoE Client 配置
1 、配置 Dialer 接口 --- 拨号程序接口
[PPPoE Client]interface Dialer 1
[PPPoE Client-Dialer1]dialer user user1
----- 使能共享 DCC 功能和指定对端用户名,必须与对端配置的 PPP 用户名一致,该名称对端可不设置
[PPPoE Client-Dialer1]dialer bundle 1
----- 设定拨号程序捆绑包
[PPPoE Client-Dialer1]ppp chap user user1@system
[PPPoE Client-Dialer1]ppp chap password cipher password@system
---- 配置本地作为被认证方,以及账号密码信息
[PPPoE Client-Dialer1]ip address ppp-negotiate
----- 配置由对端分配 IP 地址
2 、建立 PPPoE 会话
[PPPoE Client]interface GigabitEthernet 0/0/0
[PPPoE Client-GigabitEthernet0/0/0]pppoe-client dial-bundle-number 1
------ 指定 PPPoE 会话所对应的 Dialer bundle
3 、配置 NAT ,使内部用户可以上网 --- 注意配置 NAT 时出接口是 PPPOE 创建的虚拟接口
[PPPoE Client]acl 2000
[PPPoE Client-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[PPPoE Client]interface Dialer 1
[PPPoE Client-Dialer1]nat outbound 2000
4 、配置到 PPPoE Server 的静态路由
[PPPoE Client]ip route-static 0.0.0.0 0 Dialer 1
[CLIENT]ip route-static 0.0.0.0 0 100.0.0.1

相关文章:

  • Flink 的水印机制
  • AI大模型学习二十六、使用 Dify + awesome-digital-human-live2d + ollama + ChatTTS打造数字人
  • nginx概念及使用
  • Python format()函数高级字符串格式化详解
  • 字节跳动开源通用图像定制模型DreamO,支持风格转换、换衣、身份定制、多条件组合等多种功能~
  • 测试--测试分类 (白盒 黑盒 单元 集成)
  • Git目录分析与第一个git commit文件
  • 最新最热门的特征提取方式:CVOCA光学高速复值卷积
  • Python打卡 DAY 29
  • 一文读懂软链接硬链接
  • Kubernetes控制平面组件:Kubelet详解(七):容器网络接口 CNI
  • PyQt5基本窗口控件(对话框类控件)
  • UCOS 嵌入式操作系统
  • 【深度学习】#12 计算机视觉
  • AutoGPT-Agent简述版
  • vscode中Debug c++
  • 【言语理解】逻辑填空之逻辑对应11
  • DB-MongoDB-00002--Workload Generator for MongoDB
  • 安装和升级到devExpress23.1.7
  • 工作流介绍
  • 四大皆空!赛季还没结束,曼城已经吃上“散伙饭”了
  • 当“小铁人”遇上青浦,看00后如何玩转长三角铁三
  • 巴菲特最新调仓:一季度大幅抛售银行股,再现保密仓位
  • 涉案资金超2亿元 “健康投资”骗局,专挑老年人下手
  • 年在沪纳税350亿人民币,这些全球头部企业表示“对上海承诺不会变”
  • 严打金融黑灰产,今年来上海警方破获各类经济犯罪案件690余起