If you want to view combined value for two or more interfaces in single mrtg graph, here is the simple way to go…
[thanks to MRTG which supports simple math formulas as well 🙂 ]
Example:
On your router you have two wan interfaces (You’re not limited to just two) with the names of WAN1 and WAN2 (in load balancing mode or whatever) and you want to display single graph which should displays combined value for both interfaces so that you can have an idea how much WAN bandwidth is consuming (good to make average historical based graphs) , use following cfg
# combinedwan.cfg Target[192.168.0.1_combowan]: #WAN1:publicsnmp@192.168.0.1: + #WAN2:publicsnmp@192.168.0.1: MaxBytes[192.168.0.1_combowan]: 12500000 Title[192.168.0.1_combowan]: Traffic Analysis for BOTH DSL WAN Links WAN1+WAN2 -- MikroTik PageTop[192.168.0.1_combowan]: <h1>Traffic Analysis for BOTH DSL WAN Links WAN1+WAN2 -- MikroTik</h1> <div id="sysdetails"> <table> <tr> <td>System:</td> <td>MikroTik Routerboard with Load Balacning</td> </tr> <tr> <td>Maintainer:</td> <td>aacable@hotmail.com</td> </tr> <tr> <td>Description:</td> <td>WAN1 + WAN2 Combined</td> </tr> <tr> <td>ifType:</td> <td>ethernetCsmacd (6)</td> </tr> <tr> <td>ifName:</td> <td>WAN1+WAN2</td> </tr> <tr> <td>Max Speed:</td> <td>100 Mbits/s</td> </tr> <tr> <td>Ip: DYNAMIC</td> <td>No Ip (No DNS name)</td> </tr> </table> </div>
Note: Change the Interfaces names, SNMP string and IP according to your network setup. You can get interface numbers/names from the individual mrtg.cfg / router.cfg entries. cfgmaker can help you in this regard example
cfgmaker snmp@192.168.0.1 > router.cfg
Happy Graphing 🙂
Regard’s
Syed Jahanzaib
Awesome!
LikeLike
Comment by Rehan Igneous — April 1, 2015 @ 10:05 AM
AOA Syed Jahanzaib Bahi kesay hain ap Allah ap ko humesha khush rakhe bahi mujhe 1 cheez poochni thi k mikrotik mein menay pppoe server banaya howa hai or main chahta hoo k jo user expire ho jaye
agar wo bar bar try kar to us ki request server par na aye asal mein hota yeh hai k jo b user expire ho jata hai us k pass wifi router laga hota hai to wo auto retry karta rehta hai connecting ki to mikrotik mein
logs b generate hote rehte hain itne hojate hain k bohat ziyada to is k koe hal btayein please k jis user ki id valid ho sirf wohi use kar sake pppoe server…. mujhe intazar rahe ga ap k reply ka please….
Regards
Jalil Abbas
LikeLike
Comment by Jalil Abbas — April 9, 2015 @ 6:19 AM
THERE IS NO AUTOMATED SOLUTION FOR IT, HOWEVER IF ITS REALLY REQUIRED TO , YOU CAN DO IT MANUAL BY FOLLOWING.
https://aacable.wordpress.com/2013/11/23/fun-with-mikrotik-bridge-series1-filter-pppoe-requests/
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 11, 2015 @ 2:58 PM
Hi,
i need a little information. its about redirecting a user’s all web traffic (http) to a remote web page (on internet).
do you have any idea. how to do that?…..
waiting for your reply.
LikeLike
Comment by rana adnan — April 9, 2015 @ 10:01 PM
you mean you want to deny user traffic and show him a page on internet ? or describe in details about your requirements.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 14, 2015 @ 12:33 PM
Hello Brother Syed,
This is Nahid From Bangladesh, Need help from you about Load Balancing problem, I merged to ISP Connection together (WAN1 & WAN2), Where Internet Packet is working together no problem, Also Youtube Packets passing together in both WAN port, But problem is that both ISP have there own FTP server, Online TV, & Movie Server, After merging bandwidth I cant access WAN2 ISPs FTP sites, its show :
“Forbidden
You don’t have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.””
IF i disable WAN1 for few time then WAN2 FTP sites working fine, I tried “Mark Route” with Dst.Address list ip to pass with Only WAN2. In this process its also not working, If i simple disable WAN1 then again WAN2 FTP sites start work, But i need both ISP s FTP site for my users, Please brother help me how to solve this issue, waiting for your response its urgent,
LikeLike
Comment by Nahidul Islam — April 10, 2015 @ 3:16 PM
@nahid,
in your mangle section, put at the top this:
add action=accept chain=prerouting disabled=no dst-address=1.1.1.1 (Replace this ip with Your ISP Sharing Server IP Address)
With the command above you will exclude traffic designated for that address from the PCC, it will just pass through the mangle without adding and mark…
and then put static route for that ip to go through WAN1:
ip route add dst-address=1.1.1.1/32 gateway=x.x.x.x WAN1
check n let me know
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 14, 2015 @ 11:57 AM
Hello Brother Syed,
Please give some example for configuration
LikeLike
Comment by Nahidul Islam — April 12, 2015 @ 3:49 PM
whole configuration is file is in this post. I guess you have not read it fully.,
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 14, 2015 @ 11:47 AM
Thanks Brother, My problem is solved, That FTP Servers ip was include in WAN1 BGP Routes ip address, I found it from Route list, then exclude it from BGP route. Now its working fine, Thanks for your help,
Jajak-Allah-Khair
Your Little Brother
Nahid
https://www.facebook.com/gsb.nahid
https://www.facebook.com/gsbworld.bd
LikeLike
Comment by Nahidul Islam — May 1, 2015 @ 6:37 PM
Hi, Syed, thanks for sharing your knowledge with us. Could you please do guide for multicast in Mikrotik? That question is very often asked at many forums but with very little usefull answers.
LikeLike
Comment by Marko — May 12, 2015 @ 1:24 AM
Hi, Syed, I had error “”. I had change the WAN1 & WAN2 according to my interface name. Any suggestion?
LikeLike
Comment by Iwan Ard — August 23, 2016 @ 4:32 PM