免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2755 | 回复: 1
打印 上一主题 下一主题

[IRIX] 谁有IRIX的PPOE软件。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-01-02 16:14 |只看该作者 |倒序浏览
有了O2,有了ADSL,
怎么能把这两样好东西捏到一块?
我仅有一台O2在宿舍。IRIX6.3。

论坛徽章:
0
2 [报告]
发表于 2004-01-02 17:34 |只看该作者

谁有IRIX的PPOE软件。

PPP over Ethernet for IRIX

Finding a PPPoE Implementation that Works!
Believe it or not, there actually is an IRIX PPPoE implementation out there that works. Check out this article that I posted to comp.sys.sgi.apps about it.

My Broken Implementation
This is a seriously preliminary, pre-alpha implementation of PPP over Ethernet (RFC 2516) for IRIX. It doesn't completely work. It may crash your machine. It may mung your data. It is hard to install. I take no responsibility for its use or misuse. You have been warned.

Nevertheless, I'd appreciate it if people could give this a try and let me know how well it works. I no longer use a provider that implements PPPoE so it's doubtful that I'll do much more with this. If somebody could convert it to a STREAMS module, which will hopefully fix most of its current problems, that would be great!

The binary found here has been compiled using EGCS 1.1.2 on an R4400 Indigo running IRIX 6.5.3f. It may or may not work on other configurations. I would be very surprised if it ran under 6.2. You can also grab the source if you like.

Brief install instructions:
Grab the binary, pppoed, and make it executable.
Make an entry in /etc/ppp/Systems similar to the following:

remote Any pppoe,e Any


Make an entry in /etc/ppp.conf similar to the following:

remote -recv_pap -recv_chap add_route out sync send_name=YOUR_USERID_HERE
send_passwd=YOUR_PASSWORD_HERE send_pap mtu=1400 -mp -pcomp -acomp -vj_comp
-vj_compslot -ccp -tx_predictor1 -tx_bsd -rx_predictor1 -rx_bsd


Replace YOUR_USERID_HERE and YOUR_PASSWORD_HERE with the appropriate values. Note that many Access Concentrators seem to expect the user ID to be of the form blah@yourisp.bla. Experiment to see what works.
Run pppoed as root. It will print a line telling you the PTY that it wants to use for communication with the PPP software.
Make an entry in /etc/uucp/Devices similar to the following:

pppoe ttyq2 - Any direct\


Replace ttyq2 with the PTY name that pppoed displayed.
Run the ppp software like so (as root, of course)

ppp -dd -r remote


This will print a reasonable amount of debugging info so that you can track what's going on. Add more 'd's (eg. -ddd) or remove them to get the amount of debugging info you desire. pppoed will also print the name of the Access Concentrator that it is using. This information likely won't be of much use to you but it's vaguely interesting.
You should now be able to perform a "netstat -in" and verify the PPP interface's IP address. Similarly "netstat -rn" should show a default route to the Access Concentrator. In order to get DNS working correctly you will have to make appropriate changes to /etc/resolv.conf.

Things To Watch Out For
There are some gotchas that you should be aware of:

It is slow. Don't expect to reach anything approaching the bandwidth of your connection. This is caused by the surly user space implementation and some cheesy memcpy()ing that I've done.
Output (ie. from your machine to the outside world) has some problems. It seems that the PPP driver wants to transmit packets that are larger than the link's MTU. You will likely be OK with telnet and web browsing and other simple stuff but FTPing out of your machine will almost surely not work.
The PPP software may stop LCP negotiation, not being able to agree on an MTU. If that happens try editing /var/sysgen/master.d/bsd to include the line

int maxethermtu = 1400;


and regenerate a kernel using autoconfig -f.
The protocol is incompletely implemented--some tags are not handled properly. While this shouldn't be that hard to fix I didn't have the energy to do it myself.

---------------------------
from http://bbcr.uwaterloo.ca/~dfevans/pppoe_irix.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP