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

广域网学习

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
http://www.xdnf.cn/news/7035.html

相关文章:

  • 数据结构与算法——栈和队列
  • Python字符串格式化(一):三种经典格式化方法
  • 从零开始实现大语言模型(十六):加载开源大语言模型参数
  • 《Python星球日记》 第87天:什么是大语言模型 LLM?
  • 1_Spring 【IOC容器的创建】
  • 深入了解linux系统—— 基础IO(下)
  • 【QGIS二次开发】地图编辑-08
  • tauri2项目使用sidcar嵌入可执行文件并使用命令行调用
  • 实战设计模式之状态模式
  • 互联网大厂Java面试场景:从Spring Boot到分布式缓存技术的探讨
  • 十一、STM32入门学习之FREERTOS移植
  • React 19 中的useRef得到了进一步加强。
  • ngx_http_proxy_protocol_vendor_module 模块
  • 【Linux】进程的基本概念
  • 虚幻引擎5-Unreal Engine笔记之Pawn与胶囊体的关系
  • 【android bluetooth 协议分析 01】【HCI 层介绍 5】【SetEventMask命令介绍】
  • Elasticsearch 初步认识
  • 用 UniApp 构建习惯打卡 App —— HabitLoop 开发记
  • 【cursor】有效解决
  • Denoising Score Matching with Langevin Dynamics
  • 【HarmonyOS 5开发入门】DevEco Studio安装配置完全指南
  • Flink 的窗口机制
  • 【ant design】ant-design-vue 4.0实现主题色切换
  • 【软考 McCabe度量法】
  • 深入理解指针(6)
  • 基因编辑根治胰腺癌-陈墨仙
  • Raft 协议:分布式一致性算法的核心思想
  • 欢乐熊大话蓝牙知识4:GATT 协议全解:蓝牙传数据到底怎么传?
  • 费马小定理
  • 数学复习笔记 16