mi servirebbero propio le righe da mettere in dhcpd.conf
nn ditemi di usare indirizzi fissi, grazie

Moderatore: Federico.Lagni
Codice: Seleziona tutto
host bostick {
hardware ethernet 08:00:00:3b:4f:fa;
fixed-address 192.168.2.17;
}
host banana {
hardware ethernet 08:00:02:01:55:cb;
fixed-address 192.168.2.18;
}
Codice: Seleziona tutto
# dhcpd.conf - configuration for simple network
# Our global default configurations
option domain-name "testnet.net";
option domain-name-servers 192.168.2.16;
option subnet-mask 255.255.255.0
default-lease-time 600;
max-lease-time 7200;
# On our .1 subnet we will dynamically allocate
# address to any host that requests one using
# either DHCP or BootP.
subnet 192.168.1.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.1.32 192.168.1.254;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
get-lease-hostnames true;
}
# On our .2 subnet we have a mixture of dynamically
# assigned addresses and a collection of hosts that
# should have fixed addresses.
subnet 192.168.2.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.2.32 192.168.2.254;
option broadcast-address 192.168.2.255;
option routers 192.168.2.1;
}
# Our fixed address hosts belong to a different
# name domain and should have names assigned to
# them in addition to addresses.
group {
option domain-name "apps.testnet.net";
use-host-decl-names on;
host guava {
hardware ethernet 08:00:00:1a:2b:3c;
fixed-address 192.168.2.16;
}
host nectarine {
hardware ethernet 08:00:00:3b:4f:fa;
fixed-address 192.168.2.17;
}
host banana {
hardware ethernet 08:00:02:01:55:cb;
fixed-address 192.168.2.18;
}
}