Home Linux入门与提高 Linux安装配置 SuSe Linux 下安装 ADSL
SuSe Linux 下安装 ADSL
用过ADSL的人都知道,在WINDOWS上有一个叫WinPPoE的软件,通过这个软件可以很容易地联上ISP,接入INTERNET。     您想知道在LINUX上如何通过ADSL上网吗?我刚试成功,现在就迫不急待地告诉您:我用的是SuSe Linux 6.4, 选择它的原因是它对硬件的支持很丰富而且配置方便。     1、Packege     SuSe 6.4已含pppoed-0.46-7,下载     2、设置网卡和网关  # ifconfig eth0 mtu 1492 (不要为eth0设任何IP地址)并确保你的default gateway 为空。     3、Add your login name and password to /etc/ppp/pap-secrets and /etc/ppp/chap-secrets. 这两个文件应象这样:  "szmycom@163.gd" * "mypassword"     4、编辑/etc/resolve.conf nameserver 202.96.134.133 nameserver 202.96.128.68     5、在/etc/modules.conf中加入下面一行: alias char-major-144 pppox(实际上这一行在我的Suse中已存在了)     6、修改文件 /etc/ppp/options.            # general options            idle 600            # this is a must            user "szmycom@163.gd"            sync            local            nocrtscts            noauth            usepeerdns            mru 1490            mtu 1490            # this is recommended            defaultroute            hide-password            nodetach            #            # switch off all compressions            # this is a must            noaccomp            nopcomp            # this is recommended            novj            novjccomp            nobsdcomp            nodeflate            noccp     注意:Replace with your own login name.     7、运行 /usr/sbin/pppoed开始连接。注意:只有root 用户可以启动连接。     If you use a network device other than eth0, youll need to start /usr/sbin/pppoed with the option -I ethX, where X is the number of the device..     8、检验、测试连接用tail -f /var/log/messages可跟踪并诊断ADSL的连接状态,用ifconfig可以查看你的ppp0设备被分配的IP地址,如果地址分配成功,就说明已建立连接。用route命令可查看拔入服务器为你指定的网关地址。用ping www.163.com应该可以ping通,如果不通,有可能是你的DNS设置问题。     9、代理局域网上网再安装一个网卡,设置IP地址为192.168.1.1; 加入一条IP转发的规则:  /sbin/ipchains -A forward -j MASQ -s 192.168.1.0/24 -d 0.0.0.0/0局域网内client将192.168.1.1设为缺省网关,就可通过这台LINUX电脑上网。  如果你想做一个Linux Proxy server,请参阅本站有关Squid Server的文章。     以上是本人在Suse Linux上实现的经验,在Redhat上,您可参阅:  http://www.roaringpenguin.com/pppoe.html,本人也试过,认为只要/etc/ppp/options的内容与Suse中设置一样,就应该可以成功。您不妨试一下。

Tags: suse  linux  安装  adsl  



Shares:Google书签Yahoo书签雅虎收藏夹365Key网摘新浪ViVi百度收藏天极网摘diglog和讯网摘POCO网摘YouNote网摘博拉网天下图摘 spurl blogmarksBlinkListredditdiggDel.icio.us

linux