automatic routing to 2 networks

mountain_lion

Well-Known Member
Joined
May 15, 2006
Messages
383
Until recently I used a Mikrotik routerboard 133C to connect to the internet via a WISP.
The Mikrotik also provided other nice features e.g. balancing internet traffic for the hosts on my home network, provided DNS cache, DHCP etc.

I have now switched to ADSL and use a Netgear DGN2000 router for this connection.

I have good signal from the Stellenbosch Community Network (SCN) and want to to put the Mikrotik to use again for this connection.

Now I need to decide on a network/routing setup allowing my home network to connect to both networks. Traffic intended for destinations reachable via SCN should automaticly be routed that way and the rest over ADSL to the internet. Perhaps some of the other nice Mikrotik features can also be used on my home network.

Edit: I want to be able to use the DGN2000 as wireless access point as well.

There are a few ways of doing this, but what is best?
How would you do it?
Note that the 133C only has one ethernet port.

Suggestions appreciated.
 
Last edited:

mountain_lion

Well-Known Member
Joined
May 15, 2006
Messages
383
The RB750 could work, but I will need a 5GHz radio too if I get rid of the 133C. At present the 133C with its radio card is mounted on my roof in an enclosure next to the antenna.

I will consider upgrading later.
For now I just want to make do with what I have got. It can be done.
Suggestions?
 

daffy

Expert Member
Joined
Jun 24, 2004
Messages
1,134
All you need, is to know the subnets that the SCN uses.

On your ADSL Router, you add a route for those subnets to go to the Mikrotik.
Mikrotik must have an IP in the LAN range of your ADSL Router.
 

wetkit

Expert Member
Joined
Oct 27, 2003
Messages
1,126
Mmmn, I would rather use the Mickrotik to do everything. One lan pert is fine.
Then use the ADSL in bridge mode.
There is loads of wuggers that have similar set-ups.
As Daffy said, the most important thing is to know the SCN subnets.
And a RB133C is still fine. Drake2007 is just looking for a very cheap RB :/

P.S. What services does the SCN offer. Is there any sites with more information?
 

mountain_lion

Well-Known Member
Joined
May 15, 2006
Messages
383
Thanks for the replies.
Yes, I want to use the Mikrotik to do as much as possible.

At present I have it set up as daffy suggested since this was the quick and easy way.
However this renders most of the functionality of the Mikrotik only available to the SCN traffic.

When the Mikrotik was my only connection to the internet (via WISP) I used queues to ensure equal internet bandwidth sharing between hosts.
Will be nice to do this again for ADSL and SCN traffic. Just have to figure out how.

SCN is a joint project between Stellenbosch University and Stellenbosch Municipality.
At present it is mostly used by students and staff of the University to access services on the University network.
http://www.scn.za.net/
 

daffy

Expert Member
Joined
Jun 24, 2004
Messages
1,134
Put the Netgear in bridged mode. Dial up the PPPoE (pppoe-client) from the Mikrotik. Set it to add a default route for the pppoe connection.
Route all the SCN traffic over the wireless.

Configure a DHCP Server on the Mikrotik. Disable the DHCP server on the Netgear.
Make sure the DHCP Server sets your gateway as the Mikrotik.

Voila.
 

mountain_lion

Well-Known Member
Joined
May 15, 2006
Messages
383
Just had a quick look at the Netgear settings. Will fiddle and test tomorrow.

Question:

How do you put the Netgear DGN2000 in bridged mode?
Set "Internet connection requires login" to No?

Edit: I think I found it: On WAN setup page there is a "Enable PPPoE Relay" setting. This sounds like bridge mode.
 
Last edited:

mountain_lion

Well-Known Member
Joined
May 15, 2006
Messages
383
OK, I had a bit of time to fiddle.

DHCP is disabled on the Netgear (ADSL) router.
The Mikrotik is now my DHCP server and default gateway. Also provides DNS cache.
The default route points to the Netgear router with static routes for the SCN subnets.
Seems to be working fine.

I could not see any real advantage in dialling the PPPoE connection from the Mikrotik, so I left it on the Netgear for now.

Would it be possible to enforce equal internet bandwidth sharing between hosts on the private network by dialling the PPPoE from the Mikrotik?
Can't remember exactly what I did, but a year or 2 ago I did figure out how to use the Mikrotik firewall to mark packets and implement queue trees to enforce equal bandwidth sharing, but then all the traffic was flowing through the Mikrotik. With my current set up only the SCN traffic is going through the Mikrotik; so I guess only the SCN traffic can be balanced. Correct?
 
Top