JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Sun Fire X4640 Server Linux Installation Guide     Sun Fire X4640 Server Documentation Library
search filter icon
search icon

Document Information

Preface

Product Information Web Site

Related Books

About This Documentation (PDF and HTML)

We Welcome Your Comments

Change History

Introduction to Linux Installation

Sun Installation Assistant (SIA)

SIA Task Overview

Obtaining SIA

Installing Red Hat Enterprise Linux

Overview of Red Hat Enterprise Linux Installation

Installing RHEL From Distribution Media

Updating RHEL

Installing and Updating SUSE Linux Enterprise Server

Introduction to Installing SLES From Distribution Media

How to Install SLES From Distribution Media

How to Update SLES

Configuring a Linux Server to Support PXE Installation

Overview of PXE Servers

How to Copy Files from the Tools and Drivers CD

How to Install and Configure a DHCP Server

How to Install Portmap on Your DHCP Server

How to Configure the TFTP Service on Your DHCP Server

How to Install and Configure the neopxe Boot Server Daemon

How to Configure the NFS Service on Your PXE Server

Disabling the Firewall

How to Disable the Firewall for SUSE Linux

How to Disable the Firewall for Red Hat Linux

How to Create a PXE Installation Image for Red Hat Linux

Creating a PXE Image for SUSE Linux

How to Set Up and Copy SUSE Software to a Directory

How to Set Up SUSE PXE Files

How to Install RHEL and SUSE Linux From a PXE Server

Booting From OS Distribution Media

How to Boot From OS Media Locally

How to Boot From OS Distribution Media or ISO File Remotely

Preliminary Tasks Before Installing An OS

Accessing the Server Output During Installation

How to Configure the Serial Port

How to Erase Your Boot Hard Disk

Identifying Logical and Physical Network Interface Names for Linux OS Configuration

SUSE Linux - How to Identify Logical and Physical Network Interface Names While Installing the OS

RHEL - How to Identify Logical and Physical Network Interface Names While Installing the OS

Index

How to Install and Configure a DHCP Server

Complete the following steps on the server that will be your DHCP server.


Note - This example uses Red Hat Enterprise Linux 4. Replace rhel4 with the file name that corresponds to your version and update.


  1. Turn on the server and log in as superuser.
  2. Determine whether the DHCP server package is already installed on the server.
    # rpm -qa | grep dhcp-
  3. If the DHCP server package is not listed, install the DHCP server.
    1. Mount the CD/DVD drive. Type the command:
      # mount /dev/cdrom /mnt/cdrom
    2. Install the DHCP server.
      • For RHEL 4.8, insert the DVD or CD5 and type:
        # rpm -Uvh /mnt/cdrom/RedHat/RPMS/dhcp-*.rpm
      • For RHEL 5.3, insert the DVD or CD4 and type:
        # rpm -Uvh /mnt/cdrom/Server/dchp*
      • For SLES10 SP2, insert DVD1 or CD2 and type:
        # rpm -Uvh /mnt/cdrom/suse/x86_64/dhcp*
      • For SLES11, insert DVD1 and type:
        # rpm -Uvh /mnt/cdrom/suse/x86_64/dhcp*
    3. Unmount the CD/DVD drive. Type:
      # umount /dev/cdrom /mnt/cdrom
    4. Remove the CD or DVD from the CD/DVD drive.
  4. Set up your DHCP configuration file (for example, /etc/dhcpd.conf) so that only PXEClient requests receive PXEClient responses.

    Note - If the server does not already have a dhcpd.conf file in its /etc directory, you can copy the dhcpd.conf file from the sample DHCP configuration file in the /tmp/rhel4u3-pxefiles directory.


    Add the following entry to the DHCP configuration file (refer to the dhcpd.conf man page for more information):

    class "PXE" {match if substring(option vendor-class-identifier, 0, 9) ="PXEClient"; 
    option vendor-class-identifier "PXEClient"; vendor-option-space PXE; next-server 
    n.n.n.n}

    where n.n.n.n is the PXE server’s IP address.

  5. In the DHCP configuration file, edit the server-identifier entry:

    server-identifier n.n.n.n

    where n.n.n.n is the PXE/DHCP server’s IP address.

  6. Also in the DHCP configuration file, find the following subnet entry fields:
    subnet 1.2.3.0 netmask 255.255.255.0 {
    range dynamic-bootp 1.2.3.100 1.2.3.200;
    option routers 1.2.3.1;
    option broadcast-address 1.2.3.225;
    }

    Edit the subnet, range, router and broadcast-address entries according to the PXE/dhcp server’s network configuration.

  7. Start the DHCP service.
    • For Red Hat, type the service dhcp start command..

      # service dhcpd start
    • For SUSE, use YaST to start the services.

  8. Configure the server to always start DHCP.
    • For Red Hat, type:

      # chkconfig dhcpd on
    • For SUSE, use YaST to configure the services to start at bootup. For example:

      # yast > system > Runlevel Editor

Next Steps

How to Install Portmap on Your DHCP Server