|
Tips
|
|
Escrito por Administrator
|
|
Viernes, 01 de Febrero de 2008 20:02 |
|
# Sample configuration file for ISC dhcpd # option definitions common to all supported networks... option domain-name "example.org"; ("linuxsc.net") option domain-name-servers ns1.example.org, ns2.example.org; (148.243.214.10) default-lease-time 600; max-lease-time 7200; # if you do not use dynamical DNS updates: # # this statement is needed by dhcpd-3 needs at least this statement. # you have to delete it for dhcpd-2, because it does not know it. # # if you want to use dynamical DNS updates, you should first read # read /usr/share/doc/packages/dhcp-server/DDNS-howto.txt #dns-update-style ad-hoc; #dns-update-style interim; (default) #ignore client-updates; ddns-update-style none; ddns-updates off; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. #authoritative; #no authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; # Share network declaration (for adminitration of networks) share-network linuxsc1 { default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option routers 10.21.1.2; (gw de la red o el firewall como gw) subnet 10.21.1.0 netmask 255.255.255.0 { option broadcast-address 10.21.1.255; option routers 10.21.1.2; # Group Declaration group servidores { use-host-decl-names on; # Fixed IP addresses can also be specified for hosts. These addresses # should not also be listed as being available for dynamic assignment. # Hosts for which fixed IP addresses have been specified can boot using # BOOTP or DHCP. Hosts for which no fixed address is specified can only # be booted with DHCP, unless there is an address range on the subnet # to which a BOOTP client is connected which has the dynamic-bootp flag # set. host perseo.linuxsc.net { hardware ethernet 00:89:6b:e3:ac:ff; fixed-address 10.21.1.232; } host pruebas.linuxsc.net { hardware ethernet 00:98:7a:e5:f1; fixed-address 10.21.1.233; } host apex { option host-name "apex.example.com"; hardware ethernet 00:A0:78:8E:9E:AA; fixed-address 192.168.1.4; } } group otros { range 10.21.1.234 10.21.1.240; } } # This is a very basic subnet declaration. subnet 10.254.239.0 netmask 255.255.255.224 { range 10.254.239.10 10.254.239.20; option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; } # A slightly different configuration for an internal subnet. subnet 10.5.5.0 netmask 255.255.255.224 { range 10.5.5.26 10.5.5.30; option domain-name-servers ns1.internal.example.org; option domain-name "internal.example.org"; option routers 10.5.5.1; option broadcast-address 10.5.5.31; default-lease-time 600; max-lease-time 7200; host hacker { hardware ethernet cc:34:25:ac:e5:66; deny booting; } } }
|
|
Actualizado ( Viernes, 01 de Febrero de 2008 20:04 )
|