机器环境:电脑一台,全硬盘安装的OpenBSD5.0,安装的目录列表如下:
-------------------------------------------------------------------------------------
[X] bsd [X] etc50.tgz [X] xbase50.tgz [X] xserv50.tgz
[X] bsd.rd [X] comp50.tgz [X] xetc50.tgz
[ ] bsd.mp [X] man50.tgz [X] xshare50.tgz
[X] base50.tgz [X] game50.tgz [X] xfont50.tgz
------------------------------------------------------------------------------------
求助各位大侠,openbsd5.0怎么设置才能用pppoe上网呢?要设置authname和authkey的那种。只要能使用下面的命令进入ftp就行了。
------------------------------------------------------------------------------------
#ftp ftp://ftp.openbsd.org
------------------------------------------------------------------------------------
我是菜鸟,请大侠不吝赐教!:)
openbsd5.0用pppoe上网
回复: openbsd5.0用pppoe上网
设置一下配置文件“/etc/ppp/ppp.conf”,然后在终端用ppp拨号,网上有很多教程。
我的设置:
我的设置:
代码: 全选
# A PPPoE (PPP over Ethernet) setup may look like this:
#
pppoe:
set device "!/usr/sbin/pppoe -i re0" #re0为网络设备名
set mtu max 1492
set mru max 1492
set speed sync
disable acfcomp protocomp
deny acfcomp
set crtscts off
enable lqr
set dial
set login
set authname 用户名
set authkey 密码
add! default HISADDR
enable dns
enable mssfixup
回复: openbsd5.0用pppoe上网
大侠求助,我的OpenBSD5.0还是不能上网, 我参考了网上很多文章, 可还是行不通, 现将具体配置贴出来, 请指点, 谢谢大侠!!!
________________________________________________________________
#ifconfig 回车
________________________________________________________________
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33196
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:09:ca:0b:30:17
priority: 0
groups: egress
media: Ethernet autoselect (10baseT full-duplex)
status: active
inet 10.8.32.192 netmask 0xffffff00 broadcast 10.8.32.255
inet6 fe80::209:caff:fe0b:3017%dc0 prefixlen 64 scopeid 0x1
enc0: flags=0<>
priority: 0
groups: enc
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33196
priority: 0
groups: pflog
________________________________________________________________
#cat /etc/mygate 回车
________________________________________________________________
10.8.32.193
________________________________________________________________
#cat /etc/myname 回车
________________________________________________________________
foo.obsd.com
________________________________________________________________
#cat /etc/ppp/ppp.conf 回车
________________________________________________________________
default:
set log Phase Chat LCP IPCP CCP tun command
pppoe:
set device "!/usr/sbin/pppoe -i dc0"
set mtu max 1492
set mru max 1492
set speed sync
disable acfcomp protocomp
deny acfcomp
set authname "用户名"
set authkey "密码"
add! default HISADDR
enable dns
enable mssfixup
_______________________________________________________________
#cat /etc/resolv.conf 回车
_______________________________________________________________
lookup file bind
nameserver 10.8.0.1
_______________________________________________________________
________________________________________________________________
#ifconfig 回车
________________________________________________________________
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33196
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:09:ca:0b:30:17
priority: 0
groups: egress
media: Ethernet autoselect (10baseT full-duplex)
status: active
inet 10.8.32.192 netmask 0xffffff00 broadcast 10.8.32.255
inet6 fe80::209:caff:fe0b:3017%dc0 prefixlen 64 scopeid 0x1
enc0: flags=0<>
priority: 0
groups: enc
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33196
priority: 0
groups: pflog
________________________________________________________________
#cat /etc/mygate 回车
________________________________________________________________
10.8.32.193
________________________________________________________________
#cat /etc/myname 回车
________________________________________________________________
foo.obsd.com
________________________________________________________________
#cat /etc/ppp/ppp.conf 回车
________________________________________________________________
default:
set log Phase Chat LCP IPCP CCP tun command
pppoe:
set device "!/usr/sbin/pppoe -i dc0"
set mtu max 1492
set mru max 1492
set speed sync
disable acfcomp protocomp
deny acfcomp
set authname "用户名"
set authkey "密码"
add! default HISADDR
enable dns
enable mssfixup
_______________________________________________________________
#cat /etc/resolv.conf 回车
_______________________________________________________________
lookup file bind
nameserver 10.8.0.1
_______________________________________________________________
在线用户
正浏览此版面之用户: 没有注册用户 和 1 访客