找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: slm

[其它] 内部VLAN与电信光纤同时使用问题,请大侠指教

[复制链接]
发表于 2007-2-13 17:47:11 | 显示全部楼层
/ ip firewall mangle
add chain=prerouting dst-address=10.x.x.0/24 action=mark-routing \
    new-routing-mark=vlan passthrough=yes comment="vlan" disabled=no
add chain=prerouting dst-address=!10.x.x.0/24 action=mark-routing \
    new-routing-mark=wan passthrough=yes comment="wan" disabled=no


/ ip route
add dst-address=0.0.0.0/0 gateway=219.x.x.1 scope=255 target-scope=10 \
    routing-mark=wan comment="wan" disabled=no
add dst-address=0.0.0.0/0 gateway=10.x.x.1 scope=255 target-scope=10 \
    routing-mark=vlan comment="vlan" disabled=no

这样行不行
routeros
回复

使用道具 举报

 楼主| 发表于 2007-2-14 07:02:57 | 显示全部楼层
感谢指教,试一下先
routeros
回复

使用道具 举报

 楼主| 发表于 2007-2-14 10:23:15 | 显示全部楼层
自己琢磨了半天,研究了一下业务用软件,终于搞定了,原来这个业务软件是根据域名来选择出口的,公网也可以上但是很慢数据也容易出错,现在是强行把他的域名改成业务用光纤里的IP,然后加上IP的路由,终于。。。。。。一切OK了,哈哈,原来我咋就没想到这一点呢..

[ 本帖最后由 slm 于 2007-2-14 10:26 编辑 ]
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-30 05:35 , Processed in 0.097628 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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