[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dhcpd.conf



Hi,

I've scoured the web, read the man page, and don't get it.  If several
people posted or sent me their dhcpd.conf files with explanations of why
each name/address goes in each spot I would greatly appreciate it.

Here's what I'm trying to do:

I use a CharterPipeline cable modem to connect to this system running
Debian 2.2r5 potato.  I have two ethernet cards (Kingston KNE110TX and
LinkSys NC100) that both installed fine using the tulip driver.  They
are recognized as eth0 and eth1 on bootup.  The cable modem feeds one
card and then the other card goes to a hub. Then the hub connects up 2-3
other computers running Win98.

When the linux box is booted with Win95, the Internet Connection Sharing
works fine.  I run Sygate's firewall.  Here's what winipcfg tells me in
Win95: (I can't figure out how to translate this info over to the
dhcpd.conf file.)

The Linksys Card says this:
Host Name DESKTOP.charterpipeline.com
DNS Servers 24.205.1.62 (and some others)
Node Type Hybrid
Adapter Address 00-20-78-E0-00-8A
IP Address 24.205.147.67
Subnet Mask 255.255.255.0
Default Gateway 24.205.147.1
DHCP Server 24.205.1.194
Primary WINS 127.0.0.1

The Kingston Card says just this:
Host Name DESKTOP.charterpipeline.com
DNS Servers 24.205.1.62 (and some others)
Adapter Address 00-C0-F0-56-2E-E9
IP Address 192.168.0.1
Subnet Mask 255.255.255.0

One of the attached Win98 computers says:
Host Name J'S DESKTOP
DNS Servers 192.168.0.1
Node Type Broadcast
Adapter Address 00-A0-CC-76-76-AB
IP Address 192.168.0.2
Subnet Mask 255.255.255.0
Default Gateway 192.168.0.1
DHCP Server 192.168.0.1

One of the attached Win98 computers says:
Host Name LAPTOP
DNS Servers 192.168.0.1
Node Type Broadcast
Adapter Address 00-E0-98-73-5E-F7
IP Address 192.168.0.3
Subnet Mask 255.255.255.0
Default Gateway 192.168.0.1
DHCP Server 192.168.0.1

The other attached computer is a laptop that's at the office right now,
so no info, but I think it would say:.
Host Name J'S LAPTOP
DNS Servers 192.168.0.1
Node Type Broadcast
Adapter Address ??-??-??-??-??-??
IP Address 192.168.0.4
Subnet Mask 255.255.255.0
Default Gateway 192.168.0.1
DHCP Server 192.168.0.1

What I don't get in dhcp.conf is:
What info from above goes where in the below file.  It seems to me like
they use different names for things, so I can't figure out how to match
up the info I have with what the dhcpd.conf file wants me to say.  Also,
does every dhcpd.conf file need all that info in the sample below or
does some of it get cut out in my situation?  THANKS for any HELP!

# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "fugue.com";
option domain-name-servers toccata.fugue.com;option subnet-mask
255.255.255.224;
default-lease-time 600;
max-lease-time 7200;subnet 204.254.239.0 netmask 255.255.255.224 {
  range 204.254.239.10 204.254.239.20;
  option broadcast-address 204.254.239.31;
  option routers prelude.fugue.com;
}
# The other subnet that shares this physical network
subnet 204.254.239.32 netmask 255.255.255.224 {
  range dynamic-bootp 204.254.239.33 204.254.239.40;
  option broadcast-address 204.254.239.31;
  option routers snarg.fugue.com;
}

subnet 192.5.5.0 netmask 255.255.255.224 {
  range 192.5.5.26 192.5.5.30;
  option domain-name-servers bb.home.vix.com, gw.home.vix.com;
  option domain-name "vix.com";
  option routers 192.5.5.1;
  option subnet-mask 255.255.255.224;
  option broadcast-address 192.5.5.31;
  default-lease-time 600;
  max-lease-time 7200;
}

# Hosts which require special configuration options can be listed in
# host statements.   If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information

# will still come from the host declaration.

host passacaglia {
  hardware ethernet 0:0:c0:5d:bd:95;
  filename "vmunix.passacaglia";
  server-name "toccata.fugue.com";
}

# 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 fantasia {
  hardware ethernet 08:00:07:26:c0:a5;
  fixed-address fantasia.fugue.com;
}

# If a DHCP or BOOTP client is mobile and might be connected to a
variety
# of networks, more than one fixed address for that host can be
specified.
# Hosts can have fixed addresses on some networks, but receive
dynamically
# allocated address on other subnets; in order to support this, a host
# declaration for that client must be given which does not have a fixed
# address.   If a client should get different parameters depending on
# what subnet it boots on, host declarations for each such network
should
# be given.   Finally, if a domain name is given for a host's fixed
address
# and that domain name evaluates to more than one address, the address
# corresponding to the network to which the client is attached, if any,
# will be assigned.
host confusia {
  hardware ethernet 02:03:04:05:06:07;
  fixed-address confusia-1.fugue.com, confusia-2.fugue.com;
  filename "vmunix.confusia";
  server-name "toccata.fugue.com";
}

host confusia {
  hardware ethernet 02:03:04:05:06:07;
  fixed-address confusia-3.fugue.com;
  filename "vmunix.confusia";
  server-name "snarg.fugue.com";
}

host confusia {
  hardware ethernet 02:03:04:05:06:07;
  filename "vmunix.confusia";
  server-name "bb.home.vix.com";
}

--
Brian W. Carver
brianwcarver at yahoo dot com


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: