![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-12 19:39 |
共 47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行 |
| DOS媒体世界 & 网络技术 (多媒体室) » DOS 连接ADSL |
| 可打印版本 1,798 / 4 |
| 第1楼 htxiang | 发表于 2008-01-18 20:21 |
| 初级用户 发帖 13 积分 44 | |
|
DOS 连接ADSL 先前提到使用 pppoe packet dirver + inet_ext 在 dos 底下建立簡單的分享主機
現在再介紹在 dos 以單一電腦下建立 router 以 adsl pppoe 連線, 提供 ethernet 區網及 rs-232 & lpt 直接連線及modem 撥入上網 首先需獲得各個您所使用介面卡所需的 packet driver , pppoe packet driver (pepa) 及 router 程式... dos router 有許多種, 以下介紹 inar....因為它附有原始碼, 可執行檔就已提供達八組介面, 功能強大, 設定也較為簡易.. ftp://ftp.fu-berlin.de/pc/msdos/network/inar/ 內附組態 sample 檔, 您可以直接拿它來修改, 配合介面的 packet driver, 再以內附的 cf 檔編譯, 若組態檔有所錯誤, 它也會告訴您錯誤在哪裡, 您也可以規劃 routing table, 設立 gateway, 合併多個 adsl, 建立防火牆... 以下是我現用的的組態檔, 配合前述的 pepa, 即可連線... 敘述前打上 " # " 代表忽略此行 # Configuration for a gateway that connects four LANs to each other # All Internet and ISDN numbers in this sample file are purely fictional, # but logically correct. #--------------------------------------------------- # Globals 此項為建立連線紀錄, 但需配 #--------------------------------------------------- 另一台 unix 相容主機 #global # syslog # host 192.168.150.10 # priority info # logsource # system # routing # endlogsource # endsyslog # # prefix @echo off # suffix cls\n\ # echo InterNet Access Router #endglobal #---------------------------------------------------- # router 這裡建立路由表 #---------------------------------------------------- route name internet net default # net 192.168.250.0 # netmask 255.255.255.0 interface LAN-1 gateway 192.168.250.1 # gateway direct metric 1 endroute #--------------------------------------------------- # Interfaces 依您所使用網卡規劃 packet driver #--------------------------------------------------- # Interfaces 1 3com509b ISA for ADSL with PEPA # Interfaces 1 3com509b ISA for ADSL interface name LAN-1 type ethernet # type point2point address 192.168.250.2 # address 192.168.250.1 netmask 255.255.255.252 metric 1 attributes # send_rip # listen_rip # send_default_route # listen_default_route no_reverse_check endattributes driver command pepa 0x%x # command 3c5x9pd 0x%x enddriver endinterface # Interfaces 2 UMC9003 ISA for office net interface name LAN-2 type ethernet address 192.168.0.1 netmask 255.255.255.0 metric 1 # attributes # send_rip # listen_rip # send_default_route # listen_default_route # endattributes driver command ne2000 0x%x 11 0x320 enddriver endinterface # Interfaces 3 DE220PCT ISA for Home net with wireless #interface # name LAN-3 # type ethernet # address 192.168.1.1 # netmask 255.255.255.0 # metric 1 # # attributes # send_rip # listen_rip # send_default_route # listen_default_route # endattributes # # driver # command de22xpd 0x%x # command slipper com1 baud=115200 vec=0x%x ether # command slipkt /f14 /p3f8 /q4 /s115200 /v0x%x # command cslipper com3 baud=115200 vec=0x%x ether # enddriver #endinterface # Interfaces 4 print port LPT1 for Transiver interface name LAN-4 type ethernet address 192.168.2.1 netmask 255.255.255.0 metric 1 # attributes # send_rip # listen_rip # send_default_route # listen_default_route # endattributes driver command plip 0x%x 0x5 0x378 00 11 22 33 44 55 enddriver endinterface # Interfaces 5 RS-232 dual speed COM1 slip for Home net #interface # name LAN-5 # type ethernet # address 192.168.3.1 # netmask 255.255.255.0 # metric 1 # # attributes # send_rip # listen_rip # send_default_route # listen_default_route # endattributes # # driver # command slipper com1 vec=0x%x baud=115200 ether # enddriver #endinterface # Interfaces 6 RS-232 dual speed COM2 cslip for Home net with modem interface name LAN-6 type ethernet address 192.168.4.1 netmask 255.255.255.0 metric 1 # attributes # send_rip # listen_rip # send_default_route # listen_default_route # endattributes driver command cslipper com2 vec=0x%x baud=57600 ether enddriver endinterface # Interfaces 7 RS-232 COM3 direct connect slip for TIM's PC interface name LAN-7 type ethernet address 192.168.5.1 netmask 255.255.255.0 metric 1 # attributes # send_rip # listen_rip # send_default_route # listen_default_route # endattributes driver command slipkt /f14 /p3e8 /q12 /s115200 /v0x%x enddriver endinterface # Interfaces 8 RS-232 COM4 direct connect cslip for GARY's notebook interface name LAN-8 type ethernet address 192.168.6.1 netmask 255.255.255.0 metric 1 # attributes # send_rip # listen_rip # send_default_route # listen_default_route # endattributes driver command cslpkt /f14 /p2e8 /q15 /s115200 /v0x%x enddriver endinterface 若您不需那麼多介面, 可以在多餘的 interface 前加註 " # " 固接的網友更適合用 inar, 只要把上述第一個介面 pepa packet driver 改為您接到 adsl 網卡的 packet driver 即可 pepa 的參數檔, 原本在 inet_ext 的應用中有 -o 的設定, 此 時您可以在前面加註 " # " , 如此它就會在螢幕上 show 出 已傳收 bytes 數, 連線次數及使用時間等訊息, inet_ext 不用 是因為此參數會破壞 inet_ext 顯示畫面 以下是我的 autoexec.bat 檔 cd\inar 3c5x9pd 0x7e inar.bat <------由 cf 建立 cf 所建立的 inar.bat 內容 pepa 0x60 ne2000 0x61 11 0x320 plip 0x62 0x5 0x378 00 11 22 33 44 55 cslipper com2 vec=0x63 baud=57600 ether slipkt /f14 /p3e8 /q12 /s115200 /v0x64 cslpkt /f14 /p2e8 /q15 /s115200 /v0x65 p6 <------依照介面數不同, 會分別使用 p2 ~ p8 等主檔 rs-232 直接連線, 在 windows 中必須安裝 nullmodem driver 不是 win98內附的那個, 請看以下連結 http://www.ionnetworks.com/Technical...SLIP/slip.html 您必須下載 mdmcbx.inf 檔, 新增數據機, 由磁片安裝選它即可, 伺服器類型 slip or cslip, tcpip 如下所述: 由家中以 modem 連到此 router 上網, 因是透過電話線, 至多 33.6k, 就算您是使用 56k modem 亦同, 同樣的, 伺服器類型 slip or cslip , tcpip 如下所述且壓縮 ip 標頭壓縮與 遠端通訊閘都要允用: 此 router未提供 dhcp,故所有的ip ,netmask,gateway, dns 全部要 自己設.... 如 netmask=255.255.255.0 lan2 的 ip = 192.168.0.2 ~ 192.168.0.253 gateway=192.168.0.1 lan3 的 ip = 192.168.1.2 ~ 192.168.1.253 gateway=192.168.1.1 lan4 的 ip = 192.168.2.2 ~ 192.168.2.253 gateway=192.168.2.1 .......等 當然您也可另行規劃, 如設為 1/4C or 1/2C 也可...... slipper & cslipper 這兩個 packet driver , 您所使用的 nullmodem 連接線要記得是有硬體交握的那種, 且 DCR or CTS 有回接到 自身的 DTR or RTS (一組即可), 否則它會等到 DCR or CTS 為 hi 時才會繼續動作, 要不您就要設為軟體交握, 而 slipkt & cslpkt 則不會 |
|
| 第2楼 xujeffery | 发表于 2008-01-27 02:02 |
| 新手上路 发帖 6 积分 14 | |
|
颇有意思,谢谢。
|
|
| 第3楼 shuiyin313 | 发表于 2008-01-27 14:38 |
| 初级用户 发帖 85 积分 177 | |
|
看看
|
|
| 第4楼 zhhsoft | 发表于 2008-02-03 01:53 |
| 初级用户 发帖 23 积分 162 | |
|
强烈要示楼主详细讲述DOS下的ADSL上网
这不是我一个人的要求http://www.cn-dos.net/forum/viewthread.php?tid=28388&fpage=2&highlight=&page=1 我跪下了 |
|
| 第5楼 AlexZhang | 发表于 2008-02-04 10:57 |
| 系统支持 发帖 436 积分 1,017 | |
|
其实pepa的配置文件...
|
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |