Community discussions

MikroTik App
 
User avatar
Chofex
Member Candidate
Member Candidate
Topic Author
Posts: 141
Joined: Mon Mar 27, 2006 7:03 am
Location: San Rafael, Mendoza, Argentina

Separate bandwidth control

Mon Sep 17, 2007 6:50 am

I have a WISP with 50 clients that get their Internet from one connection. I’ve just bridged ether1 to wlan1 in central RB532, and each client (RB112) routes private lan on ether1 with default gateway through wlan1. With a simple queue at the client side I limit bandwidth.
But now I have 2 clients that need to see each other (not directly, but through central AP), so I made an EoIP tunnel from one client to the other, so their LANs on both sides become bridged. The problem is I want to assign 2Mbps for their VPN, and 256Kbps for Internet.
How do I configure RB112 to achive that? (Remember: Central RB532 is a “dummy” bridge, all configuration is made in each client)

Here are main parts of Client's 1 RB112 setup. Client2 is almost identical, only IPs change.
/ interface wireless 
set wlan1 mode=station ssid="PyME" disabled=no 

/ ip address 
add address=10.11.11.1/24 interface=wlan1 disabled=no 
add address=192.168.1.1/24 interface=ether1 disabled=no 
/ ip route 
add dst-address=0.0.0.0/0 gateway=10.11.11.254 disabled=no 
/ ip firewall nat 
add chain=srcnat out-interface=wlan1 action=masquerade disabled=no 

/ queue simple 
add name="256K" dst-address=0.0.0.0/0 interface=all parent=none \
    direction=both priority=8 queue=default-small/default-small limit-at=0/0 \
    max-limit=256K total-queue=default-small disabled=no

/ interface eoip 
add name="eoip-tunnel1" mtu=1500 mac-address=00:00:5E:80:00:01 arp=enabled \
    remote-address=10.11.11.2 tunnel-id=0 comment="" disabled=no

/ interface bridge
add name="bridge1" mtu=1500 arp=enabled protocol-mode=rstp   disabled=no 
/ interface bridge port 
add interface=ether1 bridge=bridge1 disabled=no 
add interface=eoip-tunnel1 bridge=bridge1 disabled=no
 
User avatar
Chofex
Member Candidate
Member Candidate
Topic Author
Posts: 141
Joined: Mon Mar 27, 2006 7:03 am
Location: San Rafael, Mendoza, Argentina

Re: Separate bandwidth control

Mon Sep 17, 2007 7:13 am

Of course, if someone has a better solution than EoIP, please let me know.
I promised the customer he would connect both LANs a if he had a huge switch, from one side to the other... and routing can't give him that... I guess a bridge is the right answer.
Remember there are many other clients, they shouldn't be able to see inside this particular two...
 
User avatar
Chofex
Member Candidate
Member Candidate
Topic Author
Posts: 141
Joined: Mon Mar 27, 2006 7:03 am
Location: San Rafael, Mendoza, Argentina

Re: Separate bandwidth control

Mon Sep 17, 2007 7:34 am

Can I bridge them using VLAN?
What steps should I follow?
How do I give 2Mbps to the traffic between their LANs, and only 256Kps for Internet?
 
valens
Trainer
Trainer
Posts: 244
Joined: Tue Jun 01, 2004 5:42 pm
Location: INDONESIA
Contact:

Re: Separate bandwidth control

Mon Sep 17, 2007 9:36 am

If you do the traffic limit on the AP, you make different queue for each traffic, using in-out-interface as parameters.
 
User avatar
MarcosT
just joined
Posts: 1
Joined: Mon Sep 17, 2007 3:48 pm

Re: Separate bandwidth control

Mon Sep 17, 2007 4:12 pm

Estimadisimo Amigo Menduco, como soy Argentino te contesto en el idioma de Cristo... Mira primero que todo tenes que contemplar la sumatoria de ancho de banda en espectro que tenes disponible para tus clientes que esten conectado a ese panel o celda o omnidireccional, ya qeu le queres dar 2 megas para su red privada entre los dos puntos pasando por el AP y los 256k de internet... si esto lo tienes contemplado la solucion es una vlan como te habia comentado antes, ya que todo esta sobre tu misma lan... Como son los pasos te lo explico por el msn eso si... si te conectas cabron...
Saludos...

Marcos

PD: esto es para que no se olviden que estamos en el mundial peleando por la punta.. no todo es fulbol en este pais.
You do not have the required permissions to view the files attached to this post.
 
User avatar
Chofex
Member Candidate
Member Candidate
Topic Author
Posts: 141
Joined: Mon Mar 27, 2006 7:03 am
Location: San Rafael, Mendoza, Argentina

Re: Separate bandwidth control

Mon Sep 17, 2007 5:09 pm

valens: thanks for your post, but no, traffic must be done in the client RB, I can't change anything in the AP.

Marquitos: muchísimas gracias por tu respuesta, te veo más tarde por el MSN.

Who is online

Users browsing this forum: mirk and 191 guests