Page 1 of 1

Three offices and one Internet

Posted: Fri Jun 10, 2011 1:28 am
by BangBang
Hello there,

I am proud owner of 2 Routerboard 1200 and want to connect my 3 offices in one piece using BGP protocol

So, what i have:

Office one:
10.215.100.0 subnet
Office two
10.215.101.0 subnet
Office three
10.215.102.0 subnet (DD-WRT router, a very small site)

ISP gateway in first subnet with 10.215.100.3 IP address

What I need:

1. I need that every PC in every subnet can access all others subnets pc, printers, shares and so on
2. I need that people from all 3 subnets gain access Internet

Could someone do a favor and provide a basic config for this, please?
Cause I spend 2 days reading WIKI and got no answer on my question.

Re: Three offices and one Internet (BGP config needed)

Posted: Fri Jun 10, 2011 6:28 pm
by fewi
BGP is typically a routing protocol used between different autonomous systems (an AS is a cluster of systems under the same administrative control, with the same policy applied to systems within it). What you're describing doesn't sound like you should use BGP at all, and that an IGP like OSPF would be a better fit.

What you're asking is hard to answer specifically because your question is so generic. How do these sites connect? Start with a network diagram that includes all routers with their interfaces and IP addresses, and their links.

Re: Three offices and one Internet (BGP config needed)

Posted: Mon Jun 13, 2011 6:19 am
by BangBang
I solve the problem with static routing and:
/ip firewall mangle 
add chain=prerouting action=mark-routing new-routing-mark=site src-address=10.215.101.0/24 
 
/ip route 
add dst-address=0.0.0.0/0 gateway=10.215.100.3 routing-mark=site