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

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 10606|回复: 2

[交流] ROS软路由 3.30 2条网线做PCC。一条掉线另一条就不能浏览网页了 ...

[复制链接]
发表于 2007-2-21 09:20:18 | 显示全部楼层
建议加一条默认路由和一条备份的默认路由
发表于 2007-2-24 22:11:11 | 显示全部楼层
这是配置脚本。
/ip address add address=192.168.10.254/255.255.255.0 interface=lan-1 comment=lan
/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 servers=8.8.8.8,8.8.4.4

/ip address add address=192.168.0.254/255.255.255.0 interface=wan-1

/ip address add address=192.168.3.250/255.255.255.0 interface=wan-2

/ ip firewall mangle
add chain=prerouting dst-address-type=!local in-interface=lan-1 per-connection-classifier=both-addresses:2/0
    action=mark-connection new-connection-mark=1st_conn passthrough=yes comment=&quotCC1"
add chain=prerouting connection-mark=1st_conn in-interface=lan-1 action=mark-routing new-routing-mark=1st_route

add chain=prerouting dst-address-type=!local in-interface=lan-1 per-connection-classifier=both-addresses:2/1
    action=mark-connection new-connection-mark=2st_conn passthrough=yes comment=&quotCC2"
add chain=prerouting connection-mark=2st_conn in-interface=lan-1 action=mark-routing new-routing-mark=2st_route

add chain=input in-interface=wan-1 action=mark-connection new-connection-mark=1st_conn

add chain=input in-interface=wan-2 action=mark-connection new-connection-mark=2st_conn

add chain=output connection-mark=1st_conn action=mark-routing new-routing-mark=1st_route

add chain=output connection-mark=2st_conn action=mark-routing new-routing-mark=2st_route

/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=
    192.168.0.1 routing-mark=1st_route

add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=
    192.168.3.254 routing-mark=2st_route

/ip firewall nat
add action=masquerade chain=srcnat comment=1 out-interface=wan-1

add action=masquerade chain=srcnat comment=2 out-interface=wan-2
 楼主| 发表于 2007-2-20 02:55:02 | 显示全部楼层 |阅读模式

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

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

x
ROS软路由 3.30 2条网线(6M+2M)固定IP
做PCC。一条掉线另一条就不能浏览网页了
迅雷可以下载。360可以测速。就是上不了网{就是网页解析N久

我网络拓扑:
您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

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

GMT+8, 2025-8-5 12:43 , Processed in 0.184099 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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