szdg88 发表于 2009-7-1 00:32:27

pppoe服务器三线负载的一个问题,哪位大哥能帮帮我

问题是这样的,以前我用ros没有用架设PPPOE拨号服务器,!内网用户都是填写 192.168.1.2---192.168.1.254 这样的IP来上网

            半个月前架设了PPPOE服务器,内网拨号上网!后面加的用户都是通过拨号才能上网!以前的还是按照本地填写IP直接上网

         我做的是三线负载!WAN1 WAN2 WAN3本地填写IP直接上网的能实现三线负载。。也能带宽叠加!

            问题就是PPPOE拨号用户就无法使用三线负载。。。。只能使用WAN1这条线路!WAN2 WAN3 这两天用不到,也不会负载!

   请问题各位大哥,版主,,能不能帮帮小弟
            我的QQ是:915308

szdg88 发表于 2009-7-6 04:29:25

ddddddddddddddddddddddddddddddddddddd

wujie19870103 发表于 2009-11-28 14:50:48

添加NAT,NTH脚本(如果内网是拨号的,就把in-interface=Lan改为Src.Address=填你的IP-pool)
例如:
/ ip firewall mangle
add chain=prerouting Src.Address=192.168.1.2-192.168.1.254 protocol=tcp connection-state=new nth=2,1,0 action=mark-connection \
    new-connection-mark=1 passthrough=yes comment="A1 NTH" disabled=no
add chain=prerouting Src.Address=192.168.1.2-192.168.1.254 protocol=tcp connection-mark=1 action=mark-routing new-routing-mark=1 \
    passthrough=no comment="A1 NTH" disabled=no

szdg88 发表于 2010-5-3 23:57:53

回复 3# wujie19870103


    谢谢了,谢谢楼上这位大哥,现在搞定了

andyzhu8 发表于 2011-5-29 00:26:31

我的没搞定啊

/ip address add address=192.168.1.1/255.255.255.0 interface=lan comment=lan
/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 servers=202.96.134.133,202.96.128.86

/ interface pppoe-client
add name="pppoe-out1" max-mtu=1440 max-mru=1440 interface=wam \
    user="test" password="test" profile=default \
    service-name="" ac-name="" add-default-route=yes dial-on-demand=no \
    use-peer-dns=no allow=pap,chap,mschap1,mschap2 disabled=no

add name="pppoe-out2" max-mtu=1440 max-mru=1440 interface=wam2 \
    user="test2" password="test2" profile=default \
    service-name="" ac-name="" add-default-route=yes dial-on-demand=no \
    use-peer-dns=no allow=pap,chap,mschap1,mschap2 disabled=no

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

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

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

add chain=input in-interface=wam2 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=\
    pppoe-out1 routing-mark=1st_route

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

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

add action=masquerade chain=srcnat comment=2 out-interface=pppoe-out2


我PPPOE内网的 地址池是11.11.11.2-11.11.11.254
要怎么弄啊 谢谢你们了

页: [1]
查看完整版本: pppoe服务器三线负载的一个问题,哪位大哥能帮帮我