Community discussions

MikroTik App
 
wendor325
just joined
Topic Author
Posts: 4
Joined: Thu May 13, 2021 12:25 am

cant update router

Mon Aug 02, 2021 3:45 am

I have hAP.
I changed the IP our hAP from 192.168.88.1 to 192.168.1.40
My network (and gw) is 192.168.1.1/24

When i go from quickset to update i get an error:
ERROR: could not resolve dns name
from Tools / ping i cant ping 8.8.8.8 i get an error: Timeout; no rute to host

devices conected to this mikrotik hAP gets their IP adress and can go to internet but in mikrotik hAP cant go outside.

In IP / Routes I didnt touch anything, I have one entry
DAC
dest. adress 192.168.1.0/24
brgde reacheable
pref source 192.168.1.40


I dont have DHCP on hAP,
my home router is DHCP 192.168.1.100 - 200


please help
 
nagylzs
Member
Member
Posts: 353
Joined: Sun May 26, 2019 2:08 pm

Re: cant update router

Mon Aug 02, 2021 8:24 am

Can you please /export hide-sensitive ?
 
nagylzs
Member
Member
Posts: 353
Joined: Sun May 26, 2019 2:08 pm

Re: cant update router

Mon Aug 02, 2021 8:29 am

Most likely, you either need to add a DHCP client or manually add a route e.g.

/ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1

If you are using default config then there is no DHCP client configured, but there is a dchp server - you need to disable/delete that under /ip dhcp-server
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2855
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: cant update router

Mon Aug 02, 2021 9:24 am

Wrong. It sets the dafault route to the router itself. Default route should poinf to the ISP's IP.
 
nagylzs
Member
Member
Posts: 353
Joined: Sun May 26, 2019 2:08 pm

Re: cant update router

Mon Aug 02, 2021 11:38 am

Wrong. It sets the dafault route to the router itself. Default route should poinf to the ISP's IP.
Maybe, I misunderstood his problem? He did not say that he was using the same HAP device for connecting to the ISP and he also did not say that he wants to use this router as a DHCP server...

Well, we should wait until he posts exported config and explains the problem a bit better.
 
wendor325
just joined
Topic Author
Posts: 4
Joined: Thu May 13, 2021 12:25 am

Re: cant update router

Mon Aug 02, 2021 5:13 pm

My newtork is 192.168.1.0/24
my ISP rrouter (gateway) is 192.168.1.1. and it runs DHCP 192.168.100-200

I have mAP mikotik as AP with IP 192.168.1.40 and it doesnt have DHCP on
 
wendor325
just joined
Topic Author
Posts: 4
Joined: Thu May 13, 2021 12:25 am

Re: cant update router

Mon Aug 02, 2021 5:30 pm

Can you please /export hide-sensitive ?
[admin@MikroTik] > export hide-sensitive  
# jan/02/1970 14:29:22 by RouterOS 6.38.3
# software id = 8MC1-2YT0
#
/interface bridge
add admin-mac=CC:2D:E0:00:E9:C2 auto-mac=no comment=defconf name=bridge
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
    country=croatia disabled=no distance=indoors frequency=auto mode=\
    ap-bridge ssid="Edimax AP" wireless-protocol=802.11
/interface ethernet
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
/ip neighbor discovery
set ether1 discover=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=\
    dynamic-keys
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=wlan1
/ip address
add address=192.168.1.40/24 comment=defconf interface=ether2-master network=\
    192.168.1.0
/ip dhcp-client
add comment=defconf dhcp-options=clientid,clientid disabled=no interface=\
    ether1
/ip dhcp-server network
add address=192.168.1.0/24 comment=defconf dns-server=8.8.8.8 gateway=\
    192.168.1.40 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.1.40 name=router
/ip firewall filter
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" \
    in-interface=ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related"
 \
    connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" disabled=yes
 \
    out-interface=all-ethernet
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge
[admin@MikroTik] >
 
pe1chl
Forum Guru
Forum Guru
Posts: 10185
Joined: Mon Jun 08, 2015 12:09 pm

Re: cant update router

Mon Aug 02, 2021 5:50 pm

You say you do not have DHCP on but in the config export it is ON.
(at least on ether1)
Maybe you have connected the other network to port 2..4 and there is no DHCP client there.
You will need to change that or you will have to configure DNS and default route manually.
 
nagylzs
Member
Member
Posts: 353
Joined: Sun May 26, 2019 2:08 pm

Re: cant update router

Wed Aug 04, 2021 10:43 pm

wendor325, what are you trying to achieve? If you want double NAT, then you need to connect ether1 to your ISP router, and change back your MT router's static address to 192.168.88.2 (or anything else EXCEPT 192.168.1.x, because you shouldn't NAT between identical IP subnets).

Is you don't want double NAT, then you need to remove dchp server config from you MT router, add ether1 port to your bridge, remove NAT rules etc.

There are other possibilities. It depends on what you want...

Who is online

Users browsing this forum: GoogleOther [Bot], johnson73, miks and 76 guests