xiaodoudou
New Around Here
Hi,
I would like to make the DHCP server serve a specific gateway for a specific SSID.
I did try exploring the following way:
Example of configuration:
File: /jffs/scripts/dnsmasq.postconf (with chmod +xxx) :
That is pity that we can't have dnsmasq adding more tags to put all interfaces instead on the bridge one.
If you have any idea let me know !
Thank you,
Cheers,
I would like to make the DHCP server serve a specific gateway for a specific SSID.
I did try exploring the following way:
- add interface wl0.2 (my virtual wifi interface) and do some rules with it:
Example of configuration:
File: /jffs/scripts/dnsmasq.postconf (with chmod +xxx) :
Code:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh
pc_append "
log-dhcp
interface=wl0.2
dhcp-range=wl0.2,172.30.20.2,172.30.20.254,255.255.255.0,86400s
dhcp-option=wl0.2,3,172.30.20.254
dhcp-option=wl0.2,6,172.30.20.254,0.0.0.0
dhcp-option=wl0.2,252,"\n"
" /tmp/etc/dnsmasq.conf
- create a bridge (br1) and integrate wl0.2 to it
That is pity that we can't have dnsmasq adding more tags to put all interfaces instead on the bridge one.
If you have any idea let me know !
Thank you,
Cheers,