找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5448|回复: 8

[其它] 使用32Mb CF卡制作你的双wan口路由器

[复制链接]
发表于 2005-4-8 02:31:25 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
使用32Mb CF卡制作你的双wan口路由器1.主板要支持usb-hdd启动哦。2.下载路由软件http://usa2.mikrotik.com/download/2.8.26-install-image.zip3.下载写卡软件http://www.mikrotik.com/download/physdiskwrite.exehttp://m0n0.ch/wall/downloads/physdiskwrite-0.5.zip4.写卡方法physdiskwrite  a "-u" flag has been added to allow writing to disks > 800 MB 如果卡大于800M需要使用-u 参数。 平常不要加, 免得写到你的硬盘去了。5. 有关RouteOS的设置请看[RouteOS光纤和ADSL双线备份的实现]一文http://www.routerclub.com/ipb/index.php?showtopic=6341以下为转贴文章:RouteOS光纤和ADSL双线备份的实现    基本情况:用户有两条INTERNET线路,一条是使用中国电信光纤10M,另一条是使用中国电信4MADSL.使用IP伪装使一个有200个终端局域网共享 上网。 RouteOS共有3块网卡,ether1用于ADSL,ether2用于光纤,ether3用于连接终端。 目的:实现负载平衡,并且在其中一条线路断掉后自动切换为单线路,线路恢复后,继续使用负载平衡。  1、配置光纤线路 在/ip address中为光纤线路配置IP地址,子网掩码。         

CODE
/ip address add address 61.139.77.77 mask 24 interface ether2
    2、配置ADSL线路        

CODE
/interface pppoe-client
配置ADSL拨号信息。        

CODE
/interface pppoe-client add name pppoe-line1 service CHN-telecom/ user  mailtrh999@169rh999   password kkjjh interface ether1 use-peer-dns yes mtu 1942 mru 1942
3、配置IP伪装        

CODE
/ip firewall src-nat add action masquerade        /ip firewall mangle add protocol tcp tcp-options syn-only tcp-mss 1448
4、配置路由        

CODE
/ip route add dst 0.0.0.0/0 gat 61.139.77.1,218.88.32.1 (注:61.139.77.1为光纤的网关,218.88.32.1则为ADSL的网关)       /ip route add dst 61.139.88.105/32 get 218.88.32.1(注:如果ADSL连通后PING不通网关的话,才加这条,如果PING得通则不须要。)
5、配置自动切换脚本      

CODE
/system script add name="downadsl" source="/in pppoe-client dis [/in pppoe-client find name pppoe-lin owner="admin" policy=reboot,read,write,policy,test      /system script add name="upf" source="/ip route set[/ip route find dst 0.0.0.0] gateway 61.139.73.1,218.88.32.1" owner="admin" policy=reboot,read,write,policy,test      /system script add name="downf" source="/ip route set[/ip route find dst 0.0.0.0] gateway 218.88.32.1 owner="admin" policy=reboot,read,write,policy,test      /system script add name="upadsl" source="/ip route set[/ip route find dst 0.0.0.0] gateway 61.139.73.1,218.88.32.1" owner="admin" policy=reboot,read,write,policy,test
6、配置NETWATCH用于监视网络的通断情况。      

CODE
/tool netwatch add host=61.157.88.105 timeout=1s interval=5s up-script=upadsl down-script=downadsl (注:61.157.88.105是监视ADSL是否通的IP,也可以是ADSL的网关。)     /tool netwatch add host=61.139.73.1 timeout=1s interval=5s up-script=upf down-script=downf
routeros
发表于 2005-4-8 11:26:44 | 显示全部楼层
你用32m就写进去了啊 牛  少了不少组建吧  我准备用128m的来写 应该全部安装都没问题吧
routeros
回复

使用道具 举报

发表于 2005-4-8 16:03:01 | 显示全部楼层
怎么写进去啊??把整个ISO写进硬盘里面?
routeros
回复

使用道具 举报

发表于 2005-4-8 16:05:00 | 显示全部楼层
在routeros的官方网站上有for CF的img
routeros
回复

使用道具 举报

发表于 2005-4-8 17:27:58 | 显示全部楼层
以前我怎么没看到有呢``郁闷!
routeros
回复

使用道具 举报

发表于 2005-4-8 17:37:11 | 显示全部楼层
QUOTE (wsgtrsys @ Apr 8 2005, 04:05 PM)
在routeros的官方网站上有for CF的img  
  光盘直接安装到cf卡不行么?
routeros
回复

使用道具 举报

 楼主| 发表于 2005-4-8 18:01:32 | 显示全部楼层
QUOTE (mywangba @ Apr 8 2005, 11:26 AM)
你用32m就写进去了啊 牛  少了不少组建吧  我准备用128m的来写 应该全部安装都没问题吧  
  

QUOTE
Microsoft Windows XP [版本 5.1.2600]?版权所有 1985-2001 Microsoft Corp.G:\>cd cfG:\cf>dir 驱动器 G 中的卷是 download 卷的序列号是 7844-0F75 G:\cf 的目录2005-04-08  17:40              .2005-04-08  17:40              ..2005-03-14  16:27        20,971,520 image.img2005-03-15  14:35           112,343 LICENSE.txt2004-03-31  13:05            77,824 physdiskwrite.exe               3 个文件     21,161,687 字节               2 个目录    288,964,608 可用字节G:\cf>physdiskwrite image.imgphysdiskwrite v0.4 by Manuel Kasper Searching for physical drives...Information for \\.\PhysicalDrive0:   Windows:       cyl: 9964                  tpc: 255                  spt: 63   C/H/S:         16383/16/63   Model:         Maxtor 4D080H4   Serial number: 4D080H4   Firmware rev.: 4D080H4Information for \\.\PhysicalDrive1:   Windows:       cyl: 4                  tpc: 255                  spt: 63Which disk do you want to write? (0..1) 1About to overwrite the contents of disk 1 with new data. Proceed? (y/n) y20971520/20971520 bytes written in totalG:\cf>
就这样子写进去了。。。不过bios要选择usb-zip才能启动进去.
routeros
回复

使用道具 举报

 楼主| 发表于 2005-4-8 18:02:44 | 显示全部楼层
QUOTE (wsgtrsys @ Apr 8 2005, 04:05 PM)
在routeros的官方网站上有for CF的img  
  就是这个啊..http://usa2.mikrotik.com/download/2.8.26-install-image.zip
routeros
回复

使用道具 举报

 楼主| 发表于 2005-4-8 20:07:21 | 显示全部楼层
实验失败...写进去的只是安装文件...还需要硬盘来安装。
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-9-19 08:57 , Processed in 0.059797 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表