
14
4.3.7.2. Basic DHCP server configuration rules
Before starting using DHCP server please read following
guidelines:
¡the configuration is organized in a hierarchical manner - the most
general group of settings is “network” - the physical network
connected to the modem. Any number of IP “subnets” may exist
within a network. Inside an IP subnet an IP address “range” may
be selected - these addresses will be dynamically assigned to the
network stations. A static connection between an IP address and a
hardware address may also be set. Each group (“network”,
“subnet”) has its own options. Creating a new group (e.g. a
“subnet” within a “network”) causes copying of the options from
the parent group (e.g. if the “lan” network has a “domain-name”
option, after adding a “local” subnet within “lan” the option will be
automatically copied - it may be modified or deleted later)
¡on the beginning a “network” for each interface should be created
¡in each of the “networks” an IP “subnet” should be created
according to IP subnets connected to that interface (modem may
not have the routing set up to each of them - it’s enough that they
are in the same physical network)
¡now IP ranges and static IP entries may be added
4.3.7.3. dhcp [ on | off | relay ]
DHCP/BOOTP server may work in one of three modes:
¡on - the server in enabled and answers to the requests
¡off - the server is disabled
¡relay - the server is disabled, but the relay agent is enabled and
listens for the requests to be forwarded to other DHCP server
4.3.7.4. dhcp add
The “dhcp add” commands add a network, subnet, IP range, etc.
Following variants are supported:
¡dhcp add network <name>
Adds a new physical network connected to the modem’s interface.
There should be the same number of “networks” and interfaces. The
“network”-interface connection will be determined later while adding the
IP subnets.
15
dhcp add network lan
¡dhcp add subnet <name> <network> <address>
<netmask>
Adds a net IP subnet to a given network. For each IP subnet
connected to the LAN or WAN interface an DHCP subnet should be added
(with the same IP addresses, as configured on each of the interfaces).
Moreover additional IP subnets may be added - those which are not set
up on any of the interfaces, but do exist in the same physical network or
behind a DHCP relay:
dhcp add subnet local lan 10.0.0.0 255.0.0.0
¡dhcp add host <name> <MAC address> <IP address>
Adds a static connection between hardware (MAC) and IP
addresses. The IP address must belong to one of the configured subnets.
Only this IP address will be assigned to the given MAC address:
dhcp add host server 00:50:13:2e:15:ca 10.0.0.5
¡dhcp add range <start address> <end address>
Adds an IP address range, from which addresses will be assigned
to the network stations. The address range must be contained inside one
of the subnets:
dhcp add range 10.0.0.5 10.0.0.37
¡dhcp add option <option> <value>
Adds a global DHCP option sent to the requesting station.
Available options are:
-routers - network gateways (usually the gateways should be
separate for each subnet, so they shouldn’t be defined globally)
-domain-name - domain name
-domain-name-servers - DNS addresses
-filename - name of the file containing the operating system
-next-server - server from which the mentioned above file will
be downloaded using TFTP
dhcp add option domain-name tahoe-group.com
4.3.7.4
4.3.7.3
4.3.7.2