+ -
当前位置:首页 → 问答吧 → 我的freebsd4.11不能上网,帮帮忙。

我的freebsd4.11不能上网,帮帮忙。

时间:2005-05-23

来源:互联网

PPP.conf:
内容

#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by [email protected]
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp
#
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
# Ensure that "device" references the correct serial port
# for your modem. (cuaa0 = COM1, cuaa1 = COM2)
#
set device /dev/cuaa1
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
adsl:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
set phone 电话号码
set authname 用户名
set authkey 密码
set timeout 300
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route

ppp.linkup:
内容

adsl:
delete ALL
add 0 0 HISADDR
!bg sendmail -bd -q30m

拨号情况
# ppp
Working in interactive mode
Using interface: tun0
ppp ON localhost> dial adsl
ppp ON localhost> Warning: Chat script failed
ppp ON localhost>

# ifconfig
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:e0:4c:eb:5e:4d
media: Ethernet autoselect (10baseT/UTP)
status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
#


是那里出错了,讲详细点,好吗?

作者: datou1301   发布时间: 2005-05-23

http://journal.cnfug.org/issue16/000091.html

作者: syyuning   发布时间: 2005-05-23

我看过那篇文章,也用了哪配置文件。我的网卡是主板集成RTL8139应该是r10吧,也没成功。
系统的/dev目录下也有tun0 ...tun4四个文件,我上面的配置错在那里?真的没有解决的方法了吗?

作者: datou1301   发布时间: 2005-05-24

把RL0写成R10,一字之差啊。
本来很简单的事情搞了好几天。

作者: datou1301   发布时间: 2005-05-24