|

楼主 |
发表于 2007-12-19 13:47:21
|
显示全部楼层
Post by crquan;1797489
你需要检查一下你的内核有无point-to-point协议支持:
- │ Symbol: PPP [=n] │
- │ Prompt: PPP (point-to-point protocol) support │
- │ Defined at drivers/net/Kconfig:2801 │
- │ Depends on: NETDEVICES │
- │ Location: │
- │ -> Device Drivers │
- │ -> Network device support (NETDEVICES [=y]) │
- │ Selects: SLHC │
- │ Selected by: IPWIRELESS_CS && HOTPLUG && PCMCIA │
- │ │ < > PPP (point-to-point protocol) support │ │
复制代码
貌似这个P-t-P 和 pppoe 是一个东西吧 我都编译到kernel里面了
现在的疑问是 usb0 这样的设备是否真的能使用 P-t-P 协议?
我lsmod 时能看到 这三条
gl620a 2944 0
usbnet 11912 1 gl620a
usbcore 89352 7 gl620a,usbnet,sl811_hcd,ohci_hcd,uhci_hcd,ehci_hcd
是否表示 驱动真的没有问题?!
我台式机eth0 是 192.168.0.1 usb0是 192.168.0.2
本子上设置的 192.168.0.4 GW是 192.168.0.1
是这样配的 PointoPoint
ifconfig usb0 192.168.0.2 pointopoint 192.168.0.1 netmask 255.255.255.255
ifconfig 输出如下
- localhost ~ # ifconfig
- eth0 Link encap:Ethernet HWaddr 00:0A:EB:22:56:BE
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:30028 errors:0 dropped:0 overruns:0 frame:0
- TX packets:15683 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:16556429 (15.7 Mb) TX bytes:2021013 (1.9 Mb)
- Interrupt:11 Base address:0xc000
- 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 b) TX bytes:0 (0.0 b)
- ppp0 Link encap:Point-to-Point Protocol
- inet addr:121.69.226.184 P-t-P:121.69.226.1 Mask:255.255.255.255
- UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
- RX packets:15599 errors:0 dropped:0 overruns:0 frame:0
- TX packets:15249 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:3
- RX bytes:14376738 (13.7 Mb) TX bytes:1659404 (1.5 Mb)
- usb0 Link encap:Ethernet HWaddr 5A:8B:94:CF:8E:CF
- inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.255
- UP BROADCAST RUNNING MULTICAST MTU:1500 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:1000
- RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
复制代码
usb0 不能想ppp0 那样显示出 P-t-P:ipnum 使我停滞不前.........
这就是现在最大的问题
唉 郁闷 |
|