I have been unable to get this working without manually starting
dnsmasq with the options I need, so I was wondering if there is some
way that I do not know about.
I have bridging to get my wireless interfaces onto a vlan, then to
another layer 3 switch, which in turn forwards dhcp back to openwrt on
a different port. Due to switchport performance reasons, I am
basically only trying to use openwrt for wifi and pppoe/ipsec. My
other switch handles routing and firewall between locally connected
subnets.
Where II have hit a roadblock is that openwrt's init scripts for
dnsmasq will only start a dhcp pool if there is a local interface that
has IP running on it. Does anyone know of a way around this? I
really do ont want to have to rely on a machine being on 24x7 here to
just server dhcp when openwrt will always be on. As long as I add the
pool to the dnsmasq command line, it serves it up just fine.. I have
dhcp forwarding running on the L3 switch pointing to the lan ip on
openwrt..
My setup is as follows for this test:
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'proto' 'static'
option 'type' 'bridge'
option 'ifname' 'eth1.1'
option 'ipaddr' '10.0.1.10'
option 'netmask' '255.255.255.0'
option 'stp' '0'
option 'defaultroute' '0'
option 'peerdns' '0'
option 'mtu' '1492'
config 'interface' 'PRIVATE'
option 'proto' 'none'
option 'type' 'bridge'
option 'ifname' 'eth1.2 wlan0'
option 'auto' '1'
config 'interface' 'wan'
option 'ifname' 'eth0'
option 'proto' 'dhcp'
option 'defaultroute' '1'
option 'peerdns' '1'
option 'mtu' '1478'
config 'switch' 'eth1'
option 'name' 'eth1'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '1'
option 'vid' '1'
option 'ports' '0t 4t'
config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '2'
option 'vid' '2'
option 'ports' '0t 4t'
config 'route'
option 'interface' 'lan'
option 'target' '10.0.2.0'
option 'netmask' '255.255.255.0'
option 'gateway' '10.0.1.1'
WIFI:
config 'wifi-device' 'radio0'
option 'type' 'mac80211'
option 'channel' '11'
option 'macaddr' '00:0c:42:64:b3:de'
option 'hwmode' '11ng'
option 'htmode' 'HT20'
list 'ht_capab' 'SHORT-GI-40'
list 'ht_capab' 'TX-STBC'
list 'ht_capab' 'RX-STBC1'
list 'ht_capab' 'DSSS_CCK-40'
option 'disabled' '0'
config 'wifi-iface'
option 'device' 'radio0'
option 'mode' 'ap'
option 'ssid' 'OpenWrt'
option 'network' 'PRIVATE'
option 'encryption' 'psk2'
DHCP:
No relevant info..
Thanks
-Greg
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users