I just purchased an RB1200
I have two WANs, one dedicated to VoIP (static IP 41.100.1.2) , the other to Internet (static IP 196.45.87.2). Both these IP’s were give to me by the relevant providers and told me to send the voip/internet to those IPs.
Now I have a computer (actually a server) which receives Lan connections for VoIP and Internet. The server must connect to the RB1200, and send VoIP to the voip provider to the IP mentioned and Internet to the ISP to the IP mentioned.
How do I setup this whole thing?
PS. I have an RB1200 because I have 8 other servers connecting to it, also sending the VoIP and Internet to the relevant providers.
You need to find some way of matching your VOIP traffic. If you can send VOIP traffic from a unique IP on your server like 192.168.1.200 then you can set the MT to route all traffic from that IP out the VOIP gateway.
Once you have a reliable way to tag what is VOIP and what is data then you send it out properly.
The clients gateways will look for IP 41.100.1.2, so if the RB1200 receives any data destined for IP 41.100.1.2, it must route it to my voip server. and any other IP addresses, it must route it to IP 196.45.87.2.
How do I set this up?
Remember also that all VoIP packets are on port 5060.
Will your server have a private IP that is NATed by the MT or will you have Public IP on the server?
this is something was hoping you would suggest. I need the public to get access to the server, so how/what do i do it?
Do you have any way of isolating all parts of the VoIP traffic from the server to come from a different IP then the data traffic from your server?
no, all traffic comes on one lan
After re-reading your second post the easy answer is to add a static route in the MT for anything destined for 41.100.1.2.
Example.
/ip route
add dst-address=0.0.0.0/0 gateway=
add dst-address=41.100.1.2 gateway=
how can i do hte above in Winbox GUI? i’m not too good with command lines.
The clients links to the datacenter via leased line. he sends his voip and internet data packets to the RB1200. The RB 1200 must recognize the IP’s required and channel accordingly to the relevant ports.
How do I setup this facility?
From Winbox how do i set it up?
PS. I need to access the router rb1200 from the public internet too for programming.
The cleanest thing would be to use voice VLANs. Most VoIP phones support this. Run a trunk back to the datacenter and have one data VLAN interface on the RB1200, and one voice VLAN interface. Your diagram shows the link to be layer 2, so that will work. Then just mark packets with routing marks if they come into the voice VLAN interface, and have a route out to the VoIP server based on those marks.
then the winbox steps are to click on the interface button, select the VLAN tab, click the + button to add, and to set the Name field to “test”, the VLAN ID field to “10”, and the Interface drop down to “ether1”.
The manual doesn’t usually list winbox steps because they are so easily translated from the far more readable CLI steps given.
ok, so basically what you’re saying is that i need to create 2x vlans in routerboard.
one for data and one for voip.
then when the clients connection comes to the router, all ip’s requested for voip will be routed to the voip vlan and the rest to the data vlan?
say i receive the clients data in port 5, how do i setup port 5 in winbox?
No. I’m saying set up two VLANs on the switch the phones and computers connect to. Then configure the phones to pass data from connected computers to the computer VLAN, and voice data to the voice VLAN. Then the traffic comes into the RB1200 via two distinct VLAN interfaces and you can easily identify what traffic is VoIP and what traffic is Internet data based on what interface a packet entered the router through.