pppoe: socket: Address family not supported by protocol --------------怎么回事?

gudulyn 2006-03-23 02:29:53
在arm2410上安装ppp pppoe,pc机实验通过了。可是在开发板上不好用,执行pppoe-sniff,出错:
pppoe: socket: Address family not supported by protocol
内核编译支持了dhcp ppp pppoe ipv6,请大家指教。
...全文
770 点赞 收藏 3
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
gudulyn 2006-03-25
都编译进去了。是IPV6没有设置好的缘故,现在已经没有这个问题了。可是:运行pppoe-start连接超时。
运行DEBUG=1 pppoe-start
调试结果如下:
---------------------------------------------
* The following section contains information about your system
Sat Dec 2 12:03:01 UTC 2028
Output of uname -a
Linux fa 2.4.18-rmk7-pxa1 #41 五 3月 24 12:31:54 CST 2006 armv4l unknown
---------------------------------------------
* The following section contains information about your network
* interfaces. The one you chose for PPPoE should contain the words:
* 'UP' and 'RUNNING'. If it does not, you probably have an Ethernet
* driver problem.
Output of ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:00:C0:FF:EE:08
inet addr:172.29.26.56 Bcast:172.29.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:209 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:18431 (17.9 kiB) TX bytes:0 (0.0 iB)
Interrupt:37 Base address:0x300

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB)

sit0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB)

---------------------------------------------
* The following section contains information about kernel modules
* If the module for your Ethernet card is 'tulip', you might
* want to look for an updated version at http://www.scyld.com
Output of lsmod
Module Size Used by Not tainted
usbkbd 2708 0 (unused)
usbmouse 1636 0 (unused)
evdev 3356 0 (unused)
mousedev 4276 0 (unused)
keybdev 1716 0 (unused)
input 3536 0 [usbkbd usbmouse evdev mousedev keybdev]
---------------------------------------------
* The following section lists your routing table.
* If you have an entry which starts with '0.0.0.0', you probably
* have defined a default route and gateway, and pppd will
* not create a default route using your ISP. Try getting
* rid of this route.
Output of netstat -n -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.29.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0
---------------------------------------------
Contents of /etc/resolv.conf
* The following section lists DNS setup.
* If you can browse by IP address, but not name, suspect
* a DNS problem.
nameserver 202.102.152.3
nameserver 202.102.154.3
search localdomain
---------------------------------------------
* The following section lists /etc/ppp/options.
* You should have NOTHING in that file.
Contents of /etc/ppp/options
lock
---------------------------------------------
* The following section identifies your Ethernet interface
* and user name. Some ISP's need 'username'; others
* need 'username@isp.com'. Try both
ETH=eth0; USER=wh1316653@e
---------------------------------------------
* The following section shows the pppd command we will invoke
pppd invocation
/usr/local/sbin/pppd pty '/usr/sbin/pppoe -p /var/run/pppoe.conf-pppoe.pid.pppoe -I eth0 -T 80 -U -m 1412 ' noipdefault noauth default-asyncmap defaultroute hide-password nodetach usepeerdns mtu 1492 mru 1492 noaccomp nodeflate nopcomp novj novjccomp user wh1316653@e lcp-echo-interval 20 lcp-echo-failure 3 debug
---------------------------------------------
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/pts/0
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
sent [LCP ConfReq id=0x1 <mru 1492> <magic 0xa91e5709>]
LCP: timeout sending Config-Requests
Connection terminated.
Waiting for 1 child processes...
script /usr/sbin/pppoe -p /var/run/pppoe.conf-pppoe.pid.pppoe -I eth0 -T 80 -U -m 1412 -D /tmp/pppoe-debug-48/pppoe-debug.txt-0, pid 153
pppoe: Timeout waiting for PADO packets
Script /usr/sbin/pppoe -p /var/run/pppoe.conf-pppoe.pid.pppoe -I eth0 -T 80 -U -m 1412 -D /tmp/pppoe-debug-48/pppoe-debug.txt-0 finished (pid 153), status = 0x100
---------------------------------------------
* The following section is an extract from your log.
* Look for error messages from pppd, such as
* a lack of kernel support for PPP, authentication failure
* etc.
Can't find messages file (looked for /var/{log,adm}/messages
Sat Dec 2 12:04:00 UTC 2028
---------------------------------------------
* The following section is a dump of the packets
* sent and received by rp-pppoe. If you don't see
* any output, it's an Ethernet driver problem. If you only
* see three PADI packets and nothing else, check your cables
* and modem. Make sure the modem lights flash when you try
* to connect. Check that your Ethernet card is in
* half-duplex, 10Mb/s mode. If all else fails,
* try using pppoe-sniff.
rp-pppoe debugging dump
rp-pppoe-3.7
12:03:04.351 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:00:c0:ff:ee:08 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 9a 00 00 00 ............

12:03:09.350 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:00:c0:ff:ee:08 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 9a 00 00 00 ............

12:03:19.350 SENT PPPoE Discovery (8863) PADI sess-id 0 length 12
SourceAddr 00:00:c0:ff:ee:08 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 01 03 00 04 9a 00 00 00 ............



不知道是怎么回事?
/目录下显示有ppp0连接指向/dev/ttyp0,根据PC ttyp0的属性建立设备:
mknod /dev/ttyp0 c 3 0
还是不行。
请高手执教----------------------------
回复
superdreamer 2006-03-25
内核应该将PPPOE SUPPORT编译进去
回复
gudulyn 2006-03-24
自己顶
回复
相关推荐
发帖
Linux_Kernel
创建于2007-08-27

4153

社区成员

Linux/Unix社区 内核源代码研究区
申请成为版主
帖子事件
创建了帖子
2006-03-23 02:29
社区公告
暂无公告