Community discussions

MikroTik App
 
lordamd
just joined
Topic Author
Posts: 5
Joined: Thu Jul 29, 2010 9:37 pm

How to connect and routing 2 subnets and sharing internet???

Thu Jul 29, 2010 10:29 pm

I need to conect 2 networks and they host must see and sharing files an printers, including domain controler. The secondary network must be provide internet to hosts through primary network.

Example:

Domain: AXES
Isa Server IP: 192.168.2.1 (gateway)
Domain Controler, DHCP Server and DNS Server IP: 192.168.2.34
Host A IP: 192.168.2.40
Host B IP: 192.168.85.100
Mikrotik: Ether 1 IP: 192.168.85.51
Ether 2 IP: 192.168.2.254

The host A must be see entire 192.168.85.0 network and can navigate across the web, msn, outlook and sharing files, printers, and must belong to AXES domain The host B must be see entire 192.168.2.0 network and can navigate across the web, msn, outlook and sharing files, printers, and must belong to same domain to host A (AXES)
Image
 
gzohop
newbie
Posts: 39
Joined: Sat May 29, 2010 10:54 pm

Re: How to connect and routing 2 subnets and sharing interne

Mon Aug 02, 2010 1:31 pm

Set up DHCP server on mikrotik for network 192.168.85.0 and make mikrotik the default route for host B etc, set default route on mikrotik too your gateway, this will give access to the A network for B hosts and will give them internet access.
On the A network you can either set default route to mikrotik this will give them access to B network and internet through mikrotik, or set a static route on the gateway to the B network through mikrotik.
I can't tell anything about windows domains but if there will be IP connectivity between networks there should be no problems with setting it up.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to connect and routing 2 subnets and sharing interne

Mon Aug 02, 2010 4:02 pm

As long as hosts on both networks are given DNS servers on the domain the domain will just work.
 
lordamd
just joined
Topic Author
Posts: 5
Joined: Thu Jul 29, 2010 9:37 pm

Re: How to connect and routing 2 subnets and sharing interne

Tue Aug 03, 2010 7:04 pm

I'm sorry
I tried to configure but has not worked. Or don't understand how.
Mikrotik has 2 interfaces:
Ether 1 ip: 192.168.2.36 connected to network 192.168.2.0 and gateway to internet 192.168.2.1
Ehter 2 ip: 192.168.85.1 connected to network 192.168.85.0 this ip should be the gateway to network 192.168.2.0 and internet for the 192.168.85.0 network
can someone give me the command lines to configure this mikrotik?
Thanks to everyone for help...
 
perezcurda
just joined
Posts: 23
Joined: Wed Dec 24, 2008 10:10 pm

Re: How to connect and routing 2 subnets and sharing interne

Wed Aug 04, 2010 3:03 am

Mikrotik Setup:

ip address add address=192.168.2.36 interface=ether1
ip address add address=192.168.85.1 interface=ether2
ip route add dst-address=0.0.0.0/0 gateway=192.168.2.1

Then configure the DHCP in the ether2 I prefer wimbox to do this.

Then in the Isa Server you have to add a static route that say:

dst-address=192.168.85.0/24 gateway=192.168.2.36
 
lordamd
just joined
Topic Author
Posts: 5
Joined: Thu Jul 29, 2010 9:37 pm

Re: How to connect and routing 2 subnets and sharing interne

Wed Aug 04, 2010 11:08 pm

Amigo perezcurda.
Lo he probado asi y sigue sin hacer el ruteo entre ambas redes. He probado hacer ping desde el mikrotik y en la interfaz ether1 la cual tiene la ip 192.168.2.36 tengo ping al Domain controler (el isa server no me da ping), incluso al google (haciendo ping a www.google.com) pero desde la interfaz ether2 la cual tiene la ip 192.168.85.1 no y cada 5 o 6 pings me dice "host unreachable". Si lo hago por ARP si funciona.
Desde el Domain controler tengo ping a 192.168.2.36 pero a 192.168.85.1 no. Evidentemente alguna configuración me falta realizar en el mikrotik.
El Isa server ya tiene un ruteo a la red 192.168.85.0
¿Que puede ser? Debería configurar el firewall? Ya he probado todo lo que se me ha ocurrido y sigo sin resolver el problema.
Desde ya muchas gracias.
 
perezcurda
just joined
Posts: 23
Joined: Wed Dec 24, 2008 10:10 pm

Re: How to connect and routing 2 subnets and sharing interne

Fri Aug 06, 2010 6:33 am

Me parece que el problema puede deberse a configuración en el ISA Server, el cual generalmente es un poco complicado.

A nivel de routing no hay mas que hacer, el gateway del MK es el ISA server el cual hace de firewall y te lleva a internet, y ademas es el gateway del network 85.0/24

El gateway del domain controler debe ser el isa server. Este va al isa server preguntandole como llegar al segmento .85/24 y como creaste la ruta estática, este le dice: el gateway para llegar a ese network es el 192.168.2.36 (MK).

No soy muy experto con ISA server pero si te puedo decir que algunos compañeros les ha dado un poco de trabajo este tipo de setup.

Asegúrate de que ambos network estén agregados en el ISA asegúrate de que la ruta estática este bien creada.

No hace falta que configures firewall ya que esto lo hace el ISA server. (eso si, tienes que natear ambos segmentos en el ISA).

the domain controller can ping to 192.168.85.1?
 
lordamd
just joined
Topic Author
Posts: 5
Joined: Thu Jul 29, 2010 9:37 pm

Re: How to connect and routing 2 subnets and sharing interne

Mon Aug 09, 2010 11:58 pm

Me parece que el problema puede deberse a configuración en el ISA Server, el cual generalmente es un poco complicado.

A nivel de routing no hay mas que hacer, el gateway del MK es el ISA server el cual hace de firewall y te lleva a internet, y ademas es el gateway del network 85.0/24

El gateway del domain controler debe ser el isa server. Este va al isa server preguntandole como llegar al segmento .85/24 y como creaste la ruta estática, este le dice: el gateway para llegar a ese network es el 192.168.2.36 (MK).

No soy muy experto con ISA server pero si te puedo decir que algunos compañeros les ha dado un poco de trabajo este tipo de setup.

Asegúrate de que ambos network estén agregados en el ISA asegúrate de que la ruta estática este bien creada.

No hace falta que configures firewall ya que esto lo hace el ISA server. (eso si, tienes que natear ambos segmentos en el ISA).

the domain controller can ping to 192.168.85.1?
Tienes razon. Con respecto al firewall del mikrotik en realidad me referia a que tal vez este cierre todo por defecto pues no es solo el problema con el internet. En el ISA Server yo ya he creado una ruteo con la red 192.168.85.0 y comprobe que el Domain Controler tenga el gateway al ISA y eso estaba correcto. aún así, no puedo enlazar las redes... Ya no se mas que probar :(. Pensé que sería mas facil realizar un ruteo entre redes con el mikrotik pero se me ha complicado...
 
lordamd
just joined
Topic Author
Posts: 5
Joined: Thu Jul 29, 2010 9:37 pm

Re: How to connect and routing 2 subnets and sharing interne

Mon Aug 23, 2010 4:18 pm

Finally... Can anybody tell me how configure my mikrotik with this topology? I was tried everything but didn't work. My ISA Server route the 192.168.85.0 network to 192.168.2.0.
Please help!!! :cry:
 
charlie2203
just joined
Posts: 1
Joined: Sat Aug 08, 2020 1:45 am

Re: How to connect and routing 2 subnets and sharing internet???

Sat Aug 08, 2020 1:48 am

Hi, Did you find the answer for this case? I have the same problem and I don't know the way to solve it.

Who is online

Users browsing this forum: wirelesslywired and 12 guests