Red Hat ENTERPRISE LINUX 4 System Administration Manual page 245

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

range 192.168.1.10 192.168.1.100;
}
Example 23.1. Subnet Declaration
All subnets that share the same physical network should be declared within a shared-network
declaration as shown in
network, but outside the enclosed subnet declarations, are considered to be global parameters.
The name of the shared-network should be a descriptive title for the network, such as using the title
'test-lab' to describe all the subnets in a test lab environment.
shared-network name {
option domain-name
option domain-name-servers
option routers
more parameters for EXAMPLE shared-network
subnet 192.168.1.0 netmask 255.255.252.0 {
parameters for subnet
range 192.168.1.1 192.168.1.254;
}
subnet 192.168.2.0 netmask 255.255.252.0 {
parameters for subnet
range 192.168.2.1 192.168.2.254;
}
}
Example 23.2. Shared-network Declaration
Example 23.3, "Group
As demonstrated in
global parameters to a group of declarations. For example, shared networks, subnets, and hosts can
be grouped.
group {
option routers
option subnet-mask
option domain-name
option domain-name-servers
option time-offset
host apex {
option host-name "apex.example.com";
hardware ethernet 00:A0:78:8E:9E:AA;
fixed-address 192.168.1.4;
}
host raleigh {
option host-name "raleigh.example.com";
hardware ethernet 00:A1:DD:74:C3:F2;
fixed-address 192.168.1.6;
}
}
Example 23.3. Group Declaration
To configure a DHCP server that leases a dynamic IP address to a system within a subnet, modify
Example 23.4, "Range Parameter"
Example 23.2, "Shared-network
"test.redhat.com";
ns1.redhat.com, ns2.redhat.com;
192.168.0.254;
Declaration", the group declaration can be used to apply
192.168.1.254;
255.255.255.0;
"example.com";
192.168.1.1;
-18000;
with your values. It declares a default lease time, maximum lease
Declaration". Parameters within the shared-
# Eastern Standard Time
Configuration File
227

Advertisement

Table of Contents
loading

Table of Contents