Community discussions

MikroTik App
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Problem with 6.** version

Tue Aug 09, 2022 5:41 pm

Hello everyone,
I have this architecture that I m posting. I want to configure the Mikrotik to have a dhcp wlan that permits me to ping my top client with static configuration. I have set this configuration:
/interface bridge
add name=bridge
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
disabled=no frequency=auto mode=ap-bridge ssid=MikroTik-TRY \
wireless-protocol=802.11
/interface list
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=\
dynamic-keys supplicant-identity=MikroTik wpa2-pre-shared-key=Try123
/ip pool
add name=dhcp ranges=192.168.1.10-192.168.1.41
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge ingress-filtering=yes interface=wlan1
add bridge=bridge ingress-filtering=yes interface=ether1
/interface list member
add interface=bridge list=LAN
/ip address
add address=192.168.1.1/24 interface=ether1 network=192.168.1.0
add address=192.168.1.2/24 interface=wlan1 network=192.168.1.0
/ip dhcp-server network
add address=192.168.1.0/24
/ip dns
set allow-remote-requests=yes
/system routerboard settings
set silent-boot=no
When I try to apply it to a Mikrotik with 7.* version it works, while with 6.* it doesn t: it sets the wlan1 in station mode and delete my dhcp server configuration.
Any advice?
Thank you everyone
You do not have the required permissions to view the files attached to this post.
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Re: Problem with 6.** version

Thu Aug 11, 2022 2:15 pm

Any suggest?
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2978
Joined: Mon Apr 08, 2019 1:16 am

Re: Problem with 6.** version

Thu Aug 11, 2022 2:36 pm

Almost there.

There should not be any difference between ROS 6 and ROS7 in this simple network.

But ....


- there are no VLAN seen in your config. So remove the ingress-filtering on the bridge ports.
- a WLAN in station mode is a client device to an other AP. You have clients to the mAP, so the WLAN should be in "AP-bridge" operation mode, as your config printout is saying.

Just wonder: there might be a requirement that your pre-shared key is minimum 8 characters long, "Try123" is too short.
(https://www.skillset.com/questions/what ... characters)
 
afuchs
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Wed Jul 03, 2019 11:10 am

Re: Problem with 6.** version

Thu Aug 11, 2022 2:55 pm

Mmm...

are you sure your Client answer ping requests?
Windows drop ping requests per default untill you allow it in the (Windows Defenser) Firewall (https://kb.iu.edu/d/aopy).
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Re: Problem with 6.** version

Thu Aug 11, 2022 3:57 pm

Thank you both for your help
Almost there.

There should not be any difference between ROS 6 and ROS7 in this simple network.

But ....


- there are no VLAN seen in your config. So remove the ingress-filtering on the bridge ports.
- a WLAN in station mode is a client device to an other AP. You have clients to the mAP, so the WLAN should be in "AP-bridge" operation mode, as your config printout is saying.

Just wonder: there might be a requirement that your pre-shared key is minimum 8 characters long, "Try123" is too short.
(https://www.skillset.com/questions/what ... characters)
I set ingress-filtering=no and now I can see the wifi (mikrotik led blinks now and I can see the wifi network on my pc), but the dhcp doesn t work (I post you a screen)

PS: I changed the wifi key with the right requirement
Mmm...

are you sure your Client answer ping requests?
Windows drop ping requests per default untill you allow it in the (Windows Defenser) Firewall (https://kb.iu.edu/d/aopy).
Yes I don t have ping problems, the same mikrotik with 7* version it works perfectly
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: Problem with 6.** version

Thu Aug 11, 2022 4:25 pm

You only need single IP address from subnet 192.168.1.0/24 and that one should be on bridge interface.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Problem with 6.** version

Thu Aug 11, 2022 4:44 pm

Your architecture is not clear, and where is the internet?
Do you have one or two LAN subnets?

The config is as confused as your diagram
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Re: Problem with 6.** version

Thu Aug 11, 2022 4:47 pm

You only need single IP address from subnet 192.168.1.0/24 and that one should be on bridge interface.
Done, now I just connected my iPhone to wifi, it assigns me 192.168.1.254 (I can see it in "leases" tab too) but i can t ping it:
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Problem with 6.** version

Thu Aug 11, 2022 5:10 pm

Why did you change your network and config............
Did your requirements change or are you blindly listening to advice..................

Please provide
a. a proper network diagram showing the equipment involved, the WAN connection and the ports with conceptually which subnets/vlans should be traversing.
b. latest config
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Re: Problem with 6.** version

Thu Aug 11, 2022 5:25 pm

Your architecture is not clear, and where is the internet?
Do you have one or two LAN subnets?

The config is as confused as your diagram
I m sorry I didn t see your reply.
I don t have internet, I d like have a wifi network where i can connect with multiple devices (so i used dhcp server) and be able to ping and use my static device (the top client you can see in my first diagram, with static ip 192.168.1.42). Idk why configuration i set (in my first post) works in 7* version and not in 6*.
I just have a constraint, to not set the gateway in the dhcp server, so when i m connected to wifi with my smartphone, i can use my mobile data to have internet (viewtopic.php?p=937604#p937604)
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Re: Problem with 6.** version

Thu Aug 11, 2022 5:33 pm

Why did you change your network and config............
Did your requirements change or are you blindly listening to advice..................

Please provide
a. a proper network diagram showing the equipment involved, the WAN connection and the ports with conceptually which subnets/vlans should be traversing.
b. latest config
I have a static device X:
- 192.168.1.42
- 255.255.255.0

I want connect X to mikrotik via ether1, and have a wifi where i can connect and navigate to X via its ip.
As told in the latest topic, i don t want to add a gateway to my dhcp server to be able to use my mobile data while i m connected to wifi.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Problem with 6.** version

Thu Aug 11, 2022 6:09 pm

Thanks the contsraint noted is helpful to be aware of.
Why not just turn wifi off when you want to use data ??
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Re: Problem with 6.** version

Thu Aug 11, 2022 6:24 pm

Thanks the contsraint noted is helpful to be aware of.
Why not just turn wifi off when you want to use data ??
Because i have to send data from internet in real time while i m connected to wifi network. However if i reset my mikrotik and send this configuration:
:local count 0;
:while ([/interface ethernet find] = "") do={
:if ($count = 30) do={
:log warning "DefConf: Unable to find ethernet interfaces";
/quit;
}
:delay 1s; :set count ($count +1);
};

:local count 0;
:while ([/interface wireless print count-only] < 1) do={
:set count ($count +1);
:if ($count = 40) do={
:log warning "DefConf: Unable to find wireless interface(s)";
/ip address add address=192.168.88.1/24 interface=ether1 comment="defconf";
/quit
}
:delay 1s;
};

#-------------------------------------------------------------------------------

/interface bridge
add name=bridge
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
disabled=no frequency=auto mode=ap-bridge ssid=MikroTik-6 \
wireless-protocol=802.11
/interface list
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=\
dynamic-keys supplicant-identity=MikroTik wpa2-pre-shared-key=Try123456789
/ip pool
add name=dhcp ranges=192.168.1.10-192.168.1.41
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge ingress-filtering=no interface=wlan1
add bridge=bridge ingress-filtering=no interface=ether1
/interface list member
add interface=bridge list=LAN
/ip address
add address=192.168.1.1/24 interface=bridge network=192.168.1.0
/ip dhcp-server network
add address=192.168.1.0/24
/ip dns
set allow-remote-requests=yes
/system routerboard settings
set silent-boot=no
It freezes all:
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Problem with 6.** version

Thu Aug 11, 2022 6:32 pm

Good information that should have been stated on the first post LOL, but we will get there.
So the internet connection is your IPhone and its connected to the MT network via wifi.
You need to be connected at the same time to the internet and the MT via wifi to pass on real time traffic from LAN device.
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Re: Problem with 6.** version

Thu Aug 11, 2022 7:15 pm

Good information that should have been stated on the first post LOL, but we will get there.
So the internet connection is your IPhone and its connected to the MT network via wifi.
You need to be connected at the same time to the internet and the MT via wifi to pass on real time traffic from LAN device.
Yes, I m open to new configurations, if you have better solution
 
dabodae
just joined
Topic Author
Posts: 16
Joined: Thu May 19, 2022 3:53 pm

Re: Problem with 6.** version

Tue Aug 23, 2022 10:37 am

Someone can help me with this architecture?

Recap:

I have a static device X:
- 192.168.1.42
- 255.255.255.0

I want connect X to mikrotik map lite via ether1, and have a wifi where i can connect and navigate to X via its ip.
Important: i don t want to add a gateway to my dhcp server to be able to use my mobile data (for internet) while i m connected to wifi.
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2978
Joined: Mon Apr 08, 2019 1:16 am

Re: Problem with 6.** version

Tue Aug 23, 2022 11:10 am

Adding gateway will not influence access to 192.168.1.42 from any other 192.168.1.yyy (this is local LAN, not via gateway).

Set WLAN1 in the WAN interface list. Bridge (and all it's ports) are in the LAN interface list.

Who is online

Users browsing this forum: Google [Bot] and 52 guests