心想事成 发表于 2004-10-21 23:12:27

安装说明:本棋模块库文件较大,较多。所以在软盘上不能运行。只能在硬盘版本的coyote上运行 。1、把upnp.tgz考到硬盘的根目录下。2、编辑rc.local文件,在其中加入以下命令:

CODE
route add -net 239.0.0.0 netmask 255.0.0.0 eth0upnpd eth1 eth0
其中eth0为你的cl的内部网卡, eth1为外部网卡如果是使用pppoe 拨号,第二行命令应改为:

CODE
upnpd ppp0 eth0
注:本来还可以将此模块缩得更小,因为其lib目录和root.tgz的lib目录中的库有重复,我没有将其重复的部分删除。如果有什么问题,请在此贴反馈!

czw1240 发表于 2004-10-22 00:04:51

真的要试试!顶~~~~

liusimin 发表于 2004-10-22 00:07:25

不会吧?

心想事成 发表于 2004-10-22 00:13:42

骗你做什么?我要睡觉了。明天聊。

liusimin 发表于 2004-10-22 00:20:45

好的今天晚上继续我的研究 .......................................

czw1240 发表于 2004-10-22 00:52:54

http://www.gb.tomshardware.com/consumer/02...0904/index.html关于路由Upnp的介绍初学都不明就看这个不要再问

心想事成 发表于 2004-10-24 17:22:59

安装说明:

QUOTE
Simple Quick Install GuideThis install guide is simply a quick helper to let people start testing the newversion.It will be replaced soon with more thourough documentation.Install---------------This version of the linux-igd is written in C as opposed to previous version that were written in C++.This was done at the requests of many embedded developers, as well as some of our developers.The upnp sdk we now usefrom Intel is libupnp-1.2.1, and is written in C as well.Everything is a little more uniform now, and should create a smaller, leaner, faster device.Step 1 -- Download and install libupnp-1.2.1 source from http://www.sourceforge.net/projects/upnp .Please install with source only as we haven't tested against any precompiled versions.Also, as the "make install" doesn't quite work as expected, please follow these instructions to install it properly.1. tar -xvzf libupnp-1.2.1.tar.gz2. cd libupnp-1.2.13. make4. make install5. cp libupnp-1.2.1/ixml/inc/* /usr/include/upnp6. cp libupnp-1.2.1/ixml/bin/* /usr/lib7. cp libupnp-1.2.1/threadutil/inc/* /usr/include/upnp8. cp libupnp-1.2.1/threadutil/bin/* /usr/libThis process should install libupnp-1.2.1 to our liking (maybe not someone else's ;-)Step 2 -- Obtain the linux-igd software (if for some reason you're reading this outside the package you should have already gotten, http://linux-igd.sourceforge.net)1. tar -xvzf linuxigd-1.0.tgz    (or whatever the version you have is, or CVS)2. make 3. make install      (if CVS, remove etc/CVS directory, then do)This should be all that is needed to install linuxigd in /usr/sbin/ (as upnpd - the executable daemon name).System Preparation before starting ---------------------------------------1. In order for device discovery to function properly, you must add a multicast route to the internal interface like so:route add -net 239.0.0.0 netmask 255.0.0.0 eth0      (or whatever your internal                  interface name is - here                  eth0)-- Also, if you'd like to see debug information, and please do, as it helps us resolve your conflicts, perform the following steps:A. Add the following line to bottom of your /etc/syslog.conf file*.=debug                         /var/log/debug   ... or where ever you would like to log messages to.B.service syslog restart   (or on your system, maybe:   /etc/rc.d/init.d/syslog restart    or   killall -HUP syslogDaemon Startup---------------------Now you should be ready to run the daemon.At this time, your FORWARD rule in iptables should be set to ACCEPT.We'll add the forwarding rules back right away, but first someone needs to tell me what they are, my FORWARD is always accept. Start the daemon with the following:upnpdExample: upnpd eth1 eth0          -- Where eth1 is my external interface name             and eth0 is my internal interface name.To check and see if everything starts up ok, in /var/log/debug you should see a few debug messages followed by Advertisements Sent, and possibly some GetNATRSIPStatus and other messages.Another way to check this is to look in your Windows XP client under Network Conections.You should see an Icon for Internet Connection set to enabled in there.If for some reason you don't, first try restarting the daemon.If this doesn't work post a message to the forums and we'll try to help you.REMINDERS and THANK YOUS-------------------------Truth is I can't remember everyone to thank, but I especially want to thank both Henri Manson and Anders Betner for their development and testing work.Also Eric Wirt, for helping us test, and providing the winning comments for switching to C.This is a work in progress.This code is simply released now for others to help us debug some problems we are having.Please, help us out by checking the forums, answering problems, and giving any advice and suggestions you can to the open source community.Thanks a lot to the users, and to the over 10,000 downloads, and countless CVS checkouts.If it weren't for the interest in the program, we wouldn't be touching it (ok maybe i would, when i got bored or something) :-)Cheers allDime

心想事成 发表于 2004-10-25 21:43:28

顶一下

DreamCat 发表于 2004-10-25 21:50:22

感谢老大,我还没试验呢。置顶吧。

DreamCat 发表于 2004-10-25 21:55:24

QUOTE
1. In order for device discovery to function properly, you must add a multicast route to the internal interface like so:
为什么要在内网网卡接口上添加一条多播路由?device discovery to function properly?不理解。。

心想事成 发表于 2004-10-26 05:37:35

这个,我也不清楚,反正说明文档上面就是这样写的

DreamCat 发表于 2004-10-26 10:59:56

我去站点问问吧。

samhui 发表于 2004-10-26 14:14:57

不过用upnp,会给网络带来压力呀,就是BT的那个坏东东利用upnp

czw1240 发表于 2004-10-26 16:53:09

会带来什么压力?

心想事成 发表于 2004-10-26 17:30:13

没有关系的,和我修改的那个禁止p2p的内核一起用就没有BT带来的问题了
页: [1] 2 3
查看完整版本: 正式放出Coyote linux Upnp模块