Community discussions

MikroTik App
 
ergyspapa
just joined
Topic Author
Posts: 17
Joined: Thu Apr 22, 2010 11:19 am

Please help with mikrotik PCC

Thu Apr 22, 2010 11:28 am

Hello guys.
I have a big problem.
If any one can help I will be the happiest man in world.
I was trying to configure my router OS 3.30 using this guide :
http://wiki.mikrotik.com/wiki/Manual:PCC

But with no result, I mean no internet is goind out.

I would like to know too what's the different between PCC and other load balacing.

I would like to know too that does this help in internet speed?
I am using two statics IP-s.

Hope that any one is going to help me.

Regards!
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1770
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: Please help with mikrotik PCC

Thu Apr 22, 2010 1:02 pm

http://www.tiktube.com/?video=343

(starting from slide 22)
 
ergyspapa
just joined
Topic Author
Posts: 17
Joined: Thu Apr 22, 2010 11:19 am

Re: Please help with mikrotik PCC

Thu Apr 22, 2010 4:29 pm

Thanks for you quick reply and that post was very useful.
But my problem now is that all traffic goes to only one interface.
Here a picture of my MT.

Image

Please help, I need it as soon as you can couse I am a WISP and I am getting this error!

Regards.
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1770
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: Please help with mikrotik PCC

Fri Apr 23, 2010 12:30 pm

Use torch and look how many connections are taking traffic - if only few are making whole traffi that is OK - it is not per-packet - it is per-address-pair load balancing - number become similar on larger number of connections.
 
ergyspapa
just joined
Topic Author
Posts: 17
Joined: Thu Apr 22, 2010 11:19 am

Re: Please help with mikrotik PCC

Fri Apr 23, 2010 3:16 pm

But how it's possible that my second gateway (192.168.2.1) is not active?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Please help with mikrotik PCC

Sat Apr 24, 2010 12:16 am

it's backup route. look at routes with routing mark set - they are active
 
ergyspapa
just joined
Topic Author
Posts: 17
Joined: Thu Apr 22, 2010 11:19 am

Re: Please help with mikrotik PCC

Sat Apr 24, 2010 2:23 pm

I tried again to make a big traffic on my network and it is still the same problem.
All the traffic goes to ether2 ( I mean the first gateway).

Any help or other solution?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Please help with mikrotik PCC

Sat Apr 24, 2010 6:36 pm

is some traffic marked for that gateway?
 
ergyspapa
just joined
Topic Author
Posts: 17
Joined: Thu Apr 22, 2010 11:19 am

Re: Please help with mikrotik PCC

Sat Apr 24, 2010 7:32 pm

I think yes, but I used all the guide explain in the post before.
 
kazanova
Member
Member
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: Please help with mikrotik PCC

Sat Apr 24, 2010 9:58 pm

in Ur image posted i notice that ip route had no distance 1 you have distance 2 and 3 . try to make it 1 and 2.
i don't think it will make big different, but try it
as we can see that in Ur interface list isp2 has some traffic.
be care full for ur firewall mangle i can see that in mark connection something not right sine there is in connection mark (no-mark)

add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0 \
action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1 \
action=mark-connection new-connection-mark=wlan2_conn passthrough=yes

and mark routing you has tow route ips2 it showd one isp1 and isp2
add chain=prerouting connection-mark=wlan1_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan1
add chain=prerouting connection-mark=wlan2_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan2


and what u mean by large traffic ( many connection. or large file download)
pcc load balance has pcc :D (peer connection classifier ) and that new option

it better to export your mt fire wall and post it
 
ergyspapa
just joined
Topic Author
Posts: 17
Joined: Thu Apr 22, 2010 11:19 am

Re: Please help with mikrotik PCC

Mon Apr 26, 2010 5:31 pm

finally make it work, thnx kazanova!
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

Re: Please help with mikrotik PCC

Sun Sep 05, 2010 2:32 am

I don't understand, what did "kazanova" do to make it work? What did you change?
 
kazanova
Member
Member
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: Please help with mikrotik PCC

Sun Sep 05, 2010 4:20 am

in Ur image posted i notice that ip route had no distance 1 you have distance 2 and 3 . try to make it 1 and 2.
 
stefot0
just joined
Posts: 7
Joined: Wed Mar 25, 2009 9:47 pm
Location: Bulgaria

Re: Please help with mikrotik PCC

Fri Oct 22, 2010 9:42 pm

Hello guys.
I have a big problem.
If any one can help I will be the happiest man in world.
I was trying to configure my router OS 3.30 using this guide :
http://wiki.mikrotik.com/wiki/Manual:PCC

But with no result, I mean no internet is goind out.
Unfortunately, that configuration doesn't work-i've tried it personally on MT 3.30

The problem is the same-only one WLAN is active ALL THE TIME!

Can somebody paste correct and working configuration of "Per-Connection-Classifier" (PCC) (2 WANs & 1 LAN)
Thanks in advance!
Greetings from Bulgaria!
Last edited by stefot0 on Wed Jan 05, 2011 4:22 pm, edited 1 time in total.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Please help with mikrotik PCC

Sat Oct 23, 2010 3:26 am

correct and working config is in Wiki

do you use Hotspot/WebProxy?
 
stefot0
just joined
Posts: 7
Joined: Wed Mar 25, 2009 9:47 pm
Location: Bulgaria

Re: Please help with mikrotik PCC

Mon Oct 25, 2010 12:39 pm

correct and working config is in Wiki

do you use Hotspot/WebProxy?
No Hotspot, no Webproxy or anything else- I'm trying to configure PCC according to the WIKI on clean install-v 3.30.
Not working :(!

I've also noticed that when i mark new routings here:

add chain=prerouting connection-mark=wlan1_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan1
add chain=prerouting connection-mark=wlan2_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan2

I can't select them like optional here:

add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_wlan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_wlan2 check-gateway=ping

Of course names and addresses are different in my case!
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Please help with mikrotik PCC

Mon Oct 25, 2010 3:15 pm

Post the configuration you're trying to use. What is on the wiki works just fine, so you're adapting it wrong somehow. Also post a network diagram, and how you're determining that it isn't working.
 
stefot0
just joined
Posts: 7
Joined: Wed Mar 25, 2009 9:47 pm
Location: Bulgaria

Re: Please help with mikrotik PCC

Mon Oct 25, 2010 4:27 pm

OK!
You do not have the required permissions to view the files attached to this post.
Last edited by stefot0 on Wed Jan 05, 2011 4:23 pm, edited 1 time in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Please help with mikrotik PCC

Mon Oct 25, 2010 4:54 pm

Please do a text export of the relevant sections instead. Not only is it easier to read, that screenshot also doesn't show all the relevant columns (such as connection marks applied), making it impossible to definitively tell where things are wrong.
 
stefot0
just joined
Posts: 7
Joined: Wed Mar 25, 2009 9:47 pm
Location: Bulgaria

Re: Please help with mikrotik PCC

Wed Oct 27, 2010 2:21 pm

Somebody, please export working PCC configuration!
 
alphahawk
Member Candidate
Member Candidate
Posts: 101
Joined: Fri Mar 28, 2008 6:40 pm

Re: Please help with mikrotik PCC

Wed Oct 27, 2010 6:29 pm

Somebody, please export working PCC configuration!

http://wiki.mikrotik.com/wiki/Manual:PCC#Example

Is a working example. You must adapt it to what you are doing. From what I can see in your images at the very least your routes are not setup correctly.

Also We need to see a text export of your mangle rules and possibly nat rules to help you.

Thanks
Alphahawk
 
proggams2
Member Candidate
Member Candidate
Posts: 140
Joined: Wed Mar 14, 2007 10:15 pm

Re: Please help with mikrotik PCC

Wed Oct 27, 2010 9:11 pm

me too , the second gateway is colored in blue, knowing that i cloned the same configuration as the wiki
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Please help with mikrotik PCC

Thu Oct 28, 2010 12:22 am

the second gateway is colored in blue
if it's about 'main' table, then it should be blue (inactive)
 
stefot0
just joined
Posts: 7
Joined: Wed Mar 25, 2009 9:47 pm
Location: Bulgaria

Re: Please help with mikrotik PCC

Wed Jan 05, 2011 4:22 pm

OK!
 
WirelessRudy
Forum Guru
Forum Guru
Posts: 3119
Joined: Tue Aug 08, 2006 5:54 pm
Location: Spain

Re: Please help with mikrotik PCC

Thu Jan 06, 2011 7:11 pm

The wiki example works fine but imho is not mentioning one important item: route rules setting.

With "src-address=0.0.0.0/0 dst-address=0.0.0.0/0 action=lookup table=main" set only all traffic goes to the active (highest distance) default route.

You need to add before (above) following rules:
add action=lookup comment="" disabled=no routing-mark=to_wlan1 table=to_wlan1
add action=lookup comment="" disabled=no routing-mark=to_wlan2 table=to_wlan2
add action=lookup comment="" disabled=no routing-mark=to_wlan3 table=to_wlan3

Only now traffic goes to the policy routes... (I switch these rules off >>> all traffic to my default route, even that PCC is still assiging route marks to traffic. I switch them back on >>> traffic go to the gateway belonging to each routing mark.
 
WirelessRudy
Forum Guru
Forum Guru
Posts: 3119
Joined: Tue Aug 08, 2006 5:54 pm
Location: Spain

Re: Please help with mikrotik PCC

Thu Jan 06, 2011 9:49 pm