找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1914|回复: 4

[其它] 4天了,都没搞定ROS实现双网接入,请求大家指点!!谢谢!!

[复制链接]
发表于 2006-8-4 10:08:09 | 显示全部楼层 |阅读模式

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

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

×
请帮我看看是哪出错了!!!!!!

网吧要实现网通+电信,网通为主的,我的设置如下:
1,网卡为类:
   0  LAN 内网    1  CNC  网通    2 TEL 电信
2,加入IP,子掩码
  / ip address
add address=192.168.0.1/24 network=192.168..0 broadcast=192.168.0.255 \
  interface=LAN comment="" disabled=no
add address=221.229.122.106/30 network=自动设置 broadcast=自动设置
  interface=TEL comment="" disabled=no
add address=61.29.147.29/24 network=自动设置 broadcast=自动设置
  interface=CNC comment="" disabled=no



3,增加网关(电信的路由网关)
(电信网关:221.229.122.105,,,,,,,,,,,,网通网关:61.147.29.254)  


/ip route
add dst-address=58.32.0.0/13 gateway=221.229.122.105 check-gateway=ping \
  distance=0 scope=255 target-scope=10 comment="tel" disabled=no
add dst-address=58.40.0.0/15 gateway=221.229.122.105 check-gateway=ping \
  distance=0 scope=255 target-scope=10 comment="tel" disabled=no
add dst-address=58.42.0.0/16 gateway=221.229.122.105 check-gateway=ping \
  distance=0 scope=255 target-scope=10 comment="tel" disabled=no
add dst-address=58.44.0.0/14 gateway=221.229.122.105 check-gateway=ping \
  distance=0 scope=255 target-scope=10 comment="tel" disabled=no
下略
add dst-address=0.0.0.0/0 gateway=61.29.147.254 check-gateway=ping distance=0 \
  scope=255 target-scope=10 comment="cnc" disabled=no

4,设置好监控的开关

/ tool netwatch
add host=221.229.122.105 timeout=1s interval=1m up-script=dxup \
  down-script=dxdown comment="TEL" disabled=no
add host=61.29.147.254 timeout=1s interval=1m up-script=CNCup \
  down-script=CNCdown comment="CNC" disabled=no

5,自动切换脚本

/ system script
add name="dxup" source="/ip route set \[/ip route find comment=TEL\] gateway \
  221.229.122.105\n" policy=ftp,reboot,read,write,policy,test,winbox,password

add name="CNCup" source="/ip route set \[/ip route find comment=CNC\] gateway \
  61.29.147.254\n" policy=ftp,reboot,read,write,policy,test,winbox,password

add name="dxdown" source=":if \(\[/tool netwatch get \[/tool netwatch find \
  comment=CNC\] status\]=\"down\"\) do {/ip route set \[/ip route find \
  comment=TEL\] gateway \[/ip address get \[/ip address find \
  interface=pppoe-out1\] network\]} else {/ip route set \[/ip route find \
  comment=TEL\] gateway 61.29.147.254}" \
  policy=ftp,reboot,read,write,policy,test,winbox,password

add name="CNCdown" source=":if \(\[/tool netwatch get \[/tool netwatch find \
  comment=TEL\] status\]=\"down\"\) do {/ip route set \[/ip route find \
  comment=CNC\] gateway \[/ip address get \[/ip address find \
  interface=pppoe-out1\] network\]} else {/ip route set \[/ip route find \
  comment=CNC\] gateway 221.229.122.105}" \
  policy=ftp,reboot,read,write,policy,test,winbox,password




到这,就能实现网通上网了,可电信不行,且在用winbox工具PING时,网通网关可通PING到,电信的PING 不到,但把电信的接到单机或路由上,设置好后,电信是可以上网的
IP\子掩吧\网关,221.229.122.106,   255.255.255.252,   221.229.122.105


现线等待回复.................
routeros
发表于 2006-8-4 12:04:06 | 显示全部楼层

回复 #1 taoszyz 的帖子

电信的网卡激活了吗?
routeros
回复

使用道具 举报

 楼主| 发表于 2006-8-4 15:31:02 | 显示全部楼层
怎么激活,
routeros
回复

使用道具 举报

 楼主| 发表于 2006-8-4 15:43:00 | 显示全部楼层
我还做了见蠢事,把电信的线换到CNC网卡上也不行,变更IP,网关,但还是不行呀,RX有数据流TX总是为0
但把电信光纤接到硬路由后,,出来的线接到ROS,TEL网卡上,却有数据流,但RX与TX总是一会有数据一会为0
能在帮我**下吗,急在线等待

这是不是仍然是网卡为激活
routeros
回复

使用道具 举报

发表于 2006-8-4 16:33:40 | 显示全部楼层
通知电信邦定电信哪块网卡的MAC地址后再试!
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-9 11:27 , Processed in 0.058876 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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