Community discussions

MikroTik App
 
harisma
just joined
Topic Author
Posts: 2
Joined: Fri Mar 23, 2018 6:41 pm

Eth1 as WAN port with DHCP regardless IP

Sun Oct 17, 2021 1:52 pm

Hi there. I’m trying to achieve the following:
I want to have my mikrotik eth1 port as WAN port and all the other ports of mikrotik in one bridge with DHCP enabled and network 192.168.1.0/24. Now if my modem (connected to eth1) is in different network all working good, modem gives DHCP to mikrotiks eth1 and use this as gateway for the bridge network BUT how to do this even if my modem is in the same network 192.168.1.0/24?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19318
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Eth1 as WAN port with DHCP regardless IP

Sun Oct 17, 2021 4:48 pm

The modem should provide a public IP to your router and in this case there is no issue with whatever subnet you choose for your LAN.
However if the modem is NOT giving you a public IP but a private IP address, then you have to make sure that your LAN is no a different private SUBNET>
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11582
Joined: Thu Mar 03, 2016 10:23 pm

Re: Eth1 as WAN port with DHCP regardless IP

Sun Oct 17, 2021 7:44 pm

If I paraphrase what @anav wrote: router can not have two interfaces (between which it sould route traffic) with same network address.

Usually one doesn't have much influence on what IP address comes on WAN side of SOHO router, hence one has to adjust LAN side in case of conflicts.
 
gotsprings
Forum Guru
Forum Guru
Posts: 2115
Joined: Mon May 14, 2012 9:30 pm

Re: Eth1 as WAN port with DHCP regardless IP

Mon Oct 18, 2021 3:22 pm

Hi there. I’m trying to achieve the following:
I want to have my mikrotik eth1 port as WAN port and all the other ports of mikrotik in one bridge with DHCP enabled and network 192.168.1.0/24. Now if my modem (connected to eth1) is in different network all working good, modem gives DHCP to mikrotiks eth1 and use this as gateway for the bridge network BUT how to do this even if my modem is in the same network 192.168.1.0/24?
You have to change the IP scope on the MODEM (You probably mean gateway, aka it has a router in it)
OR
You have to change the IP scope of the Mikrotik

ip scope
192.168.1.0/24 is an IP scope

Changing your router to 192.168.254.0/24 scope... would take care of this.

Who is online

Users browsing this forum: fadelliz78, Google [Bot] and 42 guests