Może wkleję moją konfigurację..
/etc/config/network :
config interface vlan4
option type bridge
option ifname "eth0.4"
option proto static
option ipaddr 192.168.1.65
option netmask 255.255.255.192
config alias
option 'interface' 'vlan4'
option 'proto' 'static'
option 'ipaddr' '10.0.0.1'
option 'netmask' '255.255.255.0'
config 'switch'
option 'name' 'rtl8366s'
option 'reset' '1'
option 'enable_vlan' '1'
option 'blinkrate' '2'
config 'switch_vlan'
option 'device' 'rtl8366s'
option 'vlan' '1'
option 'ports' '1 2 3 5t'
config 'switch_vlan'
option 'device' 'rtl8366s'
option 'vlan' '4'
option 'ports' '0 5t'
/etc/dnsmasq.conf
domain=nat2.siec.pl,192.168.1.0/26
domain=new.siec.pl,10.0.0.0/24 #to nie działa:/, zamiast tego jest domena nat2.siec.pl
dhcp-range=vlan4,10.0.0.2,10.0.0.240,255.255.255.0,24h #<-- nie ważne czy ta linia jest, i tak zawsze jest sieć 10.0.0.0/24
/etc/config/dhcp
config 'dnsmasq'
option 'domainneeded' '1'
option 'boguspriv' '1'
option 'localise_queries' '1'
option 'rebind_protection' '1'
option 'rebind_localhost' '1'
option 'local' '/lan/'
option 'domain' 'nat.siec.pl'
option 'expandhosts' '1'
option 'authoritative' '1'
option 'readethers' '1'
option 'leasefile' '/tmp/dhcp.leases'
option 'resolvfile' '/tmp/resolv.conf.auto'
option 'nonwildcard' '1'
config 'dhcp' 'lan'
option 'interface' 'lan'
option 'leasetime' '12h'
option 'force' '1'
option 'networkid' 'lan'
config 'dhcp' 'vlan4'
option 'interface' 'vlan4'
option 'networkid' 'vlan4'
option 'leasetime' '12h'
option 'force' '1'
option 'dynamicdhcp' '0'
list 'dhcp_option' '15,nat2.siec.pl'
config 'dhcp' 'wan'
option 'interface' 'wan'
option 'ignore' '1'
config 'domain'
config 'host'
option 'mac' 'xx:xx:xx:xx:xx:xx'
option 'name' 'komp.nat2.siec.pl'
option 'ip' '192.168.1.2'
I jest tak:
Komputer, który jest dopisany do /etc/config/dhcp dostaje IP takie jak ma dostać.
Komputer, który nie jest dopisany dostaje sieć 10.0.0.0/24, ale chce, żeby oprócz adresu dostał:
- inny domainname
- inną bramę
- inny dns
niestety nie mam zielonego pojęcia jak to ugryźć..