新聞中心

做個(gè)ADSL+LINUX軟路由器

作者: 時(shí)間:2014-12-30 來(lái)源:網(wǎng)絡(luò) 收藏

  3、下一步做的驅(qū)動(dòng)。去http://www.roaringpenguin.com/pppoe/rp-pppoe-2.6.tar.gz 下個(gè)驅(qū)動(dòng)程序先,大概85K大小。 考到/root去。

本文引用地址:http://m.butianyuan.cn/article/267508.htm

  然后 #tar xvfz rp-pppoe-2.6.tar.gz

  #cd rp-pppoe-2.6

  #./go

  開(kāi)始安裝,裝好就#make一下下,開(kāi)始配置。

  Welcome to the Roaring Penguin client setup. First, I will run some checks on your system to make sure the PPPoE client is installed properly... Looks good! Now, please enter some information:

  USER NAME

  >>> Enter your PPPoE user name (default):

  這里輸入在電信局申請(qǐng)的adsl的帳號(hào)

  INTERFACE

  >>> Enter the Ethernet interface connected to the ADSL modem For Solaris, this is likely to be something like /dev/hme0. For Linux, it will be ethn, where 'n' is a number.(default eth0):

  問(wèn)你用哪片網(wǎng)卡撥號(hào),默認(rèn)是第一片eth0就可以了

  4、最后一步:配置ipchains偽裝IP。

  在 /etc/sysconfig的network文件里保證要有這句: FORWARD_IPV4=true

  然后改/etc/rc.d/rc.local這個(gè)文件,加入以下內(nèi)容

  Do you want the link to come up on demand, or stay up continuously? If you want it to come up on demand, enter the idle time in seconds after which the link should be dropped. If you want the link to stay up permanently, enter 'no' (two letters, lower-case.)

  NOTE: Demand-activated links do not interact well with dynamic IP addresses. You may have some problems with demand-activated links.

  >>> Enter the demand value (default no):

  用缺省的no就可以了。

  Please enter the IP address of your ISP's primary DNS server. If your ISP claims that 'the server will provide DNS addresses', enter 'server' (all lower-case) here. If you just press enter, I will assume you know what you are doing and not modify your DNS setup.

  >>> Enter the DNS information here:

  這里填你ISP的DNS地址,成都用61.139.2.69,輔助DNS成都可用202.98.127.32

  PASSWORD

  >>> Please enter your PPPoE password:

  ADSL撥號(hào)密碼這個(gè)東東。

  搞定!爽爽,用#adsl-start 就可以開(kāi)始撥號(hào)。如果連接成功系統(tǒng)會(huì)提示你:…….connect

  用ifconfig看看。[root@localhost /root]# ifconfig

  eth0 Link encap:Ethernet HWaddr 00:40:05:64:11:28

  inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0

  UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

  RX packets:347573 errors:0 dropped:0 overruns:0 frame:0

  TX packets:40194 errors:0 dropped:0 overruns:0 carrier:0

  collisions:35 txqueuelen:100

  Interrupt:3 Base address:0x300

  lo Link encap:Local Loopback

  inet addr:127.0.0.1 Mask:255.0.0.0

  UP LOOPBACK RUNNING MTU:3924 Metric:1

  RX packets:23 errors:0 dropped:0 overruns:0 frame:0

  TX packets:23 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:0

  ppp0 Link encap:Point-to-Point Protocol

  inet addr:61.157.91.227 P-t-P:61.157.91.1 Mask:255.255.255.255

  UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1

  RX packets:20498 errors:0 dropped:0 overruns:0 frame:0

  TX packets:19187 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:10

  看見(jiàn)ppp0沒(méi)有!

linux操作系統(tǒng)文章專(zhuān)題:linux操作系統(tǒng)詳解(linux不再難懂)

linux相關(guān)文章:linux教程


路由器相關(guān)文章:路由器工作原理


路由器相關(guān)文章:路由器工作原理



上一頁(yè) 1 2 下一頁(yè)

關(guān)鍵詞: ADSL LINUX 路由器

評(píng)論


相關(guān)推薦

技術(shù)專(zhuān)區(qū)

關(guān)閉