新聞中心

        EEPW首頁 > 手機與無線通信 > 設計應用 > 做個ADSL+LINUX軟路由器

        做個ADSL+LINUX軟路由器

        作者: 時間:2014-12-30 來源:網絡 收藏

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

        本文引用地址:http://www.104case.com/article/267508.htm

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

          #cd rp-pppoe-2.6

          #./go

          開始安裝,裝好就#make一下下,開始配置

          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):

          這里輸入在電信局申請的adsl的帳號

          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):

          問你用哪片網卡撥號,默認是第一片eth0就可以了

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

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

          然后改/etc/rc.d/rc.local這個文件,加入以下內容

          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撥號密碼這個東東。

          搞定!爽爽,用#adsl-start 就可以開始撥號。如果連接成功系統會提示你:…….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

          看見ppp0沒有!

        linux操作系統文章專題:linux操作系統詳解(linux不再難懂)

        linux相關文章:linux教程


        路由器相關文章:路由器工作原理


        路由器相關文章:路由器工作原理



        上一頁 1 2 下一頁

        關鍵詞: ADSL LINUX 路由器

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 武安市| 绥芬河市| 南溪县| 连南| 津南区| 甘德县| 马尔康县| 饶河县| 平凉市| 新宁县| 永靖县| 扶余县| 慈利县| 茶陵县| 玉田县| 武义县| 沅陵县| 湘阴县| 富阳市| 分宜县| 邵武市| 镇赉县| 盐山县| 鄯善县| 资阳市| 南通市| 称多县| 丹江口市| 余姚市| 安多县| 西峡县| 吴堡县| 义马市| 托克逊县| 万年县| 屯昌县| 祁连县| 通化市| 黑山县| 抚松县| 金门县|