|
我的内置adsl猫以前装FreeBSD时根本看不到网卡,但装了freebsd5.1后出现下面的东西:
#ifconfig
lp0: flags=8810< OINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
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
-----------------------------------------------------------------------------------
#ls /dev/net
lo0
lp0
这个lp0是不是认出的网卡?可是它没有mac地址,也无法指定mac地址,我在windows下看在没有拨号时也没有mac地址,但当拨上号连上网后就有了:00-53-45-00-00-00.以下是我拨号的情况:
======/etc/ppp.conf======
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
adsl:
set device PPPoE:lp0
set authname xxxxxxxxx
set authkey xxxxxxxxxxx
set dial
set login
add default HISADDR
enable dns
#ppp -background adsl
Working in background mode
Using interface: tun0
Attempting redial
Child failed (errdead)
拨号后用ifconfig以及在/etc/net下都可看到tun0这一设备.
======/var/log/ppp.log=====
Sep 10 22:49:17 Y ppp[2872]: Phase: Using interface: tun0
Sep 10 22:49:17 Y ppp[2872]: Phase: deflink: Created in closed state
Sep 10 22:49:17 Y ppp[2872]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0
Sep 10 22:49:17 Y ppp[2872]: tun0: Command: adsl: set device PPPoE:lp0
Sep 10 22:49:17 Y ppp[2872]: tun0: Command: adsl: set authname xxxxxxxxxx
Sep 10 22:49:17 Y ppp[2872]: tun0: Command: adsl: set authkey ********
Sep 10 22:49:17 Y ppp[2872]: tun0: Command: adsl: set dial
Sep 10 22:49:17 Y ppp[2872]: tun0: Command: adsl: set login
Sep 10 22:49:17 Y ppp[2872]: tun0: Command: adsl: add default HISADDR
Sep 10 22:49:17 Y ppp[2872]: tun0: Command: adsl: enable dns
Sep 10 22:49:17 Y ppp[2873]: tun0: Phase: PPP Started (background mode).
Sep 10 22:49:17 Y ppp[2873]: tun0: Phase: bundle: Establish
Sep 10 22:49:17 Y ppp[2873]: tun0: Phase: deflink: closed -> opening
Sep 10 22:49:17 Y ppp[2873]: tun0: Warning: lp0: Cannot send a netgraph message: No such file or directory
Sep 10 22:49:17 Y ppp[2873]: tun0: Phase: deflink: opening -> closed
Sep 10 22:49:17 Y ppp[2873]: tun0: Phase: bundle: Dead
Sep 10 22:49:17 Y ppp[2873]: tun0: Phase: PPP Terminated (normal).
Sep 10 22:49:17 Y ppp[2872]: tun0: Phase: Parent: Child failed (errdead)
我还没自己将"options NETGRAPH"加入内核,因为草草看了一下NOTES和GENERIC都没有这个选项,呆会我会再试.已经弄了两天了,实在是水平不够,想不出什么办法了,各位帮帮忙想象办法,谢谢! |
|