Community discussions

MikroTik App
 
BangBang
just joined
Topic Author
Posts: 9
Joined: Fri Jun 10, 2011 1:17 am

Three offices and one Internet

Fri Jun 10, 2011 1:28 am

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.
Last edited by BangBang on Mon Jun 13, 2011 7:48 am, edited 1 time in total.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

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

Fri Jun 10, 2011 6:28 pm

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.
 
BangBang
just joined
Topic Author
Posts: 9
Joined: Fri Jun 10, 2011 1:17 am

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

Mon Jun 13, 2011 6:19 am

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 

Who is online

Users browsing this forum: No registered users and 24 guests