Community discussions

MikroTik App
 
User avatar
boxybh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Sat Jul 29, 2017 11:16 am

Stop wanport from getting dhcp from modem

Wed Dec 06, 2023 9:07 am

lan ip 192.168.1.0/22

pppoe on wan 1 and wan 2

dhcp on lan

everything works well but when wan1 and wan2 modem are reset from the isp remotely they enable dhcp and in addresses i can see 192.168.1.xx for wan1 and wan2

to stop this either i do vlan or change my ip range or firewall
firewall that i have tried

/ip firewall filter add chain=input in-interface=WAN_1 protocol=udp dst-port=67-68 action=drop comment="Below is to drop Dhcp from Wan side"
& wan2 same rule

same in raw for wan1 wan2 and pppoe both

in dhcp client added wan1 and wan2 and use peer dns and default route = no
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12014
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Stop wanport from getting dhcp from modem

Wed Dec 06, 2023 1:07 pm

Why not suffice just NOT put the WANs in the LAN and remove the DHCP clients from WAN ports?
What configuration horror do you have?
 
User avatar
boxybh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Sat Jul 29, 2017 11:16 am

Re: Stop wanport from getting dhcp from modem

Thu Dec 07, 2023 1:17 pm

Why not suffice just NOT put the WANs in the LAN and remove the DHCP clients from WAN ports?
What configuration horror do you have?
we its simple pcc load balance and when you remove them from addresses, they come back, because the internet routers are locked from the isp side and cannot disable their dhcp.

gone through it with several times and found out that detect internet was all. with the above firewall entry and disable internet detect, even after restart no D entries for wan1 and wan2
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3505
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Stop wanport from getting dhcp from modem

Thu Dec 07, 2023 5:03 pm

found out that detect internet was all
Oh that's annoying. The evils of the automatic DHCP client from /interface/detect-internet strikes again. Glad you figured it out.
 
kevinds
Long time Member
Long time Member
Posts: 651
Joined: Wed Jan 14, 2015 8:41 am

Re: Stop wanport from getting dhcp from modem

Wed Dec 20, 2023 11:26 am

in dhcp client added wan1 and wan2 and use peer dns and default route = no
Instead, just remove or disable them.
 
User avatar
boxybh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Sat Jul 29, 2017 11:16 am

Re: Stop wanport from getting dhcp from modem

Wed Dec 20, 2023 12:52 pm

in dhcp client added wan1 and wan2 and use peer dns and default route = no
Instead, just remove or disable them.

did try both the option but the problem is the network is on the same subnet. router == locked
network cannot change subnet yet
 
kevinds
Long time Member
Long time Member
Posts: 651
Joined: Wed Jan 14, 2015 8:41 am

Re: Stop wanport from getting dhcp from modem

Wed Dec 20, 2023 4:42 pm

did try both the option but the problem is the network is on the same subnet. router == locked
network cannot change subnet yet
Why is that a problem?

You are using PPPoE on both WANs, you don't need DHCP on the physical interfaces, it is causing you issues, so don't use it.

Who is online

Users browsing this forum: No registered users and 8 guests