sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #36426
Re: DHCP med dymamisk DNS
In <20010505172430.J4096@brick> Anna Jonna Armannsdottir <a@xxxxxxxxxxxx> writes:
>Er der nogen der har fået en Linux maskine til at
>fungere som en DHCP server ? Min vil slet ikke?
Ok ja, ikke noget problem. Man skal bare sørge for at
lave konfigurations-filen rigtigt, naturligvis. Her
er min /etc/dhcpd.conf:
subnet 172.16.10.0 netmask 255.255.255.0 {
# --- default gateway
option routers 172.16.10.254;
option subnet-mask 255.255.255.0;
option domain-name "hswn.dk";
option domain-name-servers 172.16.10.1;
option ntp-servers 172.16.10.1;
option netbios-name-servers 172.16.10.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
option netbios-node-type 2;
range dynamic-bootp 172.16.10.128 172.16.10.250;
default-lease-time 21600;
max-lease-time 43200;
# we want some hosts to appear at a fixed address
host osiris {
# Henriks faste PC
hardware ethernet 00:02:B3:16:0A:CB;
fixed-address 172.16.10.100;
}
}
Det virker fint med både Linux- og Windows-klienter. Her kan man også
se, hvordan man kan give et bestemt netkort en statisk adresse, hvis
man vil det.
Henrik
--
Henrik Storner | "ATA100 is another testimony to the fact that
<henrik@xxxxxxxxxx> | pigs can be made to fly given sufficient thrust"
|
| Linux kernel hacker Alan Cox, on IDE drives
Follow ups
References