[Dnsmasq-discuss] Re: "dhcp-ignore = myTag, #known" was not what I thought

Mariano Absatz el.baby at gmail.com
Fri Dec 5 15:56:29 GMT 2008


Mariano Absatz escribió el 05/12/08 13:50:
>
> In the local wired net I'm using one class "C" network, but I have 2 
> different ranges (with different treatment in my firewall). I want to 
> give IP addresses in one range only to MACs I know, and in the other 
> range to others, so I wrote part of my configuration as in the file 
> attached... in particular:
Of course... I forgot to attach the sample config... here it goes...

-- 
Mariano Absatz - "El Baby"
el.baby at gmail.com
www.clueless.com.ar


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Clark's Law: Sufficiently advanced cluelessness is
indistinguishable from malice.
  J. Porter Clark (NASA), 1994
http://groups.google.com/group/alt.config/msg/595eee6098155967
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* TagZilla 0.066 * http://tagzilla.mozdev.org

-------------- next part --------------
####################### INTERFACES ###########################

# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
#interface=
# Or you can specify which interface _not_ to listen on
#except-interface=
# Or which to listen on by address (remember to include 127.0.0.1 if
# you use this.)
#listen-address=
# If you want dnsmasq to provide only DNS service on an interface,
# configure it as shown above, and then use the following line to
# disable DHCP on it.
#no-dhcp-interface=


# On systems which support it, dnsmasq binds the wildcard address,
# even when it is listening on only some interfaces. It then discards
# requests that it shouldn't reply to. This has the advantage of
# working even when interfaces come and go and change address. If you
# want dnsmasq to really bind only the interfaces it is listening on,
# uncomment this option. About the only time you may need this is when
# running another nameserver on the same machine.
#ESTO YA LO PUSIMOS EN 00-options.conf
#bind-interfaces

# Red interna powerminds
interface=eth3


########################## DYNAMIC RANGES #############################


################# tagIKnowYou ################
dhcp-range=tagIKnowYou,192.168.1.101,192.168.1.120,4h
### REJECT UNKNOWN CLIENTS IN THIS NETWORK!!!!
# (see STATIC below)
dhcp-ignore=tagIKnowYou,#known


################## OPTIONS ################
dhcp-option=net:tagIKnowYou,option:router,0.0.0.0	# router = this server
dhcp-option=net:tagIKnowYou,option:dns-server,0.0.0.0 # dns-server = this server
dhcp-option=net:tagIKnowYou,option:nis-domain,powerminds # nis-domain = samba
dhcp-option=net:tagIKnowYou,option:nis-server,192.168.1.13 # nis-server = samba
dhcp-option=net:tagIKnowYou,option:ntp-server,0.0.0.0 # ntp-server = this server



############### tagAllTheRest #############

dhcp-range=tagAllTheRest,192.168.1.161,192.168.1.174,4h

################## OPTIONS ################

dhcp-option=net:tagAllTheRest,option:router,0.0.0.0	# router = this server
dhcp-option=net:tagAllTheRest,option:dns-server,0.0.0.0 # dns-server = this server
dhcp-option=net:tagAllTheRest,option:nis-domain,powerminds # nis-domain = samba
dhcp-option=net:tagAllTheRest,option:nis-server,192.168.1.13 # nis-server = samba
dhcp-option=net:tagAllTheRest,option:ntp-server,0.0.0.0 # ntp-server = this server




########### STATIC ################
#
########### SERVERS ###############
# samba: server interno powerminds
dhcp-host=00:1c:c4:c2:6b:0c,net:tagAllTheRest,192.168.1.13,samba

# backupNAS: NAS local
dhcp-host=00:0d:a2:02:48:7b,net:tagAllTheRest,192.168.1.29,backupNAS


########### PRINTERS ##############
dhcp-host=00:1e:0b:e5:46:17,net:tagAllTheRest,192.168.1.7,laser1

# mfp2: impresora laser color multifuncion
dhcp-host=00:18:fe:9d:17:30,net:tagAllTheRest,192.168.1.5,mfp2


############# OUR PCs ##############
dhcp-host=00:22:33:44:55:01,192.168.1.101,net:tagIKnowYou,mycompany-PC-01
dhcp-host=00:22:33:44:55:02,192.168.1.101,net:tagIKnowYou,mycompany-PC-02
dhcp-host=00:22:33:44:55:03,192.168.1.101,net:tagIKnowYou,mycompany-PC-03




More information about the Dnsmasq-discuss mailing list