Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

connect between 2 networks on the same router

Wed Nov 05, 2014 9:07 pm

Hello
I'm using RB 411U
all I have done is this
Wlan IP: 10.0.0.254/24 - config as AP 802.11 20Mhz - simple WiFi configuration
Ehter1 IP: 192.168.1.254/24

now I have connected:
1.Computer A - connect to the LAN address - 192.168.1.10/24
2.Computer B - connect to the Wlan with address - 10.0.0.10/24

I want to be able to make the 2 computers "talk"

what I need to do more?
add rules in the firewall?
Thanks ,
 
SystemErrorMessage
Member
Member
Posts: 390
Joined: Sat Dec 22, 2012 9:04 pm

Re: connect between 2 networks on the same router

Wed Nov 05, 2014 9:30 pm

This is the most basic question of L3 networking and double posting. Set up NAT between them.
 
mrphreak
newbie
Posts: 38
Joined: Tue Jan 24, 2012 11:37 pm

Re: connect between 2 networks on the same router

Wed Nov 05, 2014 11:57 pm

If the RB411U is the default gateway for both devices you shouldn't need to do anything, it should route between them unless you have any firewall rules to prevent it.
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: connect between 2 networks on the same router

Thu Nov 06, 2014 10:59 am

can you show me what I need to do in the firewall nat?
which rules to add?
I have found this WiKi
http://wiki.mikrotik.com/wiki/NAT_Tutorial
and try to do as told , but still doesn't work

this is what I have now:
#
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no frequency=auto \
    l2mtu=2290 mode=ap-bridge ssid=Test wireless-protocol=802.11 wmm-support=\
    enabled
/ip address
add address=10.0.0.1/24 interface=ether1 network=10.0.0.0
add address=192.168.1.1/24 interface=wlan1 network=192.168.1.0
/ip firewall nat
add chain=srcnat dst-address=192.168.1.0/24 src-address=10.0.0.0/24 \
    to-addresses=192.168.1.0/24
add chain=dstnat dst-address=10.0.0.0/24 src-address=192.168.1.0/24 \
    to-addresses=10.0.0.1

I don't have ping between computer connected to Wlan and computer connected to Ether1
also I don't have ping from computer connected on Ether1 to 192.168.1.1

I'm pretty sure this is en easy and stupid question - so I will happy to know this

Thanks ,


Thank ,
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: connect between 2 networks on the same router

Thu Nov 06, 2014 2:52 pm

If the RB411U is the default gateway for both devices you shouldn't need to do anything, it should route between them unless you have any firewall rules to prevent it.
This is correct. No need for nat.
 
mrphreak
newbie
Posts: 38
Joined: Tue Jan 24, 2012 11:37 pm

Re: connect between 2 networks on the same router

Thu Nov 06, 2014 9:26 pm

Personally I wouldn't use NAT.

Are the computers using the Mikrotik as their default gateway??

Can you post up the whole config of the unit??
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: connect between 2 networks on the same router

Sun Nov 09, 2014 1:37 pm

I have found my problem
my computer was connected to an external switch and firewall - this why I didn't able to "talk" this 2 networks\computer.
after I have connected the computer just to the router it works

so my mistake ,
now it's work
Thanks ,

Who is online

Users browsing this forum: sindy and 41 guests