Page 1 of 1

easy wifi question - no dhcp through Wifi

Posted: Fri Oct 30, 2009 6:21 pm
by squishio
easy for you guys to solve but not me to fix :(

I have installed a wifi card and set it up as an AP-bridge, I am able to connect to it with laptops but I'm not getting an IP address on the clients.

I have added a dhcp server to the wlan1 interface and assigned it the same ip pool as the lan has (lan is working perfectly)


Any idea's why wireless clients don't get an IP?

thanks,
Rich

Re: easy wifi question - no dhcp through Wifi

Posted: Sat Oct 31, 2009 12:19 am
by rpress
You need something like this, assuming lan is ether1. Then setup just one DHCP server on bridge1 for both LAN and WLAN.
/interface bridge
add admin-mac=00:00:00:00:00:00 ageing-time=5m arp=enabled auto-mac=yes \
    comment="" disabled=no forward-delay=15s l2mtu=2290 max-message-age=20s \
    mtu=1500 name="lan bridge" priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
/interface bridge port
add bridge="lan bridge" comment="" disabled=no edge=auto external-fdb=\
    auto horizon=none interface=ether1 path-cost=10 point-to-point=auto \
    priority=0x80
add bridge="lan bridge" comment="" disabled=no edge=auto external-fdb=\
    auto horizon=none interface=wlan1 path-cost=10 point-to-point=\
    auto priority=0x80