- 论坛徽章:
- 0
|
首先声明,我已经在FB4.6下成功配置过ADSL,现在用的是4.10,在vm虚拟机下,已经研究很长时间了,均未成功。
/etc/ppp/ppp.conf文件参考FB handbook:
default:
set log Phase tun command # you can add more detailed logging if you wish
set ifaddr 10.0.0.1/0 10.0.0.2/0
adsl:
set device PPPoE:lnc0
set authname YOURLOGINNAME
set authkey YOURPASSWORD
set dial
set login
add default HISADDR
==============================================
/usr/sbin/ppp adsl 输入的调试信息如下:
Jul 15 20:47:33 upon ppp[140]: Phase: Using interface: tun0
Jul 15 20:47:33 upon ppp[140]: Phase: deflink: Created in closed state
Jul 15 20:47:33 upon ppp[140]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0
Jul 15 20:47:33 upon ppp[140]: tun0: Command: adsl: set device PPPoE:lnc0
Jul 15 20:47:33 upon ppp[140]: tun0: Command: adsl: set authname *******
Jul 15 20:47:33 upon ppp[140]: tun0: Command: adsl: set authkey ********
Jul 15 20:47:33 upon ppp[140]: tun0: Command: adsl: set dial
Jul 15 20:47:33 upon ppp[140]: tun0: Command: adsl: set login
Jul 15 20:47:33 upon ppp[140]: tun0: Command: adsl: add default HISADDR
Jul 15 20:47:33 upon ppp[140]: tun0: Phase: PPP Started (interactive mode).
Jul 15 20:47:34 upon ppp[140]: tun0: Command: /dev/tty: dial
Jul 15 20:47:34 upon ppp[140]: tun0: Phase: bundle: Establish
Jul 15 20:47:34 upon ppp[140]: tun0: Phase: deflink: closed ->; opening
Jul 15 20:47:34 upon ppp[140]: tun0: Phase: deflink: Connected!
Jul 15 20:47:34 upon ppp[140]: tun0: Phase: deflink: opening ->; dial
Jul 15 20:47:34 upon ppp[140]: tun0: Phase: deflink: dial ->; carrier
Jul 15 20:47:39 upon ppp[140]: tun0: Phase: deflink: Disconnected!
Jul 15 20:47:39 upon ppp[140]: tun0: Phase: deflink: carrier ->; hangup
Jul 15 20:47:39 upon ppp[140]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 15 20:47:39 upon ppp[140]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 15 20:47:39 upon ppp[140]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Thu Jul 15 20:47:34 2004
Jul 15 20:47:39 upon ppp[140]: tun0: Phase: deflink: hangup ->; closed
Jul 15 20:47:39 upon ppp[140]: tun0: Phase: bundle: Dead
===============================================
/etc/rc.conf中已经注销了defaultrouter。
ifconfig输出信息如下:
# ifconfig
lnc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>; mtu 1500
inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::20c:29ff:febd:370e%lnc0 prefixlen 64 scopeid 0x1
ether 00:0c:29:bd:37:0e
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST>; mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010< OINTOPOINT,MULTICAST>; mtu 1500
sl0: flags=c010< OINTOPOINT,LINK2,MULTICAST>; mtu 552
faith0: flags=8002<BROADCAST,MULTICAST>; mtu 1500
tun0: flags=8050< OINTOPOINT,RUNNING,MULTICAST>; mtu 1500
Opened by PID 171
==============================================
tun0根本就没有得到动态IP地址.
附:如果在/etc/rc.conf中加入defaultrouter,再在主系统中设置ADSL连接共享,就可以上网了。但此种上网方式相当于把FB置于内网,希网的动态域名解析软件无法正常运行。所以,一直在寻找直接ADSL拨号的方法。望各位高手不吝赐教。谢谢。 |
|