Community discussions

MikroTik App
 
ezrollin
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Mon Jul 28, 2014 8:04 am

DHCP on ethernet LAN not working but working on wifi

Mon Nov 17, 2014 8:08 am

This is my /dhcp config:
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-local name=default
/ip dhcp-server network
add address=192.168.88.0/24 comment="default configuration" dns-server=192.168.88.1 gateway=192.168.88.1
My wifi uses DHCP fine(gets an address) but whenever I plug the same PC into the ethernet LAN, it doesnt get a valid address
(it just goes with the 169.254...default error address)
what is wrong? thanks
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: DHCP on ethernet LAN not working but working on wifi

Mon Nov 17, 2014 8:29 am

Are the lan ports members of the bridge?
 
ezrollin
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Mon Jul 28, 2014 8:04 am

Re: DHCP on ethernet LAN not working but working on wifi

Mon Nov 17, 2014 9:51 am

/interface bridge
add admin-mac=D4:CA:6D:A2:75:B1 auto-mac=no mtu=1500 name=bridge-local
add mtu=1500 name="bridge1 L2TP to PC"/interface bridge nat
# in/out-bridge-port matcher not possible when interface (ether1-gateway) is not save
# bad packet mark
add chain=dstnat in-bridge=bridge-local in-interface=ether1-gateway \ingress-priority=0 packet-mark=""/interface bridge port

add bridge=bridge-local interface=ether4        <<<-----*****
add bridge=bridge-local interface=sfp1
add bridge=bridge-local interface=wlan1         <<<-----*****
I was wondering that same dam thing too. It looks like the wireless lan is bridged exactly the same as the ethernet port 4 I've been trying to use. Both are bridged to: bridge-local
I'm puzzled and confused by this bridging crap (I've been trying to setup a VPN cause it seems like there are duplicate setup options available, just in different places...
Last edited by ezrollin on Mon Nov 17, 2014 10:05 am, edited 1 time in total.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: DHCP on ethernet LAN not working but working on wifi

Mon Nov 17, 2014 9:57 am

I would remove all bridge settings and set the bridge again from scratch with bridge firewall off. Hope the port is not accidentally also enslaved to the switch.
 
User avatar
lcm
Trainer
Trainer
Posts: 57
Joined: Wed Apr 28, 2010 11:56 pm
Location: Brazil
Contact:

Re: DHCP on ethernet LAN not working but working on wifi

Mon Dec 22, 2014 12:27 am

Your DHCP server is running on the bridge interface or wlan?
 
raskin
just joined
Posts: 4
Joined: Sun Dec 21, 2014 9:04 am

Re: DHCP on ethernet LAN not working but working on wifi

Mon Dec 22, 2014 9:16 am

Hi,

Simply delete that existing bridge,also delete any NAT/mangle rules assigned on bridge.Than create a new bridge and add the lan and wireless interface to that bridge.After that assign the default gateway ip of that DHCP network on bridge interface and run the DHCP server configuration on that bridge interface only.Hope so it solves your problem.

Note : While creating bridge just use winbox to create a new bridge without any advance options and add the interface from ports submenue.

Thanks