首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >linux搭建pppoe(只做认证不转发)

linux搭建pppoe(只做认证不转发)

作者头像
软件测试大叔
发布2026-04-22 13:41:31
发布2026-04-22 13:41:31
570
举报

CentOS下安装命令

yum install rp-pppoe

安装完成后

cd /etc/ppp

vi pppoe-server-options

里面内容大概可以看明白

# PPP options for the PPPoE server # LIC: GPL require-pap require-chap login lcp-echo-interval 10 lcp-echo-failure 2 logfile /var/log/pppoe.log

接着创建用户

vi chap-secrets

# Secrets for authentication using CHAP # client        server  secret                  IP addresses ####### redhat-config-network will overwrite this part!!! (begin) ########## ####### redhat-config-network will overwrite this part!!! (end) ############ testuser * "testpwd" *

上面testuser/testpwd 就是我创建的用户和密码

启动pppoe

pppoe-server -I eth0 -L 10.10.10.1 -R 10.10.10.100-200

-I eth0  在eth0端口上检测pppoe discover包

-L 10.10.10.1    虚拟网关的意思,就是pppoe服务器端虚拟网关ip

-R 10.10.10.100-200  分配虚拟IP,分别是10.10.10.100到10.10.10.200

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2026-04-22,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档