Community discussions

MikroTik App
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Wed Dec 01, 2021 2:14 pm

We use MikroTik RouterBOARD 2011UiAS thanks to his 19" Rack Design
for our technical workshop (without internet connection)
to connect and test IP-Cameras.

We use a PC and his Internet Browser (DHCP) and
IP-Cameras (static IP) and
IP-Joystick Controllers (static IP).


I have attached

on EHTHER 2
a PC
---> DHCP, connected with 192.168.88.253

on EHTHER 3
another PC
---> DHCP, connected with 192.168.88.254

on EHTHER 3
an IP Videocamera with
static IP 192.168.1.188
---> I cannot reach it via PC
---> What do I need to set-up at the 2011UiAS?
 
spynappels
Member Candidate
Member Candidate
Posts: 106
Joined: Mon Oct 25, 2021 12:32 pm
Location: Northern Ireland
Contact:

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Wed Dec 01, 2021 2:29 pm

There are a few things that could be causing problems.

First, are all three interfaces on a bridge? If they are, remove ether3 from the bridge and give it a static IP on the 192.168.1.0/24 subnet, so that the router is aware of that subnet. That should allow the router to route packets between the subnets and you should be able to access the cameras and NVR from your PCs.
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Wed Dec 01, 2021 3:02 pm

are all three interfaces on a bridge?

What do you mean with bridge
(hardware or software setting)?

- All three devices are conneted directly on the EHTHER Ports with 1m CAT cable.
- I have checked all three CAT cables.
- I had reseted 2011UiAS to factory settings, before.
 
spynappels
Member Candidate
Member Candidate
Posts: 106
Joined: Mon Oct 25, 2021 12:32 pm
Location: Northern Ireland
Contact:

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Wed Dec 01, 2021 3:09 pm

If you've reset to factory defaults, then ether1 is probably configured as a WAN port and the rest of the ports are on a bridge.
This bridging is partially done in hardware and partially done in software (depending on your router model) and gives you an approximation of a switch-like functionality across multiple interfaces which in pure router terms would otherwise be on different network segments.

RouterOS devices are not something which you can plug in and use without any consideration of the setup, although your usecase would not have worked with any router which did not use 192.168.1.0/24 as the LAN subnet in any case.

Can you please provide your config, following the syntax in my signature? You enter the command in a terminal window and then download the file this creates from the Files tab in Winbox.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11485
Joined: Thu Mar 03, 2016 10:23 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Wed Dec 01, 2021 5:57 pm

I guess it's not necessary to disband bridge ... simply add IP address from 192.168.1.x subnet to bridge interface and set webcam to use it as default gateway. Different IP subnets don't have to be on different ethernet segments (although they usually are, one of reasons is tgat only one DHCP server can run in single ethernet segment, other IP subnets have to be statically configured).

If you can't change default gateway on web cam, then you have to add NAT rule
/ip firewall nat
add chain=srcnat action=masquerade src-address=192.168.88.0/24 dst-address=192.168.1.0/24
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Wed Dec 01, 2021 7:58 pm

1) add IP address from 192.168.1.x subnet to bridge interface and
2) set webcam to use it as default gateway.

Thanks, where / how can I perform this seetings in the winbox?
(I am not used to enter code via a command line)

Image
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11485
Joined: Thu Mar 03, 2016 10:23 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Wed Dec 01, 2021 8:02 pm

In the left part you have "drop down" sub-tree items. Winbox has same hierarchy as CLI, so start with IP ...
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Fri Dec 03, 2021 2:32 pm

so start with IP ...
Image

Thanks.

Where exactly do I have to enter What?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Fri Dec 03, 2021 9:46 pm

The "Add New" button just above the table seems like good choice. Then put e.g. "192.168.1.1/24" in "Address" field, select "bridge" in "Interface" dropdown, then click "OK" button, and there you go, router has new address. Easy, isn't it?
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Sat Dec 04, 2021 12:52 am

router has new address. Easy, isn't it?

Thanks.

Do I get it right:

- The 2011UiAS Router IP is per default 192.168.88.1

- To let the 2011UiAS Router accept and handle static IP's from other devices (eg. camera 192.168.1.188).
he needs to change its own IP address to the beginning of the range where the static IP is located: 192.168.1.x ?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Sat Dec 04, 2021 2:41 am

Not necessarily, change would mean that also everything else would have to be changed (dhcp, other devices with static addresses), but you can just add another address, so router will have two.
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Sat Dec 04, 2021 12:26 pm

but you can just add another address, so router will have two.

So, it is necessary to add another IP address (as second identity of the 2011UiAS) to the beginning of the range where the static IP of the devices to be connected is located: 192.168.1.x ?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Sat Dec 04, 2021 3:44 pm

If your camera has 192.168.1.188, then the full address with netmask is most likely 192.168.1.188/24, which would mean that camera's subnet contains 192.168.1.<anything>. And camera's default gateway, if it has any, is most likely 192.168.1.1. So "192.168.1.1/24" is good choice as the address you should add. Don't touch anything else. If after that you can access camera from PC, than that's it, happy end. If not, try to add NAT rule posted by @mkx.
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Mon Dec 06, 2021 3:50 pm

is most likely 192.168.1.1. So "192.168.1.1/24" is good choice as the address you should add. Don't touch anything else.
Image

Image

OK like this?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Mon Dec 06, 2021 3:57 pm

I wrote "192.168.1.1/24", you entered "192.168.1.1", which router understands as "192.168.1.1/32", so that's not the same and won't work the same.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19177
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Mon Dec 06, 2021 4:44 pm

Is that why, on the preceding diagram, the network address is showing up as 192.168.88.1 vice the usual 192.168.88.0 ??
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Tue Dec 07, 2021 1:23 pm

I wrote "192.168.1.1/24", you entered "192.168.1.1", which router understands as "192.168.1.1/32", so that's not the same and won't work the same.

I have now entered under
"address"
192.168.1.1/24
Under "Network" is is stated
192.168.1.1

---> is this correct?
(The camera cannot be reached so far).

In the user manual of the camera it says:

camera IP
192.168.1.188

camera net mask
255.255.255.0

camera gateway
192.168.1.1
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Tue Dec 07, 2021 4:11 pm

Don't put anything in "Network", click the arrow to hide the field. Then in list it should show automatically computed 192.168.1.0 as network.
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Thu Dec 09, 2021 2:18 pm

Is it correct like this?

Image

I still cannot reach the camera.
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Thu Dec 09, 2021 2:56 pm

Yes, now it looks right. Can you ping it from router? Tools->Ping, enter 192.168.1.188 in "Ping To" field, click "Start", watch the bottom of page.
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Fri Feb 04, 2022 6:36 pm

Thanks, it works.

But I have huge latecy. :shock:

I I connect a
Zyxel P-660HN Home Router mit WLAN 4-Port- Switch
instead of the MikroTik RouterBOARD 2011UiAS
it works normally / very fast.

How can I find out what is wrong with the setting of the
MikroTik RouterBOARD 2011UiAS ?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Fri Feb 04, 2022 7:04 pm

Please don't take it the wrong way, I don't mean to be rude, but seeing how much it took to add one address, you probably can't.
 
venuslight
just joined
Topic Author
Posts: 17
Joined: Sat Nov 20, 2021 1:49 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Fri Feb 04, 2022 7:38 pm

you probably can't.
Can you help me, then?

I cannot imagine, that adding an IP address will cause a delay.
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Fri Feb 04, 2022 8:06 pm

I'm not sure about that either. I mean, don't get discouraged, describe the problem the best way you can, share as much details as possible, and maybe there's chance you'll succeed. I'm not the only one here, who can help.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19177
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Dynamic and Static IP MikroTik RouterBOARD 2011UiAS

Fri Feb 04, 2022 8:19 pm

Sob next time must link this helper guide. ;-)

viewtopic.php?p=908118#p908118

Who is online

Users browsing this forum: No registered users and 29 guests