免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2971 | 回复: 5
打印 上一主题 下一主题

[OpenBSD] OB4.9 pppoe 拔号不成功。 [复制链接]

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-03-01 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-10-20 22:03 |只看该作者 |倒序浏览
ppp.conf:
  1. pppoe:
  2. set device "!/usr/sbin/pppoe -i em0"
  3. set mtu max 1492
  4. set mru max 1492
  5. set speed sync
  6. disable acfcomp protocomp
  7. deny acfcomp
  8.   set authname hxy
  9. set authkey hxy
  10. set login
  11. set timeout 120
  12. enable dns
复制代码
# ppp pppoe
  1. ppp ON mywork> dial
  2. ppp ON mywork> Warning: deflink: Reducing configured MRU from 1500 to 1492
  3. Ppp ON mywork>
  4. PPp ON mywork> Warning: ff01:6::/32: Change route failed: errno: Network is unreachable
  5. Warning: ff02:6::/32: Change route failed: errno: Network is unreachable
  6. Warning: ff02:6::/32: Change route failed: errno: Network is unreachable
  7. Warning: iface add: ioctl(SIOCAIFADDR, 10.0.0.24 -> 192.168.0.1): File exists
  8. Error: ipcp_InterfaceUp: unable to set ip address
  9. Warning: ff01:6::/32: Change route failed: errno: Network is unreachable
  10. Warning: ff02:6::/32: Change route failed: errno: Network is unreachable
  11. Warning: ff02:6::/32: Change route failed: errno: Network is unreachable
复制代码

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
2 [报告]
发表于 2011-10-21 08:21 |只看该作者
为啥不用OpenBSD内核级的ppp来拨号?

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
3 [报告]
发表于 2011-10-21 08:23 |只看该作者
/etc/hostname.pppoe0

  1. inet 0.0.0.0 255.255.255.255 NONE \
  2.         pppoedev rl0 authproto pap \
  3.         authname 'gzDSLxxxx@163.gd' authkey 'PASSWORD' up
  4. dest 0.0.0.1
  5. !/sbin/route add default 0.0.0.1
复制代码

论坛徽章:
0
4 [报告]
发表于 2011-10-21 09:34 |只看该作者
pppoe:  下面的要空格

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-03-01 06:20:00
5 [报告]
发表于 2011-10-21 21:10 |只看该作者
感谢楼上各位帮助!

终于搞定了,原来不想花时间看man,今天没事看看了,终于搞定了.
1、/etc/hostname.xxx中的内容为:
  up
2、/etc/ppp/ppp.conf中内容为:
default:
set log Phase Chat LCP IPCP CCP tun command

# A PPPoE (PPP over Ethernet) setup may look like this:
#
pppoe:
set device "!/usr/sbin/pppoe -i em0"
set mtu max 1492
set mru max 1492
set speed sync
disable acfcomp protocomp
deny acfcomp
set authname "hxy"
set authkey "hxy"
disable ipv6
add default HISADDR   //要有这行,添加到路由表中。

论坛徽章:
1
技术图书徽章
日期:2014-04-16 11:36:47
6 [报告]
发表于 2011-10-24 10:03 |只看该作者
1.原来man pppoe 全都有了。(PPP来拨号)

2. man 4 pppoe (内核ppp)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP