Community discussions

MikroTik App
 
newbiesysadmin
just joined
Topic Author
Posts: 7
Joined: Wed Nov 02, 2022 10:21 pm

no internet access

Mon Nov 04, 2024 8:13 am

Hi

I setup Mikrotik as a WiFi AP and LAN hub in my home network. All the traffic routed through Linux gateway with NAT, 2 laptops and Mikroitik itself have static ip addresses. I managed to configure Mikrotik WiFI and basic network, able to login to Mikrotik with browser from any laptop.
The issue is: Mikrotik can ping my LAN GW, but not 1.1.1.1 and therefore no other internet access. What am I doing wrong? Config attached.
You do not have the required permissions to view the files attached to this post.
 
erlinden
Forum Guru
Forum Guru
Posts: 2627
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: no internet access

Mon Nov 04, 2024 9:16 am

The gateway should be set to the IP address of your router. You might want to consider using DHCP client (on the bridge) that handles correct IP addressing. By using static leases, you can use dedicated IP addresses.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 12980
Joined: Thu Mar 03, 2016 10:23 pm

Re: no internet access

Mon Nov 04, 2024 9:25 am

The gateway should be set to the IP address of your router.
This!

You might want to consider using DHCP client (on the bridge) that handles correct IP addressing.
There is one ... but as @OP writes, he's using static addressing, so likely he doesn't run DHCP server in his network. I agree that these days running one is almost necessity. E.g. for attaching smart phones to WiFi network (while it's possible to set up static addresses on "smart" devices, it's a real PITA to do it all the time).
 
KiwiBloke
newbie
Posts: 25
Joined: Sat Jan 27, 2024 10:25 am

Re: no internet access

Mon Nov 04, 2024 10:04 am

Agreed, let DHCP server be your friend. I have found it much easier to assign static IP addresses at router level so devices are always assigned to a specific IP when on your network, but receive a dynamic IP when connected elsewhere. Also, unless I'm missing it, there isn't any masqerade stetting between the wan and lan. Not familiar with capsman, so could be in that already.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 12980
Joined: Thu Mar 03, 2016 10:23 pm

Re: no internet access

Mon Nov 04, 2024 10:41 am

Also, unless I'm missing it, there isn't any masqerade stetting between the wan and lan. Not familiar with capsman, so could be in that already.

No, CAPsMAN doesn't do it. And since @OP is using this device as AP only, NAT is not something it is supposed to do (main router should do it).
 
newbiesysadmin
just joined
Topic Author
Posts: 7
Joined: Wed Nov 02, 2022 10:21 pm

Re: no internet access

Mon Nov 04, 2024 9:35 pm

Thanks, I suspect this too. But where to set GW for Bridge? See pics attached.
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 12980
Joined: Thu Mar 03, 2016 10:23 pm

Re: no internet access

Mon Nov 04, 2024 9:40 pm

Thanks, I suspect this too. But where to set GW for Bridge? See pics attached.

Set your main router's IP address in Gateway field.
 
newbiesysadmin
just joined
Topic Author
Posts: 7
Joined: Wed Nov 02, 2022 10:21 pm

Re: no internet access

Mon Nov 04, 2024 9:53 pm

When I try to set GW like this Mikrotik show it red and become unreachable.
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 12980
Joined: Thu Mar 03, 2016 10:23 pm

Re: no internet access

Mon Nov 04, 2024 10:08 pm

Basic problem of your WiFi AP is incomplete IP address setting, it's missing subnet setting. Change it like this:

/ip address
add address=192.168.11.251/24 interface=bridgeLocal network=192.168.11.0

After you fix IP address, you'll be able to enter router's IP address which is currently rejected.
 
newbiesysadmin
just joined
Topic Author
Posts: 7
Joined: Wed Nov 02, 2022 10:21 pm

Re: no internet access

Mon Nov 04, 2024 11:00 pm

Basic problem of your WiFi AP is incomplete IP address setting, it's missing subnet setting. Change it like this:

/ip address
add address=192.168.11.251/24 interface=bridgeLocal network=192.168.11.0

After you fix IP address, you'll be able to enter router's IP address which is currently rejected.
Thanks heaps mkx, this resolved my issue.

Who is online

Users browsing this forum: No registered users and 16 guests