ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 8650|回复: 4

[交流] 余老师你好,怎么把4条线其中3条做pcc,剩下一条单独给服务器用 ...

[复制链接]
发表于 2009-9-11 03:26:35 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

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

x
现在3条线做的pcc没问题,但是server好像不走pppoe-out3,我是想让它单独用pppoe-out3的,可能我脚本有问题吧

  • add action=mark-connection chain=prerouting disabled=no in-interface=pppoe-out3
  • new-connection-mark=server passthrough=yes
  • add action=mark-connection chain=prerouting disabled=no in-interface=lan new-connection-mark=server
  • passthrough=yes src-address-list=server
  • add action=mark-routing chain=prerouting connection-mark=server disabled=no in-interface=lan
  • new-routing-mark=to_server passthrough=yes src-address-list=server
  • add action=mark-routing chain=output connection-mark=server disabled=no new-routing-mark=to_server
  • passthrough=yes

复制代码


  • /ip route
  • add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_conn2 scope=30
  • target-scope=10
  • add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out4 routing-mark=to_conn4 scope=30
  • target-scope=10
  • add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out3 routing-mark=to_server scope=30
  • target-scope=10
  • add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_conn1 scope=30
  • target-scope=10
  • add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out4 scope=30 target-scope=10
  • add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=pppoe-out2 scope=30 target-scope=10


复制代码
发表于 2009-9-12 00:05:48 | 显示全部楼层
这样做了之后foxmail也发不了邮件,msn是有时能登录,有时不能登录,提示:80048820
发表于 2009-9-15 08:01:30 | 显示全部楼层
回复 3# son

谢谢阿,你有空不?能不能详细说下怎么做呀?我是新手不太懂
发表于 2009-9-19 10:14:52 | 显示全部楼层
作源地址策略,把服务器的数据单独标记为路由走一条线出去,其他的作pcc
发表于 2009-9-19 10:54:02 | 显示全部楼层
回复 4# link26

余老师不在网大已经很久了···
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-6-17 03:54 , Processed in 0.227321 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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