Community discussions

MikroTik App
 
bombato
just joined
Topic Author
Posts: 5
Joined: Wed Oct 27, 2010 8:55 pm

different bandwith for lan and wan

Sat Oct 30, 2010 3:32 pm

Hello there,

I interested in different bandwith for lan/wan access. For example i wish same computer have 10/100/1000 bandwith speed for lan access and different bandwidth for wan - internet access for example 1mbps.
Is this posible do with basic queues?!
 
bombato
just joined
Topic Author
Posts: 5
Joined: Wed Oct 27, 2010 8:55 pm

Re: different bandwith for lan and wan

Fri Nov 05, 2010 10:35 am

anyone ?
 
andrescamino
Member Candidate
Member Candidate
Posts: 198
Joined: Wed Aug 19, 2009 7:07 pm
Location: Guayaquil-Ecuador

Re: different bandwith for lan and wan

Fri Nov 05, 2010 10:01 pm

let me get this straight


you want for example to get speed of 2Mbps for your LAN like when you reach a camera that is in you internal LAN, and 512k for any internet connection??

if that is the question...then yes

you just have to mark connection and packets in the mangle...let me know if this is what you want and I can show you some examples
 
bombato
just joined
Topic Author
Posts: 5
Joined: Wed Oct 27, 2010 8:55 pm

Re: different bandwith for lan and wan

Mon Nov 08, 2010 1:46 pm

Yes this is what I want
Waiting for your answer ;)

Thank you in advance
let me get this straight


you want for example to get speed of 2Mbps for your LAN like when you reach a camera that is in you internal LAN, and 512k for any internet connection??

if that is the question...then yes

you just have to mark connection and packets in the mangle...let me know if this is what you want and I can show you some examples
 
proggams2
Member Candidate
Member Candidate
Posts: 140
Joined: Wed Mar 14, 2007 10:15 pm

Re: different bandwith for lan and wan

Mon Nov 08, 2010 3:22 pm

is there any hotspot activated on LAN ?? if yes then this is the trick. because somebody is trying to access something without logging in(using internal bandwidth)
 
andrescamino
Member Candidate
Member Candidate
Posts: 198
Joined: Wed Aug 19, 2009 7:07 pm
Location: Guayaquil-Ecuador

Re: different bandwith for lan and wan

Mon Nov 08, 2010 9:32 pm

Hi bombato,

okay this is what you have to do
let's say that your LAN has the network address of 192.168.1.0/24

what you have to do is to create a mangle rule to mark the connection and packet to this network, and then mark connection and packet for everything that isn't the network, then apply a queue for each one of the packets...this is an example
/ip firewall mangle add chain=prerouting dst-address=192.168.1.0/24 action=mark-connection new-connection-mark=LAN
/ip firewall mangle add chain=prerouting connection-mark=LAN action=mark-packet new-packet-mark=LAN-pack
/ip firewall mangle add chain=prerouting dst-address=!192.168.1.0/24 action=mark-connection new-connection-mark=WAN
/ip firewall mangle add chain=prerouting connection-mark=WAN action=mark-packet new-packet-ark=WAN-pack                

/queue simple add name=Limit-LAN limit-at=1024000/1024000 max-limit=1024000/1024000 packet-marks=LAN-pack 
/queue simple add name=Limit-WAN limit-at=512000/512000 max-limit=512000/512000 packet-marks=WAN-pack   
ok now what this means is that...
first you mark a connection with every connection with destination address of 192.168.1,0/24 and mark it, then take that connection and mark the packets of that connection
second you mark a connection with every connection that has NOT destination address of 192.168.1,0/24 (which means NOT LAN) and mark it, then take that connection and mark the packets of that connection

Then apply a queue for the LAN of 1Mbps and 512kbps for WAN...

if you need any further explanation let me know

regards
 
bombato
just joined
Topic Author
Posts: 5
Joined: Wed Oct 27, 2010 8:55 pm

Re: different bandwith for lan and wan

Tue Nov 09, 2010 1:12 am

exactly what i need
thank you dear friend!!

Who is online

Users browsing this forum: Drean and 42 guests