Yvision.kzYvision.kz
kk
Разное
Разное
399 773 постов41 подписчиков
Всяко-разно
0
03:07, 13 июня 2010

Mikrotik:PCC

/ip firewall mangle
add action=mark-connection chain=input comment="" disabled=no in-interface=\
    PPPoE1 new-connection-mark=p1_conn passthrough=no
add action=mark-connection chain=input comment="" disabled=no in-interface=\
    PPPoE2 new-connection-mark=p2_conn passthrough=no
add action=mark-connection chain=input comment="" disabled=no in-interface=\
    PPPoE3 new-connection-mark=p3_conn passthrough=no
add action=mark-connection chain=input comment="" disabled=no in-interface=\
    PPPoE4 new-connection-mark=p4_conn passthrough=no
add action=mark-connection chain=input comment="" disabled=no in-interface=\
    PPPoE5 new-connection-mark=p5_conn passthrough=no
add action=mark-routing chain=output comment="" connection-mark=p1_conn \
    disabled=no new-routing-mark=to_p1 passthrough=no
add action=mark-routing chain=output comment="" connection-mark=p2_conn \
    disabled=no new-routing-mark=to_p2 passthrough=no
add action=mark-routing chain=output comment="" connection-mark=p3_conn \
    disabled=no new-routing-mark=to_p3 passthrough=no
add action=mark-routing chain=output comment="" connection-mark=p4_conn \
    disabled=no new-routing-mark=to_p4 passthrough=no
add action=mark-routing chain=output comment="" connection-mark=p5_conn \
    disabled=no new-routing-mark=to_p5 passthrough=no
add action=mark-connection chain=prerouting comment="" disabled=no \
    dst-address-type=!local new-connection-mark=p1_conn passthrough=yes \
    per-connection-classifier=src-address:5/0 src-address=12.0.0.0/16
add action=mark-connection chain=prerouting comment="" disabled=no \
    dst-address-type=!local new-connection-mark=p2_conn passthrough=yes \
    per-connection-classifier=src-address:5/1 src-address=12.0.0.0/16
add action=mark-connection chain=prerouting comment="" disabled=no \
    dst-address-type=!local new-connection-mark=p3_conn passthrough=yes \
    per-connection-classifier=src-address:5/2 src-address=12.0.0.0/16
add action=mark-connection chain=prerouting comment="" disabled=no \
    dst-address-type=!local new-connection-mark=p4_conn passthrough=yes \
    per-connection-classifier=src-address:5/3 src-address=12.0.0.0/16
add action=mark-connection chain=prerouting comment="" disabled=no \
    dst-address-type=!local new-connection-mark=p5_conn passthrough=yes \
    per-connection-classifier=src-address:5/4 src-address=12.0.0.0/16
add action=mark-routing chain=prerouting comment="" connection-mark=p1_conn \
    disabled=no new-routing-mark=to_p1 passthrough=no src-address=\
    12.0.0.0/16
add action=mark-routing chain=prerouting comment="" connection-mark=p2_conn \
    disabled=no new-routing-mark=to_p2 passthrough=no src-address=\
    12.0.0.0/16
add action=mark-routing chain=prerouting comment="" connection-mark=p3_conn \
    disabled=no new-routing-mark=to_p3 passthrough=no src-address=\
    12.0.0.0/16
add action=mark-routing chain=prerouting comment="" connection-mark=p4_conn \
    disabled=no new-routing-mark=to_p4 passthrough=no src-address=\
    12.0.0.0/16
add action=mark-routing chain=prerouting comment="" connection-mark=p5_conn \
    disabled=no new-routing-mark=to_p5 passthrough=no src-address=\
    12.0.0.0/16
/ip route
add check-gateway=arp comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE1 routing-mark=to_p1 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE2 routing-mark=to_p1 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=PPPoE3 routing-mark=to_p1 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=PPPoE4 routing-mark=to_p1 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=5 dst-address=0.0.0.0/0 gateway=PPPoE5 routing-mark=to_p1 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE2 routing-mark=to_p2 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE3 routing-mark=to_p2 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=PPPoE4 routing-mark=to_p2 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=PPPoE5 routing-mark=to_p2 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=5 dst-address=0.0.0.0/0 gateway=PPPoE1 routing-mark=to_p2 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE3 routing-mark=to_p3 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE4 routing-mark=to_p3 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=PPPoE5 routing-mark=to_p3 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=PPPoE1 routing-mark=to_p3 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=5 dst-address=0.0.0.0/0 gateway=PPPoE2 routing-mark=to_p3 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE4 routing-mark=to_p4 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE5 routing-mark=to_p4 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=PPPoE1 routing-mark=to_p4 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=PPPoE2 routing-mark=to_p4 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=5 dst-address=0.0.0.0/0 gateway=PPPoE3 routing-mark=to_p4 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=PPPoE5 routing-mark=to_p5 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=PPPoE1 routing-mark=to_p5 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=PPPoE2 routing-mark=to_p5 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=PPPoE3 routing-mark=to_p5 scope=30 target-scope=10
add check-gateway=arp comment="" disabled=no distance=5 dst-address=0.0.0.0/0 gateway=PPPoE4 routing-mark=to_p5 scope=30 target-scope=10

0
313
0