Page 1 of 1

DHCP on ethernet LAN not working but working on wifi

Posted: Mon Nov 17, 2014 8:08 am
by ezrollin
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

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

Posted: Mon Nov 17, 2014 8:29 am
by jarda
Are the lan ports members of the bridge?

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

Posted: Mon Nov 17, 2014 9:51 am
by ezrollin
/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...

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

Posted: Mon Nov 17, 2014 9:57 am
by jarda
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.

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

Posted: Mon Dec 22, 2014 12:27 am
by lcm
Your DHCP server is running on the bridge interface or wlan?

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

Posted: Mon Dec 22, 2014 9:16 am
by raskin
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