Help me Expend my IP from 192.168.1.1 to 192.168.1.2.254

Hello

I have my Wifi assigned to 192.168.2.36, however, my wifi does not connect to the internet. I also can not ping the wifi router.

Please help me how do I configure the RouterOS to funtion.

Below is my config file:

# 2026-04-18 12:55:55 by RouterOS 7.18.2

# software id = KQD3-DZA4

#

# model = RB5009UG+S+

/interface bridge

add admin-mac=04:F4:1C:30:18:8C auto-mac=no comment=defconf name=bridge

/interface ethernet

set [ find default-name=ether1 ] name=eth1_WAN

set [ find default-name=ether3 ] name=eth3_WIFI_DECO

set [ find default-name=ether6 ] name=eth6_UNIFI

set [ find default-name=ether7 ] name=eth7_NETGEAR

set [ find default-name=ether8 ] name=eth8_HIKVISION

set [ find default-name=ether2 ] disabled=yes

/interface wireguard

add listen-port=13231 mtu=1420 name=WG

/interface list

add comment=defconf name=WAN

add comment=defconf name=LAN

/ip pool

add name=dhcp ranges=192.168.1.3-192.168.2.254

/ip dhcp-server

add address-pool=dhcp interface=bridge name=defconf

/disk settings

set auto-media-interface=bridge auto-media-sharing=yes auto-smb-sharing=yes

/interface bridge port

add bridge=bridge comment=defconf interface=eth3_WIFI_DECO

add bridge=bridge comment=defconf interface=ether4

add bridge=bridge comment=defconf interface=ether5

add bridge=bridge comment=defconf interface=eth6_UNIFI

add bridge=bridge comment=defconf interface=eth7_NETGEAR

add bridge=bridge comment=defconf interface=eth8_HIKVISION

add bridge=bridge comment=defconf interface=sfp-sfpplus1

/ip neighbor discovery-settings

set discover-interface-list=LAN

/interface list member

add comment=defconf interface=bridge list=LAN

add comment=defconf interface=eth1_WAN list=WAN

/interface wireguard peers

add allowed-address=192.168.77.3/32 client-address=192.168.77.3/32 \

client-dns=8.8.8.8,8.8.4.4,1.1.1.1 client-endpoint=142.255.3.18 comment=\

Jashgfdhon-iPhone interface=WG name=Jashgdfhon-iPhone private-key=\

"gfdsgfdsgfdsg" public-key=\

"gfdgsfdgfdsg"

add allowed-address=192.168.77.2/32 client-address=192.168.77.2/32 \

client-dns=8.8.8.8,8.8.4.4,1.1.1.1 client-endpoint=142.255.3.18 comment=\

Jashgfon-Home-Desktop interface=WG name=Jhgfdhason-Home-Desktop private-key=\

"gfdsgdfsgfdsg" public-key=\

"hgfdjhgfjhgfjhgfj"

/ip address

add address=192.168.1.1/23 comment=defconf interface=bridge network=\

192.168.0.0

add address=192.168.77.1/24 comment=Wireguard interface=WG network=\

192.168.77.0

/ip arp

add address=192.168.1.74 comment="NVR: Unifi Protect" interface=bridge \

add address=192.168.1.66 comment="SWITCH: MIKROTIK" interface=bridge \

add address=192.168.1.45 comment="Main Server" interface=bridge mac-address=\

add address=192.168.1.233 comment="CAM: Paking Lot 180 View" interface=bridge \

add address=192.168.1.238 comment="CAM: FRONT 180 View" interface=bridge \

add address=192.168.1.236 comment="CAM: Stucco Room" interface=bridge \

add address=192.168.1.235 comment="CAM: Delivery Spot" interface=bridge \

add address=192.168.1.234 comment="CAM: FRONT 189 View Yard" interface=bridge \

add address=192.168.1.17 comment="NVR: Front" interface=bridge mac-address=\

add address=192.168.1.38 comment="NVR: BACK LTS" interface=bridge \

add address=192.168.1.39 comment="NVR: OFFICE LTS" interface=bridge \

add address=192.168.1.52 comment="SWITCH: NETGEAR R7800" interface=bridge \

add address=192.168.1.51 comment="SWITCH: DECO-M5" interface=bridge \

add address=192.168.1.6 comment="SWITCH: DECO-M5" interface=bridge \

add address=192.168.1.3 comment="SWITCH: DECO-X55" interface=bridge \

add address=192.168.1.22 comment="SWITCH: DECO-X55" interface=bridge \

add address=192.168.1.237 comment="CAM: Front Desk Counter Customer Spot" \

interface=bridge

add address=192.168.1.239 comment="CAM: Back Container" interface=bridge \

add address=192.168.1.240 comment="CAM: Back Second Floor" interface=bridge \

add address=192.168.1.108 comment="NVR: Back - Old" interface=bridge \

add address=192.168.1.232 comment="CAM: BACK SHEETROCK 180" interface=bridge \

add address=192.168.1.231 comment="CAM: FRONT DESK" interface=bridge \

add address=192.168.2.36 interface=bridge

add address=192.168.1.101 comment=FRONT-CANON interface=bridge

/ip dhcp-client

add comment=defconf interface=eth1_WAN

/ip dhcp-server network

add address=192.168.0.0/23 comment=defconf dns-server=192.168.1.1 gateway=\

192.168.1.1 netmask=23

/ip dns

set allow-remote-requests=yes

/ip dns static

add address=192.168.1.1 comment=defconf name=router.lan type=A

/ip firewall filter

add action=accept chain=input comment=\

"defconf: accept established,related,untracked" connection-state=\

established,related,untracked

add action=accept chain=input comment=Wireguard dst-port=13231 protocol=udp

add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp

add action=accept chain=input comment=\

"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1

add action=drop chain=input comment="defconf: drop invalid" connection-state=\

invalid log-prefix=FW_DROP_INPUT

add action=drop chain=input comment="defconf: drop all not coming from LAN" \

in-interface-list=!LAN

add action=accept chain=forward comment="defconf: accept in ipsec policy" \

ipsec-policy=in,ipsec

add action=accept chain=forward comment="defconf: accept out ipsec policy" \

ipsec-policy=out,ipsec

add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \

connection-state=established,related hw-offload=yes

add action=accept chain=forward comment=\

"defconf: accept established,related, untracked" connection-state=\

established,related,untracked

add action=drop chain=forward comment="defconf: drop invalid" \

connection-state=invalid log-prefix=FW_DROPPED

add action=drop chain=forward comment=\

"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \

connection-state=new in-interface-list=WAN

/ip firewall nat

add action=masquerade chain=srcnat comment="defconf: masquerade" \

ipsec-policy=out,none out-interface-list=WAN

add action=dst-nat chain=dstnat comment=SERVER_HTTP dst-port=80 \

in-interface-list=WAN protocol=tcp to-addresses=192.168.1.45 to-ports=80

add action=dst-nat chain=dstnat comment=SERVER_SQL dst-port=9001 \

in-interface-list=WAN protocol=tcp to-addresses=192.168.1.45 to-ports=\

1433

add action=dst-nat chain=dstnat comment=SERVER_RD_TCP disabled=yes dst-port=\

3391 in-interface-list=WAN protocol=tcp to-addresses=192.168.1.45 \

to-ports=3389

add action=dst-nat chain=dstnat comment=SERVER_RD_UDP disabled=yes dst-port=\

3391 in-interface-list=WAN protocol=udp to-addresses=192.168.1.45 \

to-ports=3389

add action=dst-nat chain=dstnat comment=NVR_OFFICE_TCP dst-port=8500 \

in-interface-list=WAN protocol=tcp to-addresses=192.168.1.39 to-ports=\

8000

add action=dst-nat chain=dstnat comment=NVR_BACK_TCP dst-port=8501 \

in-interface-list=WAN protocol=tcp to-addresses=192.168.1.38 to-ports=\

8000

add action=dst-nat chain=dstnat comment=NVR_FRONT_TCP dst-port=8502 \

in-interface-list=WAN protocol=tcp to-addresses=192.168.1.17 to-ports=\

8000

add action=dst-nat chain=dstnat comment=NVR_BACK_OLD_TCP dst-port=8503 \

in-interface-list=WAN log-prefix=NVR_BACK_OLD_TCP protocol=tcp \

to-addresses=192.168.1.108 to-ports=8000

/ip service

set telnet disabled=yes

set ftp disabled=yes

set www disabled=yes port=8080

set ssh disabled=yes

set api disabled=yes

set api-ssl disabled=yes

/ipv6 firewall address-list

add address=::/128 comment="defconf: unspecified address" list=bad_ipv6

add address=::1/128 comment="defconf: lo" list=bad_ipv6

add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6

add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6

add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6

add address=100::/64 comment="defconf: discard only " list=bad_ipv6

add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6

add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6

add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6

/ipv6 firewall filter

add action=accept chain=input comment=\

"defconf: accept established,related,untracked" connection-state=\

established,related,untracked

add action=drop chain=input comment="defconf: drop invalid" connection-state=\

invalid

add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\

icmpv6

add action=accept chain=input comment="defconf: accept UDP traceroute" \

dst-port=33434-33534 protocol=udp

add action=accept chain=input comment=\

"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\

udp src-address=fe80::/10

add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \

protocol=udp

add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\

ipsec-ah

add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\

ipsec-esp

add action=accept chain=input comment=\

"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec

add action=drop chain=input comment=\

"defconf: drop everything else not coming from LAN" in-interface-list=\

!LAN

add action=fasttrack-connection chain=forward comment="defconf: fasttrack6" \

connection-state=established,related

add action=accept chain=forward comment=\

"defconf: accept established,related,untracked" connection-state=\

established,related,untracked

add action=drop chain=forward comment="defconf: drop invalid" \

connection-state=invalid

add action=drop chain=forward comment=\

"defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6

add action=drop chain=forward comment=\

"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6

add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \

hop-limit=equal:1 protocol=icmpv6

add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\

icmpv6

add action=accept chain=forward comment="defconf: accept HIP" protocol=139

add action=accept chain=forward comment="defconf: accept IKE" dst-port=\

500,4500 protocol=udp

add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\

ipsec-ah

add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\

ipsec-esp

add action=accept chain=forward comment=\

"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec

add action=drop chain=forward comment=\

"defconf: drop everything else not coming from LAN" in-interface-list=\

!LAN

/system clock

set time-zone-name=America/New_York

/system identity

set name="MikroTik Router"

/system note

set show-at-login=no

/tool mac-server

set allowed-interface-list=LAN

/tool mac-server mac-winbox

set allowed-interface-list=LAN

https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=23&cip=192.168.1.1%2F23&ctype=ipv4&x=Calculate

Maybe use 192.168.0.0 /22 (192.168.0.0-192.168.3.255) instead!? :see_no_evil_monkey:

1 Like

And isn't it quicker to set the DHCP client on "your Wifi" or set 192.168.1.x on "your Wifi"?

Paste this on terminal

/ip pool
# split: do not use .255 or .0 addresses on pool... and reserve some static space...
set [find where name=dhcp] ranges=192.168.1.10-192.168.1.249,192.168.2.10-192.168.2.249

/ip address
# 1.1/23 cover 0.x and 1.x, not 2.x, but 1.1/22 cover 0.x, 1.x, 2.x and 3.x
set [find where address="192.168.1.1/23"] address=192.168.1.1/22
# another IP: gateway set inside of "your Wifi"...
add address=192.168.2.1/22 comment=defconf interface=bridge

/ip dhcp-server network
# 0.0/23 cover 0.x and 1.x, not 2.x, but 0.0/22 cover 0.x, 1.x, 2.x and 3.x
set [find where address="192.168.0.0/23"] address=192.168.0.0/22

But what is the Gateway set inside "your Wifi"?

Hello

Thanks for the reply

I got it to work

Maybe it was my Wifi device issue

Thanks